go.crypto/ssh: new test subpackage
This proposal is an attempt to improve the state of functional testing in the ssh package. The previous functional tests required the user to give away some personal details, like their password and private key to run the tests, and so were probably not run as frequently as they should.
Hello agl@golang.org, gustav.paul@gmail.com, kardianos@gmail.com, fullung@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
12 years, 6 months ago
(2012-10-03 10:52:48 UTC)
#1
12 years, 6 months ago
(2012-10-03 12:47:09 UTC)
#3
On 2012/10/03 11:22:36, dfc wrote:
> Hello mailto:agl@golang.org, mailto:gustav.paul@gmail.com,
mailto:kardianos@gmail.com,
> mailto:fullung@gmail.com (cc: mailto:golang-dev@googlegroups.com),
>
> Please take another look.
Just a note about the choice of a sub package for these tests.
It was my intention to separate these integration tests from the unit-esq tests
in the main ssh package for a number of reasons
1. they are not self hosting, these are not unit tests
2. sadly, I expect them to break more often, and having an individual test
package, I feel, will make it easier to spot this earlier
3. for those that do not want/cant run the integration tests, moving them to a
separate package makes that easier, without having to put up with a bunch of
'test skipped ...' messages in the log.
Having said all this I have had feedback that this arrangement is unorthodox, so
will be happy to entertain moving these back into the main ssh package if that
is the majority view.
None of these will work on windows (no sshd). Maybe I should use // +build ...
12 years, 6 months ago
(2012-10-04 06:30:31 UTC)
#8
None of these will work on windows (no sshd). Maybe I should use //
+build tags ?
On Thu, Oct 4, 2012 at 4:28 PM, <kardianos@gmail.com> wrote:
> On windows only build tcpip_test.go and not the other tests. Otherwise
> looks fine as far as I can tell.
>
> https://codereview.appspot.com/6601043/
PTAL. I have reworked the file layout to run these tests on unix platforms only. ...
12 years, 6 months ago
(2012-10-04 07:47:18 UTC)
#9
PTAL. I have reworked the file layout to run these tests on unix platforms only.
Refactoring to support windows server processes should be straight forward.
On 2012/10/04 07:47:18, dfc wrote: > PTAL. I have reworked the file layout to run ...
12 years, 6 months ago
(2012-10-04 15:04:46 UTC)
#10
On 2012/10/04 07:47:18, dfc wrote:
> PTAL. I have reworked the file layout to run these tests on unix platforms
only.
> Refactoring to support windows server processes should be straight forward.
LGTM.
On 2012/10/04 16:18:57, agl1 wrote: > LGTM. > > Is go.crypto/ssh/sshtest a stutter? Should it ...
12 years, 6 months ago
(2012-10-05 01:09:51 UTC)
#12
On 2012/10/04 16:18:57, agl1 wrote:
> LGTM.
>
> Is go.crypto/ssh/sshtest a stutter? Should it be go.crypto/ssh/test? Up to
you.
Done. That does mean we end up with test_unix_test.go, which could probably be
improved in the future.
I'm going to submit this today and see what breaks.
*** Submitted as http://code.google.com/p/go/source/detail?r=671a5c2bfac2&repo=crypto *** go.crypto/ssh: new test subpackage This proposal is an attempt to ...
12 years, 6 months ago
(2012-10-05 01:11:16 UTC)
#13
*** Submitted as
http://code.google.com/p/go/source/detail?r=671a5c2bfac2&repo=crypto ***
go.crypto/ssh: new test subpackage
This proposal is an attempt to improve the state of functional testing in the
ssh package. The previous functional tests required the user to give away some
personal details, like their password and private key to run the tests, and so
were probably not run as frequently as they should.
R=agl, gustav.paul, kardianos, fullung
CC=golang-dev
http://codereview.appspot.com/6601043
Issue 6601043: code review 6601043: go.crypto/ssh: new package: sshtest
(Closed)
Created 12 years, 6 months ago by dave_cheney.net
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 6