File: rules

package info (click to toggle)
golang-github-appleboy-easyssh-proxy 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: makefile: 37; sh: 30
file content (18 lines) | stat: -rwxr-xr-x 761 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Exclude the 'example' directory, which contains binaries
# (usr/bin/{proxy,scp,ssh,stream}) that should not be installed on any real
# system.
export DH_GOLANG_EXCLUDES = example

%:
	dh $@ --builddirectory=debian/.build/upstream --buildsystem=golang

# The upstream test suite requires a running sshd server which is not feasible
# in a post-build environment. Limit tests to `TestGetKeyFile`, which seems to
# be the only test that does not require a sshd server.
override_dh_auto_test:
	# The unit test `TestGetKeyFile` needs data from the `tests/` directory.
	# We copy it into the build area before running the test.
	cp -r tests debian/.build/upstream/src/github.com/appleboy/easyssh-proxy/
	dh_auto_test -- -run '^TestGetKeyFile$$'