git-secret/tests/test_make_install.bats

18 lines
393 B
Plaintext
Raw Normal View History

#!/usr/bin/env bats
: "${TMPDIR:=/tmp}"
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
2021-05-03 11:43:02 +00:00
@test "install git-secret to DESTDIR='$INSTALL_BASE'" {
2021-05-03 16:21:33 +00:00
rm -f "$INSTALL_BASE/usr/bin/git-secret"
cd "$SECRETS_PROJECT_ROOT"
# set DESTDIR for this command and 'run' make install
2021-05-03 16:21:33 +00:00
DESTDIR="$INSTALL_BASE" run make install
2021-05-03 16:21:33 +00:00
[ -x "$INSTALL_BASE/usr/bin/git-secret" ]
rm -rf "$INSTALL_BASE"
}