m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/tests/t0001-sanity-checks.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-22 18:35:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-22 18:35:11 +0200
commit760c644a1d9f55c91b74521b112958966e00ea31 (patch)
tree2514b500511a8dcf0d56d2a49ee69487f5cb4f56 /tests/t0001-sanity-checks.sh
parent07bcfccebfa2f885849f0b8698a496c3c757d8a7 (diff)
Import Von's tests, with cleanups.
Diffstat (limited to 'tests/t0001-sanity-checks.sh')
-rwxr-xr-xtests/t0001-sanity-checks.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/t0001-sanity-checks.sh b/tests/t0001-sanity-checks.sh
new file mode 100755
index 0000000..bf04394
--- /dev/null
+++ b/tests/t0001-sanity-checks.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+test_description='Sanity checks'
+. ./setup.sh
+
+test_expect_success 'Make sure we can run pass' '
+ ${PASS} --help | grep "pass: the standard unix password manager"
+'
+
+test_expect_success 'Make sure we can initialize our test store' '
+ pass_init &&
+ ls -ld "${PASSWORD_STORE_DIR}" &&
+ [[ -d "${PASSWORD_STORE_DIR}" ]]
+'
+
+test_done