13 for CMD in $CMDLINE_OPTS ; do
15 if [[ $CMD == *: ]] ; then
18 VALUES[$count]="${CMD%%:*} $PARAM"
23 while [ "$i" -lt "$count" ] ; do
24 CMDLINE+="--${VALUES[$i]} "
28 . ../cmdlineopts.clp $CMDLINE
32 while [ "$i" -lt "$count" ] ; do
36 VARNAME='$_opt_'${VARNAME/-/_}
37 VALUE="$(eval echo $VARNAME)"
38 if [ -z "$RESULT" ] ; then
39 assertNotNull "$VARNAME should be not null" "$VALUE"
41 assertEquals "$VARNAME" "$RESULT" "$VALUE"
48 . /usr/share/shunit2/shunit2