. test-init.sh
-plan_ 17
+plan_ 14
# Usage: bad_cmdline DESCRIPTION REGEX-FOR-STDERR [ARGS-FOR-AUTOMAKE...]
do_check ()
regex=$1; shift
AUTOMAKE_fails -d "$desc (run)" -- "$@"
command_ok_ "$desc (stderr)" grep "$regex" stderr
+ cat stderr
}
do_check 'invalid long option' 'unrecognized option.*--voo' --voo
-# Older perl has a buggy Getopt::Long which makes this fail.
-if $PERL -e 'require 5.8.2;'; then
- do_check "list of options terminated by '--'" \
- 'input file.*--voo' -- --voo
-else
- skip_row_ 2 -r "older perl with buggy Getopt::Long"
-fi
-
do_check "empty argument" \
'empty argument' ''
do_check "ambiguous incomplete option" \
'unrecognized option.*--ver' --ver
-command_ok_ "unambiguous incomplete long option" $AUTOMAKE --vers
-
:
# TODO: add BUILT_SOURCES to sub2, fix fallout.
sed 's/##//' < Makefile.am > t
mv -f t Makefile.am
-$AUTOMAKE -Wno-override --force Makefile
+$AUTOMAKE -Wno-override Makefile
./configure
check_targets || exit 1