File: rules

package info (click to toggle)
golang-go-dbus 1~bzr20150122-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 328 kB
  • sloc: makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1
export DH_OPTIONS

export DH_GOPKG := launchpad.net/go-dbus/v1
export BUILDDIR := build

%:
	dh $@ --buildsystem=golang --with=golang --builddirectory=$(BUILDDIR)

override_dh_auto_test:
	cd $(BUILDDIR)/src/$(DH_GOPKG)
	for t in 'S.Test.*coder.*' 'S.TestAuthenticate' 'S.TestMatch.*' \
		'S.TestNew.*' 'S.TestNonceTcpTransportDial' 'S.TestReadMessage' \
		'S.TestSigna.*' 'S.TestTcpTransportDial' 'S.TestUnixTransportDial' \
		'S.TestWriteMessage'; do \
		GOPATH=$(CURDIR)/$(BUILDDIR) go test -gocheck.v -gocheck.f $$t; \
	done