m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:01:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:01:53 +0200
commit59272fc6af05dfc603c9230dbded251344e2380c (patch)
tree7be229f7ca34e1bf957ffaef50de3604d7438334 /tests
parent57e3fe63c00241f1a2abef4d7023ab92d680c9ce (diff)
Use real pass location.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0001-sanity-checks.sh2
-rwxr-xr-xtests/t0010-generate-tests.sh2
-rwxr-xr-xtests/t0020-show-tests.sh4
-rwxr-xr-xtests/t0050-mv-tests.sh2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/t0001-sanity-checks.sh b/tests/t0001-sanity-checks.sh
index 111f21d..e6be9ea 100755
--- a/tests/t0001-sanity-checks.sh
+++ b/tests/t0001-sanity-checks.sh
@@ -8,7 +8,7 @@ test_expect_success 'Make sure we can run pass' '
'
test_expect_success 'Make sure we can initialize our test store' '
- pass init $KEY1 &&
+ $PASS init $KEY1 &&
[[ -e "$PASSWORD_STORE_DIR/.gpg-id" ]] &&
[[ $(cat "$PASSWORD_STORE_DIR/.gpg-id") == "$KEY1" ]]
'
diff --git a/tests/t0010-generate-tests.sh b/tests/t0010-generate-tests.sh
index 66660de..d717c00 100755
--- a/tests/t0010-generate-tests.sh
+++ b/tests/t0010-generate-tests.sh
@@ -4,7 +4,7 @@ test_description='Test generate'
. ./setup.sh
test_expect_success 'Test "generate" command' '
- pass init $KEY1 &&
+ $PASS init $KEY1 &&
$PASS generate cred 19 &&
[[ $($PASS show cred | wc -m) -eq 20 ]]
'
diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh
index 059f537..6bd0165 100755
--- a/tests/t0020-show-tests.sh
+++ b/tests/t0020-show-tests.sh
@@ -4,8 +4,8 @@ test_description='Test show'
. ./setup.sh
test_expect_success 'Test "show" command' '
- pass init $KEY1 &&
- pass generate cred1 20 &&
+ $PASS init $KEY1 &&
+ $PASS generate cred1 20 &&
$PASS show cred1
'
diff --git a/tests/t0050-mv-tests.sh b/tests/t0050-mv-tests.sh
index 10a33f8..57472c1 100755
--- a/tests/t0050-mv-tests.sh
+++ b/tests/t0050-mv-tests.sh
@@ -7,7 +7,7 @@ TEST_CRED="test_cred"
TEST_CRED_NEW="test_cred_new"
test_expect_success 'Test "mv" command' '
- pass init $KEY1 &&
+ $PASS init $KEY1 &&
$PASS generate cred1 39 &&
$PASS mv cred1 cred2 &&
[[ -e $PASSWORD_STORE_DIR/cred2.gpg && ! -e $PASSWORD_STORE_DIR/cred1.gpg ]]