git-secret/tests/test_make_install.bats
Nikita Sobolev 19941f91f4
Adds release-ci script to test installation (#664)
* Adds release-ci script to test installation

* Fixes CI

* Fixes CI

* Renames some variables to follow the same SECRETS_ convention
2021-05-05 15:59:28 +03:00

18 lines
393 B
Bash

#!/usr/bin/env bats
: "${TMPDIR:=/tmp}"
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
@test "install git-secret to DESTDIR='$INSTALL_BASE'" {
rm -f "$INSTALL_BASE/usr/bin/git-secret"
cd "$SECRETS_PROJECT_ROOT"
# set DESTDIR for this command and 'run' make install
DESTDIR="$INSTALL_BASE" run make install
[ -x "$INSTALL_BASE/usr/bin/git-secret" ]
rm -rf "$INSTALL_BASE"
}