VirtualBox

Ignore:
Timestamp:
Jun 19, 2012 10:44:52 PM (12 years ago)
Author:
bird
Message:

gnumake/current -> 3.82-cvs.

Location:
vendor/gnumake/current
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current

    • Property svn:ignore deleted
  • vendor/gnumake/current/tests

    • Property svn:ignore deleted
  • vendor/gnumake/current/tests/scripts/features/patternrules

    • Property svn:eol-style changed from native to LF
    • Property svn:keywords deleted
    r900 r2596  
    1616#
    1717
    18 run_make_test('
     18run_make_test(q!
    1919.PHONY: all
    2020
    2121all: case.1 case.2 case.3
    22 a: void
     22
     23# We can't have this, due to "Implicit Rule Search Algorithm" step 5c
     24#xxx: void
    2325
    2426# 1 - existing file
     
    4244
    43453.implicit-phony:
    44 ',
    45 '',
    46 '');
     46!, '', '');
    4747
    4848# TEST #1: make sure files that are built via implicit rules are marked
     
    146146unlink('foo.in', 'foo.h', 'foo.c', 'foo.o');
    147147
     148# TEST #5: make sure both prefix and suffix patterns work with multiple
     149#          target patterns (Savannah bug #26593).
     150#
     151run_make_test('
     152all: foo.s1 foo.s2 p1.foo p2.foo
     153
     154p1.% p2.%: %.orig
     155        @echo $@
     156%.s1 %.s2: %.orig
     157        @echo $@
     158
     159.PHONY: foo.orig
     160',
     161              '', "foo.s1\np1.foo\n");
     162
     163# TEST 6: Make sure that non-target files are still eligible to be created
     164# as part of implicit rule chaining.  Savannah bug #17752.
     165
     166run_make_test(q!
     167BIN = xyz
     168COPY = $(BIN).cp
     169SRC = $(BIN).c
     170allbroken: $(COPY) $(BIN) ; @echo ok
     171$(SRC): ; @echo 'main(){}' > $@
     172%.cp: % ; @cp $< $@
     173% : %.c ; @cp $< $@
     174clean: ; @rm -rf $(SRC) $(COPY) $(BIN)
     175!,
     176              '', "ok\n");
     177
     178unlink(qw(xyz xyz.cp xyz.c));
     179
     180# TEST 7: Make sure that all prereqs of all "also_make" targets get created
     181# before any of the things that depend on any of them.  Savannah bug #19108.
     182
     183run_make_test(q!
     184final: x ; @echo $@
     185x: x.t1 x.t2 ; @echo $@
     186x.t2: dep
     187dep: ; @echo $@
     188%.t1 %.t2: ; @echo $*.t1 ; echo $*.t2
     189!,
     190              '', "dep\nx.t1\nx.t2\nx\nfinal\n");
     191
     192
     193# TEST 8: Verify we can remove pattern rules.  Savannah bug #18622.
     194
     195my @f = (qw(foo.w foo.ch));
     196touch(@f);
     197
     198run_make_test(q!
     199CWEAVE := :
     200
     201# Disable builtin rules
     202%.tex : %.w
     203%.tex : %.w %.ch
     204!,
     205              'foo.tex',
     206              "#MAKE#: *** No rule to make target `foo.tex'.  Stop.", 512);
     207
     208unlink(@f);
     209
     210# TEST #9: Test shortest stem selection in pattern rules.
     211
     212run_make_test('
     213%.x: ;@echo one
     214%-mt.x: ;@echo two
     215
     216all: foo.x foo-mt.x
     217',
     218'',
     219"one\ntwo");
     220
     2211;
     222
    148223# This tells the test driver that the perl test script executed properly.
    1492241;
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