summaryrefslogtreecommitdiff
path: root/tests/t0200-edit-tests.sh
blob: d8d7b6482c835bbdf08f8ecbc6d68078f37803fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

test_description='Test edit'
cd "$(dirname "$0")"
. ./setup.sh

test_expect_success 'Test "edit" command' '
	"$PASS" init $KEY1 &&
	"$PASS" generate cred1 90 &&
	export FAKE_EDITOR_PASSWORD="big fat fake password" &&
	export PATH="$TEST_HOME:$PATH"
	export EDITOR="fake-editor-change-password.sh" &&
	"$PASS" edit cred1 &&
	[[ $("$PASS" show cred1) == "$FAKE_EDITOR_PASSWORD" ]]
'

test_done
ons'>+1 2012-09-18Quote the program name.Jason A. Donenfeld1-4/+4 2012-09-17Abstract potentially platform specific commands into their own commands.Jason A. Donenfeld4-72/+97 2012-09-16Support recursive and forced removal.Jason A. Donenfeld2-12/+28 2012-09-16Small stylistic things.Jason A. Donenfeld1-9/+9 2012-09-15Use --force flag in keepassx import.Jason A. Donenfeld1-1/+1