File: general

package info (click to toggle)
make-doc-non-dfsg 4.4.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 9,632 kB
  • sloc: ansic: 31,255; sh: 5,213; perl: 1,612; makefile: 160; lisp: 26; sed: 16
file content (30 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (8)
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
#                                                                    -*-perl-*-
$description = "Test generic option processing.\n";

# TEST 0

if (!$parallel_jobs) {
  $answer = "#MAKE#: Parallel jobs (-j) are not supported on this platform.\n#MAKE#: Resetting to single job (-j1) mode.\n1foo\n";
}
else {
  $answer = "1foo\n";
}

run_make_test(q!
foo 1foo: ; @echo $@
!,
              "-j 1foo", $answer);

# TEST 1

# This test prints the usage string; I don't really know a good way to
# test it.  I guess I could invoke make with a known-bad option to see
# what the usage looks like, then compare it to what I get here... :(

# On UNIX I can invoke it with 2>/dev/null, then just check the error code.

if ($port_type ne 'W32') {
    run_make_test(undef, "-j1foo 2>/dev/null", '', 512);
}

1;