| 1 |
# -*-perl-*- |
| 2 |
|
| 3 |
$description = "Test the -s (silent) and --no-silent options.\n"; |
| 4 |
|
| 5 |
run_make_test(q! |
| 6 |
all: one two |
| 7 |
one: ; @echo MAKEFLAGS=$$MAKEFLAGS |
| 8 |
two: ; echo two |
| 9 |
!, |
| 10 |
'', "MAKEFLAGS=\necho two\ntwo"); |
| 11 |
|
| 12 |
run_make_test(undef, '-s', "MAKEFLAGS=s\ntwo"); |
| 13 |
run_make_test(undef, '--silent', "MAKEFLAGS=s\ntwo"); |
| 14 |
run_make_test(undef, '--quiet', "MAKEFLAGS=s\ntwo"); |
| 15 |
|
| 16 |
run_make_test(undef, '--no-silent', "MAKEFLAGS= --no-silent\necho two\ntwo"); |
| 17 |
|
| 18 |
run_make_test(undef, '-s --no-silent', "MAKEFLAGS= --no-silent\necho two\ntwo"); |
| 19 |
run_make_test(undef, '--silent --no-silent', "MAKEFLAGS= --no-silent\necho two\ntwo"); |
| 20 |
run_make_test(undef, '--quiet --no-silent', "MAKEFLAGS= --no-silent\necho two\ntwo"); |
| 21 |
|
| 22 |
run_make_test(undef, '--no-silent -s', "MAKEFLAGS=s\ntwo"); |
| 23 |
run_make_test(undef, '--no-silent --silent', "MAKEFLAGS=s\ntwo"); |
| 24 |
run_make_test(undef, '--no-silent --quiet', "MAKEFLAGS=s\ntwo"); |
| 25 |
|
| 26 |
1; |