This commit is contained in:
Boshi Lian 2022-07-06 19:29:34 +00:00
parent 3047473814
commit 607c3d05eb
3 changed files with 11 additions and 2 deletions

View file

@ -38,7 +38,7 @@ jobs:
args: --timeout=10m -E gofmt
- name: Test lib ssh
run: go test -v -race -cover ./...
run: go test -v -cover ./...
working-directory: crypto/ssh
- name: Test sshpiper

View file

@ -12,7 +12,7 @@ services:
piper-fixed:
environment:
- "SSHPIPERD_LOG_LEVEL=trace"
- SSHPIPERD_LOG_LEVEL=trace
build: ../
command:
- "/sshpiperd/sshpiperd"
@ -24,6 +24,8 @@ services:
testrunner:
environment:
- SSHPIPERD_E2E_TEST=1
build:
context: ../
dockerfile: e2e/Dockerfile_e2e

View file

@ -102,6 +102,13 @@ func checkSharedFileContent(t *testing.T, targetfie string, expected string) {
}
func TestMain(m *testing.M) {
if os.Getenv("SSHPIPERD_E2E_TEST") != "1" {
log.Printf("skipping e2e test")
os.Exit(0)
return
}
_, _, _, _ = runCmd("ssh", "-V")
for _, ep := range []string{