File: test_make_install.bats

package info (click to toggle)
git-secret 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,724 kB
  • sloc: sh: 4,580; makefile: 162; xml: 31; python: 22
file content (17 lines) | stat: -rw-r--r-- 393 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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"
}