password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 8a88bc0317c7e449b65b067352f0d783171fb359
parent 4eb459b0af57045d74dde60d759310cc652b3d51
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Wed, 23 Apr 2014 01:17:04 +0200

tests: make bash usage explicit

Diffstat:
Mtests/aggregate-results.sh | 2+-
Mtests/fake-editor-change-password.sh | 2+-
Mtests/gnupg/random_seed | 0
Mtests/setup.sh | 4+---
Mtests/sharness.sh | 2+-
Mtests/t0001-sanity-checks.sh | 2+-
Mtests/t0005-init-failing.sh | 2+-
Mtests/t0010-generate-tests.sh | 2+-
Mtests/t0020-show-tests.sh | 2+-
Mtests/t0050-mv-tests.sh | 2+-
Mtests/t0060-rm-tests.sh | 2+-
Mtests/t0100-insert-tests.sh | 2+-
Mtests/t0200-edit-tests.sh | 2+-
13 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/tests/aggregate-results.sh b/tests/aggregate-results.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2008-2012 Git project # diff --git a/tests/fake-editor-change-password.sh b/tests/fake-editor-change-password.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Fake editor program for testing 'pass edit'. # Changes password to 'Hello World', leaving rest of file intact. # diff --git a/tests/gnupg/random_seed b/tests/gnupg/random_seed Binary files differ. diff --git a/tests/setup.sh b/tests/setup.sh @@ -16,9 +16,7 @@ PASSWORD_STORE_TEST_HOME="$(cd "$(dirname "$BASH_SOURCE")"; pwd)" PASS="${PASSWORD_STORE_TEST_HOME}/../src/password-store.sh" -if test -e ${PASS} ; then - echo "pass is ${PASS}" -else +if ! test -e ${PASS} ; then echo "Could not find password-store.sh" exit 1 fi diff --git a/tests/sharness.sh b/tests/sharness.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2011-2012 Mathias Lafeldt # Copyright (c) 2005-2012 Git project diff --git a/tests/t0001-sanity-checks.sh b/tests/t0001-sanity-checks.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Sanity checks' . ./setup.sh diff --git a/tests/t0005-init-failing.sh b/tests/t0005-init-failing.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Show "pass init" returning non-zero bug(?) (XXX: remove this test?)' . ./setup.sh diff --git a/tests/t0010-generate-tests.sh b/tests/t0010-generate-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test generate' . ./setup.sh diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test show' . ./setup.sh diff --git a/tests/t0050-mv-tests.sh b/tests/t0050-mv-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test mv' . ./setup.sh diff --git a/tests/t0060-rm-tests.sh b/tests/t0060-rm-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test rm' . ./setup.sh diff --git a/tests/t0100-insert-tests.sh b/tests/t0100-insert-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test insert' . ./setup.sh diff --git a/tests/t0200-edit-tests.sh b/tests/t0200-edit-tests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash test_description='Test edit' . ./setup.sh