diff options
Diffstat (limited to 't/help.sh')
-rwxr-xr-x | t/help.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/t/help.sh b/t/help.sh new file mode 100755 index 000000000..2f7c2d1ba --- /dev/null +++ b/t/help.sh @@ -0,0 +1,46 @@ +#! /bin/sh +# Copyright (C) 2003-2012 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# Make sure --help and --version work, even when no configure.ac nor +# configure.in is in the current directory. + +. ./defs || Exit 1 + +# Ensure we run in an empty directory. +mkdir emptydir +cd emptydir + +# Honour user overrides for $ACLOCAL and $AUTOMAKE, but without +# adding extra options. +ACLOCAL=$am_original_ACLOCAL +AUTOMAKE=$am_original_AUTOMAKE + +$ACLOCAL --version +$ACLOCAL --help +$AUTOMAKE --version +$AUTOMAKE --help + +# Sanity checks: aclocal and automake cannot work without configure.ac +# nor configure.in. +$ACLOCAL 2>stderr && { cat stderr >&2; Exit 1; } +cat stderr >&2 +$FGREP configure.ac stderr +$FGREP configure.in stderr +AUTOMAKE_fails +$FGREP configure.ac stderr +$FGREP configure.in stderr + +: |