2019-03-22 01:32:36 +00:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
2019-03-29 22:11:52 +00:00
|
|
|
: "${TMPDIR:=/tmp}"
|
2019-03-22 01:32:36 +00:00
|
|
|
|
2019-03-29 22:11:52 +00:00
|
|
|
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
|
2019-03-22 01:32:36 +00:00
|
|
|
|
|
|
|
|
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"
|
2021-05-05 12:59:28 +00:00
|
|
|
cd "$SECRETS_PROJECT_ROOT"
|
2019-04-01 16:53:19 +00:00
|
|
|
|
|
|
|
# set DESTDIR for this command and 'run' make install
|
2021-05-03 16:21:33 +00:00
|
|
|
DESTDIR="$INSTALL_BASE" run make install
|
2019-03-22 01:32:36 +00:00
|
|
|
|
2021-05-03 16:21:33 +00:00
|
|
|
[ -x "$INSTALL_BASE/usr/bin/git-secret" ]
|
|
|
|
rm -rf "$INSTALL_BASE"
|
2019-03-22 01:32:36 +00:00
|
|
|
}
|