blob: 3a15077132495f34b9f313927ae07d8415c558fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
test_description='Test rm'
cd "$(dirname "$0")"
. ./setup.sh
test_expect_success 'Test "rm" command' '
"$PASS" init $KEY1 &&
"$PASS" generate cred1 43 &&
echo "y" | "$PASS" rm cred1 &&
[[ ! -e $PASSWORD_STORE_DIR/cred1.gpg ]]
'
test_expect_success 'Test "rm" of non-existent password' '
test_must_fail "$PASS" rm does-not-exist
'
test_done
|