Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/options/dash-q
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/options/dash-q
r53 r284 4 4 $details = "Try various uses of -q and ensure they all give the correct results.\n"; 5 5 6 open(MAKEFILE, "> $makefile"); 6 # TEST 0 7 7 8 # The Contents of the MAKEFILE ... 9 10 print MAKEFILE <<'EOMAKE'; 8 run_make_test(' 11 9 one: 12 10 two: ; … … 22 20 : foo 23 21 $(.XY) 24 EOMAKE 25 26 close(MAKEFILE); 27 28 # TEST 0 29 30 &run_make_with_options($makefile, "-q one", &get_logfile); 31 $answer = ""; 32 &compare_output($answer, &get_logfile(1)); 22 ', 23 '-q one', ''); 33 24 34 25 # TEST 1 35 26 36 &run_make_with_options($makefile, "-q two", &get_logfile); 37 $answer = ""; 38 &compare_output($answer, &get_logfile(1)); 27 run_make_test(undef, '-q two', ''); 39 28 40 29 # TEST 2 41 30 42 &run_make_with_options($makefile, "-q three", &get_logfile, 256); 43 $answer = ""; 44 &compare_output($answer, &get_logfile(1)); 31 run_make_test(undef, '-q three', '', 256); 45 32 46 33 # TEST 3 47 34 48 &run_make_with_options($makefile, "-q four", &get_logfile); 49 $answer = ""; 50 &compare_output($answer, &get_logfile(1)); 35 run_make_test(undef, '-q four', ''); 51 36 52 37 # TEST 4 53 38 54 &run_make_with_options($makefile, "-q five", &get_logfile); 55 $answer = ""; 56 &compare_output($answer, &get_logfile(1)); 39 run_make_test(undef, '-q five', ''); 57 40 58 41 # TEST 5 59 42 60 &run_make_with_options($makefile, "-q six", &get_logfile); 61 $answer = ""; 62 &compare_output($answer, &get_logfile(1)); 43 run_make_test(undef, '-q six', ''); 63 44 64 45 # TEST 6 65 46 66 &run_make_with_options($makefile, "-q seven", &get_logfile, 256); 67 $answer = ""; 68 &compare_output($answer, &get_logfile(1)); 47 run_make_test(undef, '-q seven', '', 256); 48 49 # TEST 7 : Savannah bug # 7144 50 51 run_make_test(' 52 one:: ; @echo one 53 one:: ; @echo two 54 ', 55 '-q', '', 256); 69 56 70 57 1;
Note:
See TracChangeset
for help on using the changeset viewer.

