X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fsilent-yacc.sh;h=8344b65e4590e9963ba605d1a049ef368713e534;hb=ddc755a63c4318f70e6743f9f0debd0614311699;hp=779f498346d0109d619ea3bbaf59b672ad45ee00;hpb=f2436f5b665184ce8fa2e3babe1b1edfa69299f6;p=platform%2Fupstream%2Fautomake.git diff --git a/t/silent-yacc.sh b/t/silent-yacc.sh old mode 100755 new mode 100644 index 779f498..8344b65 --- a/t/silent-yacc.sh +++ b/t/silent-yacc.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2010-2012 Free Software Foundation, Inc. +# Copyright (C) 2010-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,10 +15,9 @@ # along with this program. If not, see . # Check silent-rules mode for Yacc. -# Keep this in sync with sister test 'silent-yacc-gcc.test'. required='cc yacc' -. ./defs || exit 1 +. test-init.sh mkdir sub @@ -71,8 +70,7 @@ $FGREP 'bar2-bar.c' sub/Makefile.in || exit 99 ./configure --enable-silent-rules -$MAKE >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O $EGREP ' (-c|-o)' stdout && exit 1 $EGREP '(mv|ylwrap) ' stdout && exit 1 @@ -91,8 +89,7 @@ grep 'CCLD .*bar2' stdout # different set of rules. $MAKE clean -$MAKE >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O $EGREP ' (-c|-o)' stdout && exit 1 $EGREP '(mv|ylwrap) ' stdout && exit 1 @@ -109,8 +106,7 @@ grep 'CCLD .*bar2' stdout $MAKE clean rm -f *foo.[ch] sub/*bar.[ch] -$MAKE V=1 >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O V=1 grep ' -c ' stdout grep ' -o ' stdout @@ -123,8 +119,7 @@ $EGREP '(YACC|CC|CCLD) ' stdout && exit 1 # different set of rules. $MAKE clean -$MAKE V=1 >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O V=1 # Don't look for ylwrap, as probably lex hasn't been re-run. grep ' -c ' stdout