summaryrefslogtreecommitdiffstats
path: root/make/make-3.81/tests/scripts/features/vpathplus
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-12 04:13:19 +0100
committerLukc <lukc@upyum.com>2010-12-12 04:13:19 +0100
commit9769d39d792c1e912234e23e663ba8bd21a6386e (patch)
tree76bf5a6a6c756cf78c73a847b2ff3ec97f048ee7 /make/make-3.81/tests/scripts/features/vpathplus
parentabb6804a2c95065cbc228c3726781d44ed04e6cd (diff)
downloadbase-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/features/vpathplus')
-rw-r--r--make/make-3.81/tests/scripts/features/vpathplus128
1 files changed, 0 insertions, 128 deletions
diff --git a/make/make-3.81/tests/scripts/features/vpathplus b/make/make-3.81/tests/scripts/features/vpathplus
deleted file mode 100644
index a37fbed..0000000
--- a/make/make-3.81/tests/scripts/features/vpathplus
+++ /dev/null
@@ -1,128 +0,0 @@
-# -*-perl-*-
-$description = "Tests the new VPATH+ functionality added in 3.76.";
-
-$details = "";
-
-$VP = "$workdir$pathsep";
-
-open(MAKEFILE,"> $makefile");
-
-# The Contents of the MAKEFILE ...
-
-print MAKEFILE "VPATH = $VP\n";
-
-print MAKEFILE <<'EOMAKE';
-
-SHELL = /bin/sh
-
-.SUFFIXES: .a .b .c .d
-.PHONY: general rename notarget intermediate
-
-%.a:
-%.b:
-%.c:
-%.d:
-
-%.a : %.b
- cat $^ > $@
-%.b : %.c
- cat $^ > $@ 2>/dev/null || exit 1
-%.c :: %.d
- cat $^ > $@
-
-# General testing info:
-
-general: foo.b
-foo.b: foo.c bar.c
-
-# Rename testing info:
-
-rename: $(VPATH)/foo.c foo.d
-
-# Target not made testing info:
-
-notarget: notarget.b
-notarget.c: notarget.d
- -@echo "not creating $@ from $^"
-
-# Intermediate files:
-
-intermediate: inter.a
-
-EOMAKE
-
-close(MAKEFILE);
-
-@touchedfiles = ();
-
-$off = -500;
-
-sub touchfiles {
- foreach (@_) {
- &utouch($off, $_);
- $off += 10;
- push(@touchedfiles, $_);
- }
-}
-
-# Run the general-case test
-
-&touchfiles("$VP/foo.d", "$VP/bar.d", "$VP/foo.c", "$VP/bar.c", "foo.b", "bar.d");
-
-&run_make_with_options($makefile,"general",&get_logfile);
-
-push(@touchedfiles, "bar.c");
-
-$answer = "cat bar.d > bar.c
-cat ${VP}foo.c bar.c > foo.b 2>/dev/null || exit 1
-";
-&compare_output($answer,&get_logfile(1));
-
-# Test rules that don't make the target correctly
-
-&touchfiles("$VP/notarget.c", "notarget.b", "notarget.d");
-
-&run_make_with_options($makefile,"notarget",&get_logfile,512);
-
-$answer = "not creating notarget.c from notarget.d
-cat notarget.c > notarget.b 2>/dev/null || exit 1
-$make_name: *** [notarget.b] Error 1
-";
-
-&compare_output($answer,&get_logfile(1));
-
-# Test intermediate file handling (part 1)
-
-&touchfiles("$VP/inter.d");
-
-&run_make_with_options($makefile,"intermediate",&get_logfile);
-
-push(@touchedfiles, "inter.a", "inter.b");
-
-$answer = "cat ${VP}inter.d > inter.c
-cat inter.c > inter.b 2>/dev/null || exit 1
-cat inter.b > inter.a
-rm inter.b inter.c
-";
-&compare_output($answer,&get_logfile(1));
-
-# Test intermediate file handling (part 2)
-
-&utouch(-20, "inter.a");
-&utouch(-10, "$VP/inter.b");
-&touch("$VP/inter.d");
-
-push(@touchedfiles, "$VP/inter.b", "$VP/inter.d");
-
-&run_make_with_options($makefile,"intermediate",&get_logfile);
-
-$answer = "cat ${VP}inter.d > inter.c
-cat inter.c > inter.b 2>/dev/null || exit 1
-cat inter.b > inter.a
-rm inter.c
-";
-&compare_output($answer,&get_logfile(1));
-
-unlink @touchedfiles unless $keep;
-
-1;