File: dash-q

package info (click to toggle)
make 3.79.1-14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,224 kB
  • ctags: 1,754
  • sloc: ansic: 23,190; sh: 2,972; perl: 966; makefile: 339
file content (70 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download | duplicates (3)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
#                                                                    -*-perl-*-
$description = "Test the -q option.\n";

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

open(MAKEFILE, "> $makefile");

# The Contents of the MAKEFILE ...

print MAKEFILE <<'EOMAKE';
one:
two: ;
three: ; :
four: ; $(.XY)
five: ; \
 $(.XY)
six: ; \
 $(.XY)
	$(.XY)
seven: ; \
 $(.XY)
	: foo
	$(.XY)
EOMAKE

close(MAKEFILE);

# TEST 0

&run_make_with_options($makefile, "-q one", &get_logfile);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 1

&run_make_with_options($makefile, "-q two", &get_logfile);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 2

&run_make_with_options($makefile, "-q three", &get_logfile, 256);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 3

&run_make_with_options($makefile, "-q four", &get_logfile);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 4

&run_make_with_options($makefile, "-q five", &get_logfile);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 5

&run_make_with_options($makefile, "-q six", &get_logfile);
$answer = "";
&compare_output($answer, &get_logfile(1));

# TEST 6

&run_make_with_options($makefile, "-q seven", &get_logfile, 256);
$answer = "";
&compare_output($answer, &get_logfile(1));

1;