Changeset 503 for trunk/src/gmake/tests/scripts/options
- Timestamp:
- Sep 15, 2006, 7:09:38 AM (19 years ago)
- 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 32 32 run_make_test(undef, '-B', 'cp bar.x foo'); 33 33 34 35 34 # Clean up 36 35 37 36 rmfiles('bar.x', 'foo'); 38 37 38 # Test -B with the re-exec feature: we don't want to re-exec forever 39 # Savannah bug # 7566 40 41 run_make_test(' 42 all: ; @: 43 $(info MAKE_RESTARTS=$(MAKE_RESTARTS)) 44 include foo.x 45 foo.x: ; @touch $@ 46 ', 47 '-B', 'MAKE_RESTARTS= 48 #MAKEFILE#:4: foo.x: No such file or directory 49 MAKE_RESTARTS=1'); 50 51 rmfiles('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 58 run_make_test(' 59 all: blah.x ; @echo $@ 60 $(info MAKE_RESTARTS=$(MAKE_RESTARTS)) 61 include foo.x 62 foo.x: ; @touch $@ 63 blah.x: ; @echo $@ 64 ', 65 '-B', 'MAKE_RESTARTS= 66 #MAKEFILE#:4: foo.x: No such file or directory 67 MAKE_RESTARTS=1 68 blah.x 69 all'); 70 71 rmfiles('foo.x', 'blah.x'); 72 39 73 1; -
trunk/src/gmake/tests/scripts/options/dash-I
r53 r503 1 # -*-perl-*- 2 1 3 $description ="The following test creates a makefile to test the -I option."; 2 4 -
trunk/src/gmake/tests/scripts/options/dash-e
r53 r503 5 5 $details = ""; 6 6 7 $ ENV{GOOGLE} = 'boggle';7 $extraENV{GOOGLE} = 'boggle'; 8 8 9 9 open(MAKEFILE,"> $makefile"); -
trunk/src/gmake/tests/scripts/options/symlinks
r282 r503 6 6 7 7 # 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 13 if ($port_type eq 'W32' || !( eval { symlink("",""); 1 })) { 14 # This test is N/A 15 -1; 16 } else { 9 17 10 18 # Set up a symlink sym -> dep … … 43 51 44 52 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; 45 68 } 46 47 1;
Note:
See TracChangeset
for help on using the changeset viewer.