2016-10-25 16:33:12 +02:00
|
|
|
# -*-sh-*-
|
2015-07-08 01:20:45 +02:00
|
|
|
#
|
|
|
|
|
# test the c++ api
|
|
|
|
|
|
2016-10-25 16:33:12 +02:00
|
|
|
check-cpp-crypto () {
|
|
|
|
|
cmd="./cpptest 0"
|
|
|
|
|
expect=/ok/
|
|
|
|
|
check "$cmd" "$expect" "$input"
|
|
|
|
|
}
|
2015-07-08 01:20:45 +02:00
|
|
|
|
2016-10-25 16:33:12 +02:00
|
|
|
check-cpp-vault () {
|
|
|
|
|
cmd="./cpptest 1"
|
|
|
|
|
expect=/ok/
|
|
|
|
|
check "$cmd" "$expect" "$input"
|
|
|
|
|
}
|
2015-07-08 01:20:45 +02:00
|
|
|
|
2016-10-25 16:33:12 +02:00
|
|
|
check-cpp-import-pub () {
|
|
|
|
|
cmd="./cpptest 2"
|
|
|
|
|
expect=/ok/
|
|
|
|
|
check "$cmd" "$expect" "$input"
|
|
|
|
|
}
|
2015-07-08 01:20:45 +02:00
|
|
|
|
2016-10-25 16:33:12 +02:00
|
|
|
check-cpp-signature () {
|
|
|
|
|
cmd="./cpptest 3"
|
|
|
|
|
expect=/ok/
|
|
|
|
|
check "$cmd" "$expect" "$input"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check-buffer () {
|
|
|
|
|
cmd="./cpptest 4"
|
|
|
|
|
expect=/ok/
|
|
|
|
|
check "$cmd" "$expect" "$input"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
prepare () {
|
|
|
|
|
:
|
|
|
|
|
}
|