Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gmake / tests / scripts / options / dash-q
blob923e4c4b207b53bbcff3be8a51c70f49f2928b6e
1 #                                                                    -*-perl-*-
2 $description = "Test the -q option.\n";
4 $details = "Try various uses of -q and ensure they all give the correct results.\n";
6 open(MAKEFILE, "> $makefile");
8 # The Contents of the MAKEFILE ...
10 print MAKEFILE <<'EOMAKE';
11 one:
12 two: ;
13 three: ; :
14 four: ; $(.XY)
15 five: ; \
16  $(.XY)
17 six: ; \
18  $(.XY)
19         $(.XY)
20 seven: ; \
21  $(.XY)
22         : foo
23         $(.XY)
24 EOMAKE
26 close(MAKEFILE);
28 # TEST 0
30 &run_make_with_options($makefile, "-q one", &get_logfile);
31 $answer = "";
32 &compare_output($answer, &get_logfile(1));
34 # TEST 1
36 &run_make_with_options($makefile, "-q two", &get_logfile);
37 $answer = "";
38 &compare_output($answer, &get_logfile(1));
40 # TEST 2
42 &run_make_with_options($makefile, "-q three", &get_logfile, 256);
43 $answer = "";
44 &compare_output($answer, &get_logfile(1));
46 # TEST 3
48 &run_make_with_options($makefile, "-q four", &get_logfile);
49 $answer = "";
50 &compare_output($answer, &get_logfile(1));
52 # TEST 4
54 &run_make_with_options($makefile, "-q five", &get_logfile);
55 $answer = "";
56 &compare_output($answer, &get_logfile(1));
58 # TEST 5
60 &run_make_with_options($makefile, "-q six", &get_logfile);
61 $answer = "";
62 &compare_output($answer, &get_logfile(1));
64 # TEST 6
66 &run_make_with_options($makefile, "-q seven", &get_logfile, 256);
67 $answer = "";
68 &compare_output($answer, &get_logfile(1));