diff options
Diffstat (limited to 'tests/confh5.test')
-rwxr-xr-x | tests/confh5.test | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/confh5.test b/tests/confh5.test index febe000b5..9af83dcbf 100755 --- a/tests/confh5.test +++ b/tests/confh5.test @@ -21,14 +21,15 @@ set -e cat >> configure.in << 'END' -AC_SUBST([FOO], [name]) -AC_CONFIG_FILES(include/config.h.in) -AC_CONFIG_HEADERS(config.h) -AC_CONFIG_HEADERS(include/config.h) +AC_SUBST([FOO], [NameToBeGrepped]) +AC_CONFIG_FILES([include/config.h.in]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([include/config.h]) AC_OUTPUT END cat > Makefile.am << 'END' +.PHONY: test test: distdir test -f $(distdir)/config.h.in test -f $(distdir)/include/config.h.in.in @@ -51,6 +52,10 @@ $MAKE $sleep echo '#undef @FOO@' > include/config.h.in.in $MAKE include/config.h -grep '/\*.*#undef.*name' include/config.h +# Don't try to be too strict in this grepping, since the substutition +# is done by config.status, and we don't have too much control on it. +grep '/\*.*#undef.*NameToBeGrepped' include/config.h $MAKE test $MAKE distcheck + +: |