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'" {
|
2019-03-22 01:32:36 +00:00
|
|
|
rm -f "${INSTALL_BASE}/usr/bin/git-secret"
|
2021-05-03 11:43:02 +00:00
|
|
|
cd $SECRET_PROJECT_ROOT
|
2019-04-01 16:53:19 +00:00
|
|
|
|
|
|
|
# set DESTDIR for this command and 'run' make install
|
|
|
|
DESTDIR="${INSTALL_BASE}" run make install
|
2019-03-22 01:32:36 +00:00
|
|
|
|
|
|
|
[ -x "${INSTALL_BASE}/usr/bin/git-secret" ]
|
2019-05-21 16:06:51 +00:00
|
|
|
rm -rf "${INSTALL_BASE}"
|
2019-03-22 01:32:36 +00:00
|
|
|
}
|