Debian Codegraph @

debian/tests/library

raw
1 #!/bin/sh
2 # Builds and runs a small program against the installed desync -dev package to
3 # confirm the library can be imported and used.
4 # dh-golang installs the library source under /usr/share/gocode so build in
5 # GOPATH mode.
6 set -eu
7
8 export GOPATH=/usr/share/gocode
9 export GO111MODULE=off
10 export GOFLAGS=-mod=mod
11 export GOCACHE="$(mktemp -d)"
12 trap 'rm -rf "$GOCACHE"' EXIT
13
14 go run debian/tests/library-test.go
15 echo "desync library-test: OK"