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

pull/439/head
Josh Rabinowitz 5 years ago committed by GitHub
parent 4bcf6c054a
commit be88da4c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" ]
}
Loading…
Cancel
Save