move from unittest perl tp shell script, more portable and easier to understand

This commit is contained in:
Thomas von Dein
2016-10-25 16:33:12 +02:00
parent 0b1e843ee8
commit 2cb91c93e0
7 changed files with 779 additions and 570 deletions

View File

@@ -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 () {
:
}