mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
bbb4d9d3e5
* Only show 'cleaning up temp file' messages if one of SECRETS_VERBOSE or SECRETS_TEST_VERBOSE is set. * Adjust tests to reflect the change. * Add note about suppressing 'cleaning up' msgs to CHANGELOG.md and reorder entries * add comments showing examples of tmpfiles returned
19 lines
360 B
Bash
19 lines
360 B
Bash
#!/usr/bin/env bats
|
|
|
|
: "${TMPDIR:=/tmp}"
|
|
|
|
INSTALL_BASE="${TMPDIR}/git-secret-test-install"
|
|
|
|
@test "install git-secret to '$TMPDIR'" {
|
|
|
|
rm -f "${INSTALL_BASE}/usr/bin/git-secret"
|
|
|
|
cd $SECRET_PROJECT_ROOT
|
|
|
|
# set DESTDIR for this command and 'run' make install
|
|
DESTDIR="${INSTALL_BASE}" run make install
|
|
|
|
[ -x "${INSTALL_BASE}/usr/bin/git-secret" ]
|
|
}
|
|
|