VirtualBox

Ignore:
Timestamp:
Oct 28, 2008 11:02:45 PM (16 years ago)
Author:
bird
Message:

Load gnumake-2008-10-28-CVS into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/tests/scripts/targets/SECONDARY

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette