mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 04:10:57 +01:00
move from unittest perl tp shell script, more portable and easier to understand
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# -*-sh-*-
|
||||
#
|
||||
# This file is part of Pretty Curved Privacy (pcp1).
|
||||
#
|
||||
@@ -19,40 +20,49 @@
|
||||
# You can contact me by mail: <tlinden AT cpan DOT org>.
|
||||
#
|
||||
|
||||
py = ./pytest.py
|
||||
py=./pytest.py
|
||||
|
||||
<test py-import-keys>
|
||||
cmd = $py impkeys
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-import-keys () {
|
||||
cmd="$py impkeys"
|
||||
expect=/ok/
|
||||
}
|
||||
|
||||
py-encrypt-asym-armor () {
|
||||
cmd="$py asymarmor"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-asym-armor>
|
||||
cmd = $py asymarmor
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-encrypt-asym-raw () {
|
||||
cmd="$py asymraw"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-asym-raw>
|
||||
cmd = $py asymraw
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-encrypt-asym-sign () {
|
||||
cmd="$py asymsign"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-asym-sign>
|
||||
cmd = $py asymsign
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-encrypt-asym-anon () {
|
||||
cmd="$py asymanon"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-asym-anon>
|
||||
cmd = $py asymanon
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-encrypt-sym-armor () {
|
||||
cmd="$py symarmor"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-sym-armor>
|
||||
cmd = $py symarmor
|
||||
expect = /ok/
|
||||
</test>
|
||||
py-encrypt-sym-raw () {
|
||||
cmd="$py symraw"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test py-encrypt-sym-raw>
|
||||
cmd = $py symraw
|
||||
expect = /ok/
|
||||
</test>
|
||||
prepare () {
|
||||
:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user