Commit 37c520fb authored by David Steele's avatar David Steele

Fix autopkgtest

parent c9f1c8e4
......@@ -24,7 +24,12 @@ CHDATE = $(shell grep "\-\-" debian/changelog | head -1 | sed 's/.\+, //' | sed
DT = $(shell date -d "${CHDATE}" "+%Y-%m-%d")
override_dh_auto_build:
env > /tmp/env
env
dh_auto_build -- -ldflags $(DEB_LDFLAGS)
cp -r internal/* obj*/src/github.com/rfjakob/gocryptfs/internal/
cp -r tests/* obj*/src/github.com/rfjakob/gocryptfs/tests
cp obj*/bin/gocryptfs obj*/src/github.com/rfjakob/gocryptfs/
pandoc Documentation/MANPAGE.md -s -t man -o debian/gocryptfs.1
pandoc Documentation/MANPAGE-XRAY.md -s -t man -o debian/gocryptfs-xray.1
......@@ -33,13 +38,6 @@ override_dh_auto_clean:
rm -f debian/gocryptfs-xray.1
dh_auto_clean
override_dh_auto_test:
cp -r internal/* obj*/src/github.com/rfjakob/gocryptfs/internal/
cp -r tests/* obj*/src/github.com/rfjakob/gocryptfs/tests
cp obj*/bin/gocryptfs obj*/src/github.com/rfjakob/gocryptfs/
dh_auto_test
rm -f obj*/src/github.com/rfjakob/gocryptfs/gocryptfs
override_dh_auto_install:
dh_auto_install
rm -rf debian/gocryptfs/usr/share/gocode
/bin/sh
modprobe fuse
mkdir $AUTOPKGTEST_TMP/obj
cp -r obj/* $AUTOPKGTEST_TMP/obj
cp -r internal/* $AUTOPKGTEST_TMP/obj/src/github.com/rfjakob/gocryptfs/internal/
cp -r tests/* $AUTOPKGTEST_TMP/obj/src/github.com/rfjakob/gocryptfs/tests
cp obj*/bin/gocryptfs $AUTOPKGTEST_TMP/obj/src/github.com/rfjakob/gocryptfs/
GOPATH=$AUTOPKGTEST_TMP/obj go test -v -p 1 github.com/rfjakob/gocryptfs github.com/rfjakob/gocryptfs/gocryptfs-xray github.com/rfjakob/gocryptfs/internal/configfile github.com/rfjakob/gocryptfs/internal/contentenc github.com/rfjakob/gocryptfs/internal/cryptocore github.com/rfjakob/gocryptfs/internal/ctlsock github.com/rfjakob/gocryptfs/internal/exitcodes github.com/rfjakob/gocryptfs/internal/fusefrontend github.com/rfjakob/gocryptfs/internal/fusefrontend_reverse github.com/rfjakob/gocryptfs/internal/nametransform github.com/rfjakob/gocryptfs/internal/prefer_openssl github.com/rfjakob/gocryptfs/internal/readpassword github.com/rfjakob/gocryptfs/internal/siv_aead github.com/rfjakob/gocryptfs/internal/speed github.com/rfjakob/gocryptfs/internal/stupidgcm github.com/rfjakob/gocryptfs/internal/syscallcompat github.com/rfjakob/gocryptfs/internal/tlog github.com/rfjakob/gocryptfs/tests/cli github.com/rfjakob/gocryptfs/tests/defaults github.com/rfjakob/gocryptfs/tests/example_filesystems github.com/rfjakob/gocryptfs/tests/matrix github.com/rfjakob/gocryptfs/tests/plaintextnames github.com/rfjakob/gocryptfs/tests/reverse github.com/rfjakob/gocryptfs/tests/test_helpers
echo "The test is part of the build"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment