- Timestamp:
- Dec 31, 2008 12:16:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/tests/scripts/features/patspecific_vars
r969 r2173 37 37 # TEST #1 -- basics 38 38 39 &run_make_with_options($makefile, " ", &get_logfile);39 &run_make_with_options($makefile, "-j1", &get_logfile); 40 40 $answer = "one.x: one two baz\ntwo.x: foo four baz\nthree.x: foo four three\n"; 41 41 &compare_output($answer,&get_logfile(1)); … … 44 44 # TEST #2 -- try the override feature 45 45 46 &run_make_with_options($makefile, " BAZ=five", &get_logfile);46 &run_make_with_options($makefile, "-j1 BAZ=five", &get_logfile); 47 47 $answer = "one.x: one two five\ntwo.x: foo four five\nthree.x: foo four three\n"; 48 48 &compare_output($answer,&get_logfile(1)); … … 51 51 # TEST #3 -- make sure patterns are inherited properly 52 52 53 &run_make_with_options($makefile, " four.x", &get_logfile);53 &run_make_with_options($makefile, "-j1 four.x", &get_logfile); 54 54 $answer = "baz: foo two baz\nfour.x: foo two baz\n"; 55 55 &compare_output($answer,&get_logfile(1)); … … 58 58 # TEST #4 -- test multiple patterns matching the same target 59 59 60 &run_make_with_options($makefile, " ab", &get_logfile);60 &run_make_with_options($makefile, "-j1 ab", &get_logfile); 61 61 $answer = "aaa bbb\nccc ddd\n"; 62 62 &compare_output($answer,&get_logfile(1)); … … 69 69 /bar: 70 70 @echo $(foo) $$foo 71 ', ' ', 'foo foo');71 ', '-j1', 'foo foo'); 72 72 73 73 … … 109 109 global := new $$t 110 110 ', 111 ' ',111 '-j1', 112 112 'normal: global: orginal $t pattern: inherit: ; 113 113 pattrn: global: orginal $t pattern: inherit: ;'); … … 117 117 # 118 118 run_make_test(undef, # reuse previous makefile 119 ' rec=1',119 '-j1 rec=1', 120 120 'normal: global: new $t pattern: good $t inherit: good $t; 121 121 pattrn: global: new $t pattern: good $t inherit: good $t;');
Note:
See TracChangeset
for help on using the changeset viewer.