Add help / version output jni test

This commit is contained in:
Jeremy Lakeman 2013-07-09 16:24:47 +09:30
parent 3f76505e21
commit 98dcd973ec

View File

@ -77,5 +77,13 @@ test_NullArg() {
assertStderrGrep 'NullPointerException: null element in argv'
}
doc_help="Serval JNI returns help text"
test_help() {
execute --core-backtrace java "-Djava.library.path=$LD_LIBRARY_PATH" -classpath "$PWD/classes" org.servalproject.servald.ServalD 'help'
tfw_cat --stdout --stderr
assertExitStatus '==' 0
assertStdoutGrep 'Serval DNA version '
}
runTests "$@"