added tests for pcp -t -I $file determination mode

This commit is contained in:
TLINDEN
2013-11-12 19:44:22 +01:00
parent d2bf933d2f
commit 7cba8ec0bc
15 changed files with 225 additions and 134 deletions

View File

@@ -114,6 +114,34 @@ dxmorg@florida.cops.gov
expect = /Public keys: 0/
</test>
#
# test file determination
<test check-determine-pub>
cmd = $pcp -t -I unknown1
expect = /Niemand/
</test>
<test check-determine-sec>
cmd = $pcp -t -I unknown2
expect = /secret key/
</test>
<test check-determine-empty-vault>
cmd = $pcp -t -I unknown3
expect = /empty/
</test>
<test check-determine-encrypted-file>
cmd = $pcp -t -I unknown4
expect = /encrypted/
</test>
<test check-determine-signature>
cmd = $pcp -t -I unknown5
expect = /ed25519/
</test>
#
# encryption tests
<test check-crypto-alicia-init>