From 6761bfc356e437ad68840a650ed0ce9f263756c9 Mon Sep 17 00:00:00 2001 From: James Ottaway Date: Thu, 30 Apr 2020 21:31:44 +1000 Subject: [PATCH] Add a test for `blackbox_cat` --- tools/confidence_test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/confidence_test.sh b/tools/confidence_test.sh index c71d2d3..4f74867 100755 --- a/tools/confidence_test.sh +++ b/tools/confidence_test.sh @@ -161,6 +161,11 @@ assert_file_missing secret.txt assert_file_exists secret.txt.gpg assert_line_exists '/secret.txt' .gitignore +PHASE 'She cats secrets.txt.gpg' +make_self_deleting_tempfile catsecret +blackbox_cat secret.txt.gpg > $catsecret +assert_line_exists 'this is my secret' $catsecret + PHASE 'She decrypts secrets.txt.' blackbox_edit_start secret.txt assert_file_exists secret.txt