X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fsilent-nested-vars.sh;h=4a5f631229f419ad68c210a964e7f2927df75c2e;hb=6febcd41b3dcf99a89aaf21329c00fdadcd68771;hp=08ba070ae5eabdb99f35fbdec447ab6a665f2b84;hpb=26c7b8f50a02749e49135cac58c793bde97ec8fc;p=platform%2Fupstream%2Fautomake.git diff --git a/t/silent-nested-vars.sh b/t/silent-nested-vars.sh old mode 100755 new mode 100644 index 08ba070..4a5f631 --- a/t/silent-nested-vars.sh +++ b/t/silent-nested-vars.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-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 @@ -17,12 +17,11 @@ # Check silent-rules mode, on 'make' implementations that do not # support nested variables (Bug#9928, Bug#10237). -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<'EOF' AM_SILENT_RULES AC_PROG_CC -AM_PROG_CC_C_O AC_OUTPUT EOF @@ -116,8 +115,7 @@ grep '^checking whether \./mymake supports nested variables\.\.\. no *$' \ $EGREP 'CC|AM_V|GEN' Makefile # For debugging. grep '^AM_V_CC = *\$(am__v_CC_0) *$' Makefile grep '^AM_V_GEN = *\$(am__v_GEN_0) *$' Makefile -$MAKE >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O $EGREP ' (-c|-o)' stdout && exit 1 grep 'mv ' stdout && exit 1 grep 'echo .*oop' stdout && exit 1 @@ -136,8 +134,7 @@ $EGREP 'CC|AM_V|GEN' Makefile # For debugging. grep '^AM_V_CC = *\$(am__v_CC_1) *$' Makefile grep '^AM_V_GEN = *\$(am__v_GEN_1) *$' Makefile -$MAKE >stdout || { cat stdout; exit 1; } -cat stdout +run_make -O grep ' -c' stdout grep ' -o foo' stdout grep ' -o bar' stdout