mirror of
https://github.com/restic/restic.git
synced 2026-10-06 02:40:31 +00:00
Refactor testsuite
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user