Ignore:
Timestamp:
Oct 29, 2008, 1:37:51 AM (17 years ago)
Author:
bird
Message:

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

Location:
trunk/src/kmk/tests/scripts/targets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/tests/scripts/targets/INTERMEDIATE

    r1973 r1993  
    5757# TEST #3
    5858# kmk+fast: differs because of different hashing.
     59# kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice.
    5960
    60 &run_make_with_options($makefile,'foo.c',&get_logfile);
     61&run_make_with_options($makefile,'-j1 foo.c',&get_logfile);
    6162$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    6263        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
     
    7172# TEST #5
    7273# kmk+fast: differs because of different hashing.
     74# kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice.
    7375
    7476&utouch(-10, 'foo.c');
    7577&touch('foo.f');
    7678
    77 &run_make_with_options($makefile,'foo.c',&get_logfile);
     79&run_make_with_options($makefile,'-j1 foo.c',&get_logfile);
    7880$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    7981        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
  • trunk/src/kmk/tests/scripts/targets/SECONDARY

    r969 r1993  
    122122unlink('version2');
    123123
     124# TEST #9 -- Savannah bug #15919
     125# The original fix for this bug caused a new bug, shown here.
     126# kmk: suspect the -j1 actually hides a bug, 'cp 2.a 2.b' is executed twice.
     127
     128touch(qw(1.a 2.a));
     129
     130run_make_test('
     131%.c : %.b ; cp $< $@
     132%.b : %.a ; cp $< $@
     133all : 1.c 2.c', '-rR -j',
     134'cp 1.a 1.b
     135cp 2.a 2.b
     136cp 1.b 1.c
     137cp 2.b 2.c
     138rm 1.b 2.b');
     139
     140unlink(qw(1.a 2.a 1.c 2.c));
     141
     142# TEST #10 -- Savannah bug #15919
     143touch('test.0');
     144run_make_test('
     145.SECONDARY : test.1 test.2 test.3
     146
     147test : test.4
     148
     149%.4 : %.int %.3 ; touch $@
     150
     151%.int : %.3 %.2 ; touch $@
     152
     153%.3 : | %.2 ; touch $@
     154
     155%.2 : %.1 ; touch $@
     156
     157%.1 : %.0 ; touch $@', '-rR -j 2',
     158'touch test.1
     159touch test.2
     160touch test.3
     161touch test.int
     162touch test.4
     163rm test.int');
     164
     165# After a touch of test.0 it should give the same output, except we don't need
     166# to rebuild test.3 (order-only)
     167sleep(1);
     168touch('test.0');
     169run_make_test(undef, '-rR -j 2',
     170'touch test.1
     171touch test.2
     172touch test.int
     173touch test.4
     174rm test.int');
     175
     176# With both test.0 and test.3 updated it should still build everything except
     177# test.3
     178sleep(1);
     179touch('test.0', 'test.3');
     180run_make_test(undef, '-rR -j 2',
     181'touch test.1
     182touch test.2
     183touch test.int
     184touch test.4
     185rm test.int');
     186
     187unlink(qw(test.0 test.1 test.2 test.3 test.4));
     188
    124189# This tells the test driver that the perl test script executed properly.
    1251901;
Note: See TracChangeset for help on using the changeset viewer.