X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fsilent-lex.sh;h=6cc04308eb21a47eb7230ec2d76ef62bbd2fa91a;hb=5470c2dd9a594dc3cec553cd8ee052841ee5b8bd;hp=fa9623ce0f28259d466005760e59e299e44bacd9;hpb=f67dfa6e414c0cc0f6a807694aedba67923922d9;p=platform%2Fupstream%2Fautomake.git diff --git a/t/silent-lex.sh b/t/silent-lex.sh index fa9623c..6cc0430 100755 --- a/t/silent-lex.sh +++ b/t/silent-lex.sh @@ -17,7 +17,7 @@ # Check silent-rules mode for Lex. required='cc lex' -. ./defs || Exit 1 +. test-init.sh mkdir sub @@ -69,16 +69,16 @@ $AUTOMAKE --add-missing $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 +$FGREP 'foo2-foo.c' Makefile.in || exit 99 +$FGREP 'bar2-bar.c' sub/Makefile.in || exit 99 ./configure --enable-silent-rules -$MAKE >stdout || { cat stdout; Exit 1; } +$MAKE >stdout || { cat stdout; exit 1; } cat stdout -$EGREP ' (-c|-o)' stdout && Exit 1 -$EGREP '(mv|ylwrap) ' stdout && Exit 1 +$EGREP ' (-c|-o)' stdout && exit 1 +$EGREP '(mv|ylwrap) ' stdout && exit 1 grep 'LEX .*foo\.' stdout grep 'LEX .*bar\.' stdout @@ -94,11 +94,11 @@ grep 'CCLD .*bar2' stdout # different set of rules. $MAKE clean -$MAKE >stdout || { cat stdout; Exit 1; } +$MAKE >stdout || { cat stdout; exit 1; } cat stdout -$EGREP ' (-c|-o)' stdout && Exit 1 -$EGREP '(mv|ylwrap) ' stdout && Exit 1 +$EGREP ' (-c|-o)' stdout && exit 1 +$EGREP '(mv|ylwrap) ' stdout && exit 1 # Don't look for LEX, as probably lex hasn't been re-run. grep ' CC .*foo\.' stdout @@ -112,27 +112,27 @@ grep 'CCLD .*bar2' stdout $MAKE clean rm -f *foo.c sub/*bar.c -$MAKE V=1 >stdout || { cat stdout; Exit 1; } +$MAKE V=1 >stdout || { cat stdout; exit 1; } cat stdout grep ' -c ' stdout grep ' -o ' stdout grep 'ylwrap ' stdout -$EGREP '(LEX|CC|CCLD) ' stdout && Exit 1 +$EGREP '(LEX|CC|CCLD) ' stdout && exit 1 # Cleaning and then rebuilding with the same V flag (and without # removing the generated sources in between) shouldn't trigger a # different set of rules. $MAKE clean -$MAKE V=1 >stdout || { cat stdout; Exit 1; } +$MAKE V=1 >stdout || { cat stdout; exit 1; } cat stdout # Don't look for ylwrap, as probably lex hasn't been re-run. grep ' -c ' stdout grep ' -o ' stdout -$EGREP '(LEX|CC|CCLD) ' stdout && Exit 1 +$EGREP '(LEX|CC|CCLD) ' stdout && exit 1 :