summaryrefslogtreecommitdiff
path: root/tests/t0001-sanity-checks.sh
blob: 17d270a13c6eae3cad7bb249b76c16b64e87a16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

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 $KEY1 &&
	[[ -e "$PASSWORD_STORE_DIR/.gpg-id" ]] &&
	[[ $(cat "$PASSWORD_STORE_DIR/.gpg-id") == "$KEY1" ]]
'

test_done