added pcptext_infile(), used with pcp1 -t -I $file, which determines filetype

by content. minor debugging changes.
This commit is contained in:
git@daemon.de
2013-11-12 16:58:59 +01:00
parent 91c9a12641
commit a76ff60d7a
8 changed files with 216 additions and 28 deletions

View File

@@ -209,6 +209,30 @@ dxmorg@florida.cops.gov
</test>
</test>
#
# check usage of unencrypted secret key
<test check-crypto-unencrypted-secret>
cmd = (echo dau; echo foo; echo yes) | $pcp -V vcl -k -x ""
expect = /added to/
</test>
<test check-crypto-unencrypted-secret-yaml>
cmd = $pcp -V vcl -y
expect = /encrypted: no/
</test>
<test check-crypto-unencrypted-secret-message>
prepare = $pcp -V vcl -I key-bobby-pub -P
cmd = echo HALLO | $pcp -V vcl -e -O testencrypted -i ${idbobby}
expect = /success/
</test>
<test check-crypto-unencrypted-secret-read>
prepare = $pcp -V vcl -p | $pcp -V vb -P
cmd = $pcp -V vb -d -I testencrypted -x b
expect = /HALLO/
</test>
#
# signature test
<test check-sign-to-bobby>