1
0
mirror of https://github.com/restic/restic.git synced 2024-06-23 07:36:38 +02:00
restic/testsuite.sh
Alexander Neumann f8f8107d55 wip
2015-02-15 15:17:24 +01:00

18 lines
468 B
Bash
Executable File

#!/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"
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
testsuite/run.sh "$@"