test 'DESTDIR=/dir/here make install' support (#438)

This commit is contained in:
Josh Rabinowitz 2019-03-21 21:32:36 -04:00 committed by GitHub
parent 4bcf6c054a
commit be88da4c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
#!/usr/bin/env bats
INSTALL_BASE="/tmp/git-secret-test-install"
@test "install git-secret to '$INSTALL_BASE'" {
rm -f "${INSTALL_BASE}/usr/bin/git-secret"
cd $SECRET_PROJECT_ROOT && DESTDIR="${INSTALL_BASE}" make install
[ -x "${INSTALL_BASE}/usr/bin/git-secret" ]
}