Home | History | Annotate | Download | only in options
      1 #                                                                    -*-perl-*-
      2 $description = "Test the -q option.\n";
      3 
      4 $details = "Try various uses of -q and ensure they all give the correct results.\n";
      5 
      6 # TEST 0
      7 
      8 run_make_test('
      9 one:
     10 two: ;
     11 three: ; :
     12 four: ; $(.XY)
     13 five: ; \
     14  $(.XY)
     15 six: ; \
     16  $(.XY)
     17 	$(.XY)
     18 seven: ; \
     19  $(.XY)
     20 	: foo
     21 	$(.XY)
     22 ',
     23               '-q one', '');
     24 
     25 # TEST 1
     26 
     27 run_make_test(undef, '-q two', '');
     28 
     29 # TEST 2
     30 
     31 run_make_test(undef, '-q three', '', 256);
     32 
     33 # TEST 3
     34 
     35 run_make_test(undef, '-q four', '');
     36 
     37 # TEST 4
     38 
     39 run_make_test(undef, '-q five', '');
     40 
     41 # TEST 5
     42 
     43 run_make_test(undef, '-q six', '');
     44 
     45 # TEST 6
     46 
     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);
     56 
     57 1;
     58