Skip to content
Snippets Groups Projects
Commit b2631ce4 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add test for checking that all gnt-* subcommands run OK


This is a bit of a shell munging trickery, but works for now. Making
it more generic can be done later.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 7db596df
No related branches found
No related tags found
No related merge requests found
......@@ -70,3 +70,8 @@ $SCRIPTS/gnt-debug --version
>>>/^gnt-/
>>>2
>>>= 0
# test that verifies all sub-commands can be run with --help, checking
# that optparse doesn't reject the options list
set -e; for c in scripts/gnt-*; do for i in $($c --help|grep '^ [^ ]'|awk '{print $1}'); do echo Checking command ${c##/}/$i; $c $i --help >/dev/null; done; done
>>>= 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment