diff options
author | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
commit | 9769d39d792c1e912234e23e663ba8bd21a6386e (patch) | |
tree | 76bf5a6a6c756cf78c73a847b2ff3ec97f048ee7 /make/make-3.81/tests/scripts/options/dash-W | |
parent | abb6804a2c95065cbc228c3726781d44ed04e6cd (diff) | |
download | base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.gz base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.bz2 base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.xz base-9769d39d792c1e912234e23e663ba8bd21a6386e.zip |
Recette de make retir?e.
Diffstat (limited to 'make/make-3.81/tests/scripts/options/dash-W')
-rw-r--r-- | make/make-3.81/tests/scripts/options/dash-W | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/make/make-3.81/tests/scripts/options/dash-W b/make/make-3.81/tests/scripts/options/dash-W deleted file mode 100644 index d3fde87..0000000 --- a/make/make-3.81/tests/scripts/options/dash-W +++ /dev/null @@ -1,88 +0,0 @@ -# -*-perl-*- - -$description = "Test make -W (what if) option.\n"; - -# Basic build - -run_make_test(' -a.x: b.x -a.x b.x: ; echo >> $@ -', - '', "echo >> b.x\necho >> a.x"); - -# Run it again: nothing should happen - -run_make_test(undef, '', "#MAKE#: `a.x' is up to date."); - -# Now run it with -W b.x: should rebuild a.x - -run_make_test(undef, '-W b.x', 'echo >> a.x'); - -# Put the timestamp for a.x into the future; it should still be remade. - -utouch(1000, 'a.x'); -run_make_test(undef, '', "#MAKE#: `a.x' is up to date."); -run_make_test(undef, '-W b.x', 'echo >> a.x'); - -# Clean up - -rmfiles('a.x', 'b.x'); - -# Test -W with the re-exec feature: we don't want to re-exec forever -# Savannah bug # 7566 - -# First set it up with a normal build - -run_make_test(' -all: baz.x ; @: -include foo.x -foo.x: bar.x - @echo "\$$(info restarts=\$$(MAKE_RESTARTS))" > $@ - @echo "touch $@" -bar.x: ; echo >> $@ -baz.x: bar.x ; @echo "touch $@" -', - '', '#MAKEFILE#:3: foo.x: No such file or directory -echo >> bar.x -touch foo.x -restarts=1 -touch baz.x'); - -# Now run with -W bar.x - -# Tweak foo.x's timestamp so the update will change it. -&utouch(1000, 'foo.x'); - -run_make_test(undef, '-W bar.x', "restarts=\ntouch foo.x\nrestarts=1\ntouch baz.x"); - -rmfiles('foo.x', 'bar.x'); - -# Test -W on vpath-found files: it should take effect. -# Savannah bug # 15341 - -mkdir('x-dir', 0777); -utouch(-20, 'x-dir/x'); -touch('y'); - -run_make_test(' -y: x ; @echo cp $< $@ -', - '-W x-dir/x VPATH=x-dir', - 'cp x-dir/x y'); - -# Make sure ./ stripping doesn't interfere with the match. - -run_make_test(' -y: x ; @echo cp $< $@ -', - '-W ./x-dir/x VPATH=x-dir', - 'cp x-dir/x y'); - -run_make_test(undef, - '-W x-dir/x VPATH=./x-dir', - 'cp ./x-dir/x y'); - -unlink(qw(y x-dir/x)); -rmdir('x-dir'); - -1; |