Skip to content

Commit 6b13eef

Browse files
drakkangopherbot
authored andcommitted
ssh: add integration tests against a reference implementation
As in crypto/tls, we record the connection against a reference implementation, OpenSSH in our case, and run part of our integration tests by replaying these recorded SSH connections. Change-Id: If042b5f650b267bd3ede34a05ec3a6fa6d1a86b3 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/644436 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
1 parent 959f8f3 commit 6b13eef

File tree

50 files changed

+15102
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+15102
-370
lines changed

ssh/test/banner_test.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

ssh/test/forward_unix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func testPortForward(t *testing.T, n, listenAddr string) {
9494
if len(sent) != len(read) {
9595
t.Fatalf("got %d bytes, want %d", len(read), len(sent))
9696
}
97-
if bytes.Compare(sent, read) != 0 {
97+
if !bytes.Equal(sent, read) {
9898
t.Fatalf("read back data does not match")
9999
}
100100

0 commit comments

Comments
 (0)