File: rules

package info (click to toggle)
golang-github-theupdateframework-go-tuf 2.0.2%2B0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,908 kB
  • sloc: python: 164; makefile: 89; sh: 37
file content (34 lines) | stat: -rwxr-xr-x 1,635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

# These are hacks for the v0 component/branch only.
export DH_GOLANG_EXCLUDES := python_interop go-tuf/v0/cmd/tuf
execute_before_dh_auto_build:
	find _build/src/github.com/theupdateframework/go-tuf/v0 -type f -print0 | xargs -0 perl -pi -e 's,github.com/flynn/go-docopt,github.com/docopt/docopt-go,'
	cd _build/src/github.com/theupdateframework/go-tuf/v0; \
	 rgrep -q "github.com/theupdateframework/go-tuf/v0" . \
	 || find . -type f -print0 | xargs -0 \
	  perl -pi -e 's,github.com/theupdateframework/go-tuf,github.com/theupdateframework/go-tuf/v0,'

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-binaries

execute_before_dh_auto_test:
#--- FAIL: TestDownLoadFile (0.00s)
#    --- FAIL: TestDownLoadFile/success (0.00s)
#    --- PASS: TestDownLoadFile/invalid_url (0.00s)
#    --- PASS: TestDownLoadFile/invalid_url_format (0.00s)
#    --- FAIL: TestDownLoadFile/invalid_path (0.00s)
#    --- FAIL: TestDownLoadFile/data_too_long (0.00s)
#FAIL
#FAIL	github.com/theupdateframework/go-tuf/metadata/fetcher	0.007s
	rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/fetcher/fetcher_test.go
#exit status 1
#FAIL	github.com/theupdateframework/go-tuf/metadata/trustedmetadata	0.004s
	rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/trustedmetadata/trustedmetadata_test.go
#exit status 1
#FAIL	github.com/theupdateframework/go-tuf/metadata	0.003s
	rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/metadata_test.go
	rm -fv _build/src/github.com/theupdateframework/go-tuf/metadata/metadata_api_test.go