updated unittests

This commit is contained in:
TLINDEN
2014-02-13 00:06:36 +01:00
parent 621cece568
commit bf2500b335
14 changed files with 141 additions and 239 deletions

View File

@@ -67,12 +67,12 @@ dxmorg@florida.cops.gov
</test>
<test check-export-public-key>
cmd = $pcp -V $vault -l | tail -1 | cut -d ' ' -f 1 | xargs $pcp -V $vault -p -i
expect = /BEGIN PCP PUBLIC KEY/
cmd = $pcp -V $vault -l | tail -1 | cut -d ' ' -f 1 | xargs $pcp -V $vault -p -x $passwd -z -i
expect = /PUBLIC KEY/
</test>
<test check-export-public-key-tofile>
cmd = $pcp -V $vault -l | tail -1 | cut -d ' ' -f 1 | xargs $pcp -V $vault -p -O testkey-self -i
cmd = $pcp -V $vault -l | tail -1 | cut -d ' ' -f 1 | xargs $pcp -V $vault -p -x $passwd -O testkey-self -i
expect-file = testkey-self
</test>
@@ -362,15 +362,12 @@ temporarily disabled
</test>
*/
/*
* Disabled, since z85 standalone mode currently disabled
<test check-if-catch-nokey-behind-z85>
prepare = ./jot 30 | while read ignore; do echo XXXXX; done \
| $pcp -z > testfile-nokey
cmd = $pcp -V $vault -P -I testfile-nokey
expect = /result to a proper sized key/
</test>
*/
<test check-if-sanity-catch-nosecret>
cmd = $pcp -V $vault -S -I bart.pub