mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
18 lines
463 B
Bash
18 lines
463 B
Bash
|
#!/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
|