1 # test the various gnt-commands for common options
2 $SCRIPTS/gnt-node --help
6 $SCRIPTS/gnt-node UNKNOWN
10 $SCRIPTS/gnt-node --version
15 $SCRIPTS/gnt-instance --help
19 $SCRIPTS/gnt-instance UNKNOWN
23 $SCRIPTS/gnt-instance --version
28 $SCRIPTS/gnt-os --help
32 $SCRIPTS/gnt-os UNKNOWN
36 $SCRIPTS/gnt-os --version
41 $SCRIPTS/gnt-group --help
45 $SCRIPTS/gnt-group UNKNOWN
49 $SCRIPTS/gnt-group --version
54 $SCRIPTS/gnt-job --help
58 $SCRIPTS/gnt-job UNKNOWN
62 $SCRIPTS/gnt-job --version
67 $SCRIPTS/gnt-cluster --help
71 $SCRIPTS/gnt-cluster UNKNOWN
75 $SCRIPTS/gnt-cluster --version
80 $SCRIPTS/gnt-backup --help
84 $SCRIPTS/gnt-backup UNKNOWN
88 $SCRIPTS/gnt-backup --version
93 $SCRIPTS/gnt-debug --help
97 $SCRIPTS/gnt-debug UNKNOWN
101 $SCRIPTS/gnt-debug --version
106 # test that verifies all sub-commands can be run with --help, checking
107 # that optparse doesn't reject the options list
108 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