restic/testsuite.sh

20 lines
483 B
Bash
Raw Normal View History

2015-01-14 20:36:33 +00:00
#!/bin/bash
# tempdir for binaries
export BASEDIR="$(mktemp --tmpdir --directory restic-testsuite-XXXXXX)"
export BINDIR="${BASEDIR}/bin"
export PATH="${BINDIR}:$PATH"
export DEBUG_LOG="${BASEDIR}/restic.log"
2015-05-06 20:55:20 +00:00
export TZ=UTC
2015-01-14 20:36:33 +00:00
echo "restic testsuite basedir ${BASEDIR}"
# build binaries
go build -a -o "${BINDIR}/restic" ./cmd/restic
go build -a -tags debug -o "${BINDIR}/restic.debug" ./cmd/restic
go build -a -o "${BINDIR}/dirdiff" ./cmd/dirdiff
# run tests
2015-02-15 13:44:54 +00:00
testsuite/run.sh "$@"