Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Exclude the 'example' directory, which contains binaries
4 # (usr/bin/{proxy,scp,ssh,stream}) that should not be installed on any real
5 # system.
6 export DH_GOLANG_EXCLUDES = example
7
8 TEST_DIR := debian/.build/upstream/src/github.com/appleboy/easyssh-proxy/
9
10 %:
11 dh $@ --builddirectory=debian/.build/upstream --buildsystem=golang
12
13 # The upstream test suite requires a running sshd server which is not feasible
14 # in a post-build environment. Limit tests to `TestGetKeyFile`, which seems to
15 # be the only test that does not require a sshd server.
16 override_dh_auto_test:
17 # The unit test `TestGetKeyFile` needs data from the `tests/` directory.
18 # We copy it into the build area before running the test.
19 cp -r tests $(TEST_DIR)
20 dh_auto_test -- -run '^TestGetKeyFile$$'
21 rm -rf $(TEST_DIR)/tests