From 98dcd973ec6db96dddc863df535094ed2e37c1e2 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Tue, 9 Jul 2013 16:24:47 +0930 Subject: [PATCH] Add help / version output jni test --- tests/jni | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/jni b/tests/jni index 41088eaa..456a2dd5 100755 --- a/tests/jni +++ b/tests/jni @@ -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 "$@"