Ignore:
Timestamp:
Sep 15, 2006, 7:09:38 AM (19 years ago)
Author:
bird
Message:

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

Location:
trunk/src/gmake/tests/scripts/options
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/tests/scripts/options/dash-B

    r285 r503  
    3232run_make_test(undef, '-B', 'cp bar.x foo');
    3333
    34 
    3534# Clean up
    3635
    3736rmfiles('bar.x', 'foo');
    3837
     38# Test -B with the re-exec feature: we don't want to re-exec forever
     39# Savannah bug # 7566
     40
     41run_make_test('
     42all: ; @:
     43$(info MAKE_RESTARTS=$(MAKE_RESTARTS))
     44include foo.x
     45foo.x: ; @touch $@
     46',
     47              '-B', 'MAKE_RESTARTS=
     48#MAKEFILE#:4: foo.x: No such file or directory
     49MAKE_RESTARTS=1');
     50
     51rmfiles('foo.x');
     52
     53# Test -B with the re-exec feature: we DO want -B in the "normal" part of the
     54# makefile.
     55
     56&touch('blah.x');
     57
     58run_make_test('
     59all: blah.x ; @echo $@
     60$(info MAKE_RESTARTS=$(MAKE_RESTARTS))
     61include foo.x
     62foo.x: ; @touch $@
     63blah.x: ; @echo $@
     64',
     65              '-B', 'MAKE_RESTARTS=
     66#MAKEFILE#:4: foo.x: No such file or directory
     67MAKE_RESTARTS=1
     68blah.x
     69all');
     70
     71rmfiles('foo.x', 'blah.x');
     72
    39731;
  • trunk/src/gmake/tests/scripts/options/dash-I

    r53 r503  
     1#                                                                    -*-perl-*-
     2
    13$description ="The following test creates a makefile to test the -I option.";
    24
  • trunk/src/gmake/tests/scripts/options/dash-e

    r53 r503  
    55$details = "";
    66
    7 $ENV{GOOGLE} = 'boggle';
     7$extraENV{GOOGLE} = 'boggle';
    88
    99open(MAKEFILE,"> $makefile");
  • trunk/src/gmake/tests/scripts/options/symlinks

    r282 r503  
    66
    77# Only run these tests if the system sypports symlinks
    8 if (eval { symlink("",""); 1 }) {
     8
     9# Apparently the Windows port of Perl reports that it does support symlinks
     10# (in that the symlink() function doesn't fail) but it really doesn't, so
     11# check for it explicitly.
     12
     13if ($port_type eq 'W32' || !( eval { symlink("",""); 1 })) {
     14  # This test is N/A
     15  -1;
     16} else {
    917
    1018  # Set up a symlink sym -> dep
     
    4351
    4452  rmfiles('targ', 'dep', 'sym', 'dep1');
     53
     54  # Check handling when symlinks point to non-existent files.  Without -L we
     55  # should get an error: with -L we should use the timestamp of the symlink.
     56
     57  symlink("../$dirname/dep", 'sym');
     58  run_make_test('targ: sym ; @echo make $@ from $<', '',
     59                "#MAKE#: *** No rule to make target `sym', needed by `targ'.  Stop.", 512);
     60
     61  run_make_test('targ: sym ; @echo make $@ from $<', '-L',
     62                'make targ from sym');
     63
     64
     65  rmfiles('targ', 'sym');
     66
     67  1;
    4568}
    46 
    47 1;
Note: See TracChangeset for help on using the changeset viewer.