t0001-sanity-checks.sh (409B)
1 #!/usr/bin/env bash 2 3 test_description='Sanity checks' 4 cd "$(dirname "$0")" 5 . ./setup.sh 6 7 test_expect_success 'Make sure we can run pass' ' 8 "$PASS" --help | grep "pass: the standard unix password manager" 9 ' 10 11 test_expect_success 'Make sure we can initialize our test store' ' 12 "$PASS" init $KEY1 && 13 [[ -e "$PASSWORD_STORE_DIR/.gpg-id" ]] && 14 [[ $(cat "$PASSWORD_STORE_DIR/.gpg-id") == "$KEY1" ]] 15 ' 16 17 test_done