mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
move from unittest perl tp shell script, more portable and easier to understand
This commit is contained in:
@@ -1,26 +1,37 @@
|
||||
# -*-sh-*-
|
||||
#
|
||||
# test the c++ api
|
||||
<test check-cpp-crypto>
|
||||
cmd = ./cpptest 0
|
||||
expect = /ok/
|
||||
</test>
|
||||
|
||||
<test check-cpp-vault>
|
||||
cmd = ./cpptest 1
|
||||
expect = /ok/
|
||||
</test>
|
||||
check-cpp-crypto () {
|
||||
cmd="./cpptest 0"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test check-cpp-import-pub>
|
||||
cmd = ./cpptest 2
|
||||
expect = /ok/
|
||||
</test>
|
||||
check-cpp-vault () {
|
||||
cmd="./cpptest 1"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test check-cpp-signature>
|
||||
cmd = ./cpptest 3
|
||||
expect = /ok/
|
||||
</test>
|
||||
check-cpp-import-pub () {
|
||||
cmd="./cpptest 2"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
<test check-buffer>
|
||||
cmd = ./cpptest 4
|
||||
expect = /ok/
|
||||
</test>
|
||||
check-cpp-signature () {
|
||||
cmd="./cpptest 3"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
check-buffer () {
|
||||
cmd="./cpptest 4"
|
||||
expect=/ok/
|
||||
check "$cmd" "$expect" "$input"
|
||||
}
|
||||
|
||||
prepare () {
|
||||
:
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user