mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-31 00:23:50 +00:00
Add help / version output jni test
This commit is contained in:
parent
3f76505e21
commit
98dcd973ec
@ -77,5 +77,13 @@ test_NullArg() {
|
|||||||
assertStderrGrep 'NullPointerException: null element in argv'
|
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 "$@"
|
runTests "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user