]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - Makefile
tests: add very basic end-to-end test with real ssh server
[safcm/safcm.git] / Makefile
index f4cc011e6aa6abdab01f603e4d50d3193e54b8a0..5549539245c535c6d0e92d7022ea531622a83e3a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,11 +16,18 @@ safcm:
        cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null
 
 test:
+       ./cmd/safcm/testdata/ssh/prepare.sh
        go vet ./...
        go test $(GOFLAGS) ./...
 
 clean:
        rm -rf remote/helpers/
        rm -f safcm
+       rm -f cmd/safcm/testdata/ssh/ssh/authorized_keys
+       rm -f cmd/safcm/testdata/ssh/ssh/id_ed25519
+       rm -f cmd/safcm/testdata/ssh/ssh/id_ed25519.pub
+       rm -f cmd/safcm/testdata/ssh/ssh/known_hosts
+       rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key
+       rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key.pub
 
 .PHONY: all test clean safcm