Author: Paolo Lulli <paolo@lulli.net>
add smoke test
test/00-make-random.sh | 3 +++ test/01-gen-test-profile.sh | 3 +++ test/02-encrypt-file.sh | 5 +++++ test/03-decrypt.sh | 3 +++
diff --git a/test/00-make-random.sh b/test/00-make-random.sh new file mode 100755 index 0000000000000000000000000000000000000000..bdf91b5e974698e5e01f6ab9bb1a31c07a290541 --- /dev/null +++ b/test/00-make-random.sh @@ -0,0 +1,3 @@ +#! /bin/bash -x + +dd if=/dev/urandom of=sample.txt bs=1M count=1000 diff --git a/test/01-gen-test-profile.sh b/test/01-gen-test-profile.sh new file mode 100755 index 0000000000000000000000000000000000000000..d65734cee31dda99ca0ab604da898e2fe3647080 --- /dev/null +++ b/test/01-gen-test-profile.sh @@ -0,0 +1,3 @@ +#! /bin/bash -x + +../x509crypt test -g diff --git a/test/02-encrypt-file.sh b/test/02-encrypt-file.sh new file mode 100755 index 0000000000000000000000000000000000000000..57727fe4d5743e914c707c14eaf94c26abd44a16 --- /dev/null +++ b/test/02-encrypt-file.sh @@ -0,0 +1,5 @@ +#! /bin/bash -x + +cp sample.txt sample.txt.backup + +../x509crypt test -e sample.txt diff --git a/test/03-decrypt.sh b/test/03-decrypt.sh new file mode 100755 index 0000000000000000000000000000000000000000..9a52708c4b193aa93e6fc0eaf1807ebf44e8bdb6 --- /dev/null +++ b/test/03-decrypt.sh @@ -0,0 +1,3 @@ +#! /bin/bash -x + +../x509crypt test -d sample.txt.enc