summaryrefslogtreecommitdiff
path: root/t/aclocal-macrodirs.tap
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-07-04 15:37:46 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-11-10 10:21:08 +0100
commitfd60ad28737e90d8732f28ce85d6cdaa781bdeed (patch)
treef997eb3102fabb8f4510b1b5924a709a34e1f9da /t/aclocal-macrodirs.tap
parentd2155d50e6ef6d11845583af0113a717642f53df (diff)
downloadautomake-fd60ad28737e90d8732f28ce85d6cdaa781bdeed.tar.gz
aclocal: diagnose non-existing directories in AC_CONFIG_MACRO_DIRS better
This new implementation ensures that any directory (possibly excluding the first one, if the '--install' option is used) that is declared with AC_CONFIG_MACRO_DIRS and that is non-existent will cause an error from aclocal. * aclocal.in (scan_m4_dirs): Add a new argument, telling whether it's OK for the scanned directory to be non-existing. Adjust the implementation accordingly. ($first_user_m4dir): Remove, no more needed. (scan_m4_files): Update 'scan_m4_dirs' invocations so that aclocal will not complain if the first user macro directory is non-existing and the '--install' option is given: such directory will be created later by aclocal itself. * t/aclocal-macrodir.tap: Do not mark the last test as TODO anymore; it now passes. Make stricter by ensuring a non-existing directory in AC_CONFIG_MACRO_DIRS causes an hard error, not a warning. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/aclocal-macrodirs.tap')
-rwxr-xr-xt/aclocal-macrodirs.tap5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/aclocal-macrodirs.tap b/t/aclocal-macrodirs.tap
index aaac4b45e..2440d8f3f 100755
--- a/t/aclocal-macrodirs.tap
+++ b/t/aclocal-macrodirs.tap
@@ -294,8 +294,7 @@ test_end
#---------------------------------------------------------------------------
-test_begin "AC_CONFIG_MACRO_DIRS([non-existent]) errors out (tricky setup)" \
- TODO
+test_begin "AC_CONFIG_MACRO_DIRS([non-existent]) errors out (tricky setup)"
cat > configure.ac << 'END'
AC_INIT([oops], [1.0])
@@ -305,7 +304,7 @@ END
mkdir dir-ok
-not $ACLOCAL --install 2>stderr \
+not $ACLOCAL -Wnone --install 2>stderr \
&& cat stderr >&2 \
&& grep "couldn't open directory 'dir-ko'" stderr \
&& test ! -e dir-ko \