From: Stefano Lattarini Date: Tue, 12 Apr 2011 16:19:41 +0000 (+0200) Subject: tests: fix spurious failure in test 'yacc-d-cxx.test' X-Git-Tag: ylwrap-refactor-abandoned-branch~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69513875e7847a5b6b89ffb58721daee9a49f06b;p=thirdparty%2Fautomake.git tests: fix spurious failure in test 'yacc-d-cxx.test' * tests/yacc-d-cxx.test: Create ylwrap script before calling automake for the first time, so that the script gets correctly distributed. Add checks verifying it indeed is. --- diff --git a/ChangeLog b/ChangeLog index 871aadf2c..6e522d8fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-04-12 Stefano Lattarini + + tests: fix spurious failure in test 'yacc-d-cxx.test' + * tests/yacc-d-cxx.test: Create ylwrap script before calling + automake for the first time, so that the script gets correctly + distributed. Add checks verifying it indeed is. + 2011-04-12 Stefano Lattarini tests cosmetics: remove redundant definitions of variable $tab diff --git a/tests/yacc-d-cxx.test b/tests/yacc-d-cxx.test index 67e4dabda..43813463c 100755 --- a/tests/yacc-d-cxx.test +++ b/tests/yacc-d-cxx.test @@ -64,28 +64,30 @@ AC_CONFIG_FILES([foo/Makefile bar/Makefile baz/Makefile qux/Makefile]) AC_OUTPUT END -cat > Makefile.am <<'END' -SUBDIRS = foo bar baz qux -END - mkdir foo bar baz qux baz/sub # These makefiles will be extended later. -cat > foo/Makefile.am <<'END' +cat > Makefile.am <<'END' .PHONY: echo-distcom echo-distcom: @echo ' ' $(DIST_COMMON) ' ' END -cp foo/Makefile.am bar/Makefile.am -cp foo/Makefile.am baz/Makefile.am -cp foo/Makefile.am qux/Makefile.am +cp Makefile.am foo/Makefile.am +cp Makefile.am bar/Makefile.am +cp Makefile.am baz/Makefile.am +cp Makefile.am qux/Makefile.am + +cat >> Makefile.am <<'END' +SUBDIRS = foo bar baz qux +END $ACLOCAL $AUTOCONF -$AUTOMAKE Makefile cp $testsrcdir/../lib/ylwrap . +$AUTOMAKE Makefile + # Try with -d in $(YFLAGS) (don't do this in real life!). cat >> foo/Makefile.am <