Debian Codegraph @

tests/scripts/options/general

raw
1 # -*-perl-*-
2 $description = "Test generic option processing.\n";
3
4 # TEST 0
5
6 if (!$parallel_jobs) {
7 $answer = "#MAKE#: Parallel jobs (-j) are not supported on this platform.\n#MAKE#: Resetting to single job (-j1) mode.\n1foo\n";
8 }
9 else {
10 $answer = "1foo\n";
11 }
12
13 run_make_test(q!
14 foo 1foo: ; @echo $@
15 !,
16 "-j 1foo", $answer);
17
18 # TEST 1
19
20 # This test prints the usage string; I don't really know a good way to
21 # test it. I guess I could invoke make with a known-bad option to see
22 # what the usage looks like, then compare it to what I get here... :(
23
24 # On UNIX I can invoke it with 2>/dev/null, then just check the error code.
25
26 if ($port_type ne 'W32') {
27 run_make_test(undef, "-j1foo 2>/dev/null", '', 512);
28 }
29
30 1;