summaryrefslogtreecommitdiff
path: root/t/suffix3.tap
Commit message (Collapse)AuthorAgeFilesLines
* [ng] rules: forbid old-fashioned suffix rules, prefer pattern rulesStefano Lattarini2012-05-101-77/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pattern rules are cleaner, safer, and vouched for in the GNU make manual itself. Supporting them instead of suffix rules will also allow us to simplify a little the automake script, auxiliary perl modules, and documentation. This change introduces a slight backward-incompatibility now, in that user provided definitions of the SUFFIXES variable or of the .SUFFIXES target, as well as old-fashioned suffix rules, are now rejected. Automake-NG still tries to parse and understand suffix-based pattern rules though, to retain support for user-added file extensions in the _SOURCES variables (see "Handling new file extensions" in the Automake manual). So, an usage like: SUFFIXES = .baz .c .baz.c: cp $< $@ foo_SOURCES = foo.c bar.baz DISTCLEANFILES = bar.c which was valid with mainline Automake, should be translated for Automake-NG as: %.c: %.baz cp $< $@ bin_PROGRAMS = foo foo_SOURCES = foo.c sub/bar.baz DISTCLEANFILES = bar.c Note that suffix-based pattern rules with dot-less suffix are *not* supported. * NG-NEWS: Update. * doc/automake.texi: Likewise. * lib/am/footer.am: Declare '.SUFFIXES:' with empty dependencies, to neutralize the default suffix rules. * automake.in (&handle_footer): Reject the 'SUFFIXES' variable. Don't process its content anymore. Don't generate the .SUFFIXES special target anymore. (&var_SUFFIXES_trigger): Remove. And don't install it as an hook for the now-deprecated 'SUFFIXES' variable. * lib/Automake/Rule.pm (&define): Don't process old-fashioned suffix rules specially, but just reject them. Instead, process pattern rules specially. ($_SUFFIX_RULE_PATTERN): Made local to the '&define' function, renaming it as '$suffix_rule_rx'. (&suffixes, @_suffixes): Delete, they are no more used. (@EXPORT): Adjust. (register_suffix_rule): Don't extend '@_suffixes' anymore. (reset): Don't reset '@_suffixes' anymore. * t/ext3.sh: Remove as obsolete. * t/suffix4.sh: Likewise. * t/suffix6.sh: Likewise. * t/suffix6b.sh: Likewise. * t/suffix7.sh: Likewise. * t/suffix11.tap: Likewise. * t/suffix6c.sh: Rename ... * t/suffix-obj.sh: .. like this, and adjust. * t/suffix-chain.tap: Rewrite a as "simple" test (rather than as a TAP test), adjust, and rename ... * t/suffix-chain.sh: ... like this. * t/suffix3.tap: Likewise rewrite and rename ... * t/suffix3.sh: ... like this. * t/suffix8.tap: Likewise rewrite and rename ... * t/suffix8.sh: ... like this. * t/suffix10.tap: Likewise rewrite and rename ... * t/suffix10.sh: ... like this. * t/suffix5.sh: Adjust. * t/suffix9.sh: Likewise. * t/suffix13.sh: Likewise. * t/parallel-tests8.sh: Likewise. * t/warnings-strictness-interactions.sh: Likewise. * t/warnings-win-over-strictness.sh: Likewise. * t/warnings-precedence.sh: Likewise. * t/warnings-override.sh: Likewise. * t/warning-groups-win-over-strictness.sh: Likewise. * t/amopts-variable-expansion.sh: Likewise. * t/specflg10.sh: Likewise. * t/suffix-rules-reject.sh: New test. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* Merge branch 'master' into ng/masterStefano Lattarini2012-04-111-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: vala tests: force the use of automatic dependency tracking tests: avoid spurious failures in tests on C++ and lex tests: avoid spurious failures with non-flex 'lex' programs and C++ tests: avoid a spurious failures for shells with busted 'set -e' maint: simplify generation of files with @substed@ stuff tests: remove redundant requirement tests: make two test scripts executable t/README: update w.r.t. recent overhaul (non-recursive build system) docs: fix names of relevant test cases in comments NEWS: automake build systems avoids make recursion maint: no more make recursion in Automake's build system tests: rename 'tests/' => 't/', '*.test' => '*.sh' tests: remove recipes that run tests with 'prove' tests: move most helper scripts and files into the 'ax' subdirectory maint: remove most recursion in automake's own build system tests: fix a spurious failures with non-GNU make + Extra non-trivial edits: * Makefile.am: Remove new uses of 'AM_MAKEFLAGS' throughout. (dist_automake_ac_DATA): Do not list 'm4/depout.m4' nor 'm4/make.m4'. * syntax-checks.m4: Use '$(xdefs)' instead of hard-coding the older paths of 'defs' and 'defs-static.in'. Use 't/README' instead of 'tests/README'. * t/instdir-no-empty.sh: Remove uses of 'AM_MAKEFLAGS'. * tests/depcomp-recover.test: Renamed ... * t/depcomp-recover.sh: ... to this. * tests/gmake-vars.test: Renamed ... * t/gmake-vars.sh: ... to this. * tests/interp3.test: Renamed ... * t/interp3.sh: ... to this. * tests/objdir.test: Renamed ... * t/objdir.sh: ... to this. * tests/spy-vpath-rewrite.test: Renamed ... * t/spy-vpath-rewrite.sh: ... to this. * tests/vpath-rewrite.test: Renamed ... * t/vpath-rewrite.sh: ... to this. * tests/yacc-subobj-nodep.test: Renamed ... * t/yacc-subobj-nodep.sh: ... to this. * tests/depcomp-shuffle.sh: Renamed ... * t/ax/depcomp-shuffle.sh: ... to this, and removed executable bit. * t/depcomp-shuffle-sub-vpath.sh: Adjust. * t/depcomp-shuffle-sub.sh: Likewise. * t/depcomp-shuffle-vpath.sh: Likewise. * t/depcomp-shuffle.sh: Likewise. * gen-testsuite-part: Likewise. * t/list-of-tests.mk: Do not list tests that had been already removed from the Automake-NG testsuite. Take into account the renames above. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: rename 'tests/' => 't/', '*.test' => '*.sh'Stefano Lattarini2012-04-061-0/+82
When we (soon) convert the Automake testsuite to a non-recursive make setup, we'll have to fix the entries of $(TESTS) to be prepended with the subdirectory they are in; this will increase the length of $(TESTS), and thus increase the possibility of exceeding the command-line length limits on some systems (most notably, MinGW/MSYS). See automake bug#7868 for more information. Thus we rename the 'tests/' subdirectory to 't/', and each 'x.test' script in there to 'x.sh'; this way, the $(TESTS) entry 'foo.test' will become 't/foo.sh', which have the same number of characters. * tests/: Rename ... * t/: ... to this. * t/*.test: Rename ... * t/*.sh: ... to this. * t/.gitignore: Removed as obsolete. * t/defs: Adjust. * t/gen-testsuite-part: Likewise. * t/list-of-tests.mk: Likewise. * t/ccnoco.sh: Likewise. * t/ccnoco3.sh: Likewise. * t/self-check-cleanup.tap: Likewise. * t/self-check-dir.tap: Likewise. * t/self-check-me.tap: Likewise. * t/self-check-reexec.tap: Likewise. * README: Likewise. * bootstrap: Likewise * configure.ac: Likewise. * Makefile.am: Likewise. * .gitignore: Likewise. * syntax-check.mk: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>