1 # test the various gnt-commands for common options
2 $SCRIPTS/gnt-node --help
6 $SCRIPTS/gnt-node --version
11 $SCRIPTS/gnt-instance --help
15 $SCRIPTS/gnt-instance --version
20 $SCRIPTS/gnt-os --help
24 $SCRIPTS/gnt-os --version
29 $SCRIPTS/gnt-group --help
33 $SCRIPTS/gnt-group --version
38 $SCRIPTS/gnt-job --help
42 $SCRIPTS/gnt-job --version
47 $SCRIPTS/gnt-cluster --help
51 $SCRIPTS/gnt-cluster --version
56 $SCRIPTS/gnt-backup --help
60 $SCRIPTS/gnt-backup --version
65 $SCRIPTS/gnt-debug --help
69 $SCRIPTS/gnt-debug --version
74 # test that verifies all sub-commands can be run with --help, checking
75 # that optparse doesn't reject the options list
76 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