summaryrefslogtreecommitdiff
path: root/tests/scripts/options/dash-q
blob: 56f04a1f8275570d0df6d6fb46e9894bb959c3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#                                                                    -*-perl-*-
$description = "Test the -q option.\n";

$details = "Try various uses of -q and ensure they all give the correct results.\n";

# TEST 0

run_make_test('
one:
two: ;
three: ; :
four: ; $(.XY)
five: ; \
 $(.XY)
six: ; \
 $(.XY)
	$(.XY)
seven: ; \
 $(.XY)
	: foo
	$(.XY)
',
              '-q one', '');

# TEST 1

run_make_test(undef, '-q two', '');

# TEST 2

run_make_test(undef, '-q three', '', 256);

# TEST 3

run_make_test(undef, '-q four', '');

# TEST 4

run_make_test(undef, '-q five', '');

# TEST 5

run_make_test(undef, '-q six', '');

# TEST 6

run_make_test(undef, '-q seven', '', 256);

# TEST 7 : Savannah bug # 7144

run_make_test('
one:: ; @echo one
one:: ; @echo two
',
              '-q', '', 256);

1;