diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-07 10:38:29 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-07 17:52:12 +0200 |
commit | df3b0944630a84a79c11654664ac666f1750302e (patch) | |
tree | 337d10ed457681eeccf11d34fa2d530a0da87fb4 /t/silent-yacc.sh | |
parent | 14fe163aa44992641c0730b0c399aa7d6845e775 (diff) | |
download | automake-df3b0944630a84a79c11654664ac666f1750302e.tar.gz |
[ng] tests: remove explicit usages of the 'subdir-objects' option
It is enabled unconditionally since the previous change.
* Several tests: Adjust, extend, rework and simplify, as needed.
* t/ax/depcomp-shuffle.sh, t/ax/depcomp.sh: Likewise.
* t/subobj2.sh: Rename ...
* t/subobj-cxx-grep.sh: ... to this, and adjust.
* t/subobj.sh: Rename ...
* t/subobj-c.sh: ... to this, and adjust.
* t/subobj-cxx.sh: New test.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/silent-yacc.sh')
-rwxr-xr-x | t/silent-yacc.sh | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/t/silent-yacc.sh b/t/silent-yacc.sh index 4b493b5af..9a075fccd 100755 --- a/t/silent-yacc.sh +++ b/t/silent-yacc.sh @@ -20,12 +20,9 @@ required='cc yacc' . ./defs || Exit 1 -mkdir sub - cat >>configure.ac <<'EOF' AM_PROG_CC_C_O AC_PROG_YACC -AC_CONFIG_FILES([sub/Makefile]) AC_OUTPUT EOF @@ -36,17 +33,6 @@ foo1_SOURCES = foo.y foo2_SOURCES = $(foo1_SOURCES) foo2_YFLAGS = -v foo2_CFLAGS = $(AM_CPPFLAGS) -SUBDIRS = sub -EOF - -cat > sub/Makefile.am <<'EOF' -AUTOMAKE_OPTIONS = subdir-objects -# Need generic and non-generic rules. -bin_PROGRAMS = bar1 bar2 -bar1_SOURCES = bar.y -bar2_SOURCES = $(bar1_SOURCES) -bar2_YFLAGS = -v -bar2_CFLAGS = $(AM_CPPFLAGS) EOF cat > foo.y <<'EOF' @@ -59,7 +45,6 @@ int main (void) { return 0; } %% fubar : 'f' 'o' 'o' 'b' 'a' 'r' EOF {}; EOF -cp foo.y sub/bar.y $ACLOCAL $AUTOMAKE --add-missing @@ -67,7 +52,6 @@ $AUTOCONF # Ensure per-target rules are used, to ensure their coverage below. $FGREP 'foo2-foo.c' Makefile.in || Exit 99 -$FGREP 'bar2-bar.c' sub/Makefile.in || Exit 99 ./configure --enable-silent-rules @@ -78,13 +62,9 @@ $EGREP ' (-c|-o)' stdout && Exit 1 $EGREP '(mv|ylwrap) ' stdout && Exit 1 grep 'YACC .*foo\.' stdout -grep 'YACC .*bar\.' stdout -grep ' CC .*foo\.' stdout -grep ' CC .*bar\.' stdout -grep 'CCLD .*foo1' stdout -grep 'CCLD .*bar1' stdout -grep 'CCLD .*foo2' stdout -grep 'CCLD .*bar2' stdout +grep ' CC .*foo\.' stdout +grep 'CCLD .*foo1' stdout +grep 'CCLD .*foo2' stdout # Cleaning and then rebuilding with the same V flag (and without # removing the generated sources in between) shouldn't trigger a @@ -98,16 +78,13 @@ $EGREP ' (-c|-o)' stdout && Exit 1 $EGREP '(mv|ylwrap) ' stdout && Exit 1 # Don't look for YACC, as probably yacc hasn't been re-run. -grep ' CC .*foo\.' stdout -grep ' CC .*bar\.' stdout -grep 'CCLD .*foo1' stdout -grep 'CCLD .*bar1' stdout -grep 'CCLD .*foo2' stdout -grep 'CCLD .*bar2' stdout +grep ' CC .*foo\.' stdout +grep 'CCLD .*foo1' stdout +grep 'CCLD .*foo2' stdout # Ensure a truly clean rebuild. $MAKE clean -rm -f *foo.[ch] sub/*bar.[ch] +rm -f *foo.[ch] $MAKE V=1 >stdout || { cat stdout; Exit 1; } cat stdout |