From 9769d39d792c1e912234e23e663ba8bd21a6386e Mon Sep 17 00:00:00 2001 From: Lukc Date: Sun, 12 Dec 2010 04:13:19 +0100 Subject: Recette de make retir?e. --- make/make-3.81/tests/scripts/misc/close_stdout | 9 - make/make-3.81/tests/scripts/misc/general1 | 51 ---- make/make-3.81/tests/scripts/misc/general2 | 50 ---- make/make-3.81/tests/scripts/misc/general3 | 313 ------------------------- make/make-3.81/tests/scripts/misc/general4 | 83 ------- 5 files changed, 506 deletions(-) delete mode 100644 make/make-3.81/tests/scripts/misc/close_stdout delete mode 100644 make/make-3.81/tests/scripts/misc/general1 delete mode 100644 make/make-3.81/tests/scripts/misc/general2 delete mode 100644 make/make-3.81/tests/scripts/misc/general3 delete mode 100644 make/make-3.81/tests/scripts/misc/general4 (limited to 'make/make-3.81/tests/scripts/misc') diff --git a/make/make-3.81/tests/scripts/misc/close_stdout b/make/make-3.81/tests/scripts/misc/close_stdout deleted file mode 100644 index 688942e..0000000 --- a/make/make-3.81/tests/scripts/misc/close_stdout +++ /dev/null @@ -1,9 +0,0 @@ -# -*-perl-*- - -$description = "Make sure make exits with an error if stdout is full."; - -if (-e '/dev/full') { - run_make_test('', '-v > /dev/full', '#MAKE#: write error', 256); -} - -1; diff --git a/make/make-3.81/tests/scripts/misc/general1 b/make/make-3.81/tests/scripts/misc/general1 deleted file mode 100644 index 352fc6a..0000000 --- a/make/make-3.81/tests/scripts/misc/general1 +++ /dev/null @@ -1,51 +0,0 @@ -# -*-perl-*- - -$description = "The following test creates a makefile to test the -simple functionality of make. It mimics the -rebuilding of a product with dependencies. -It also tests the simple definition of VPATH."; - -open(MAKEFILE,"> $makefile"); - -print MAKEFILE < $makefile"); - -# The contents of the Makefile ... - -print MAKEFILE < $makefile2"); -print MAKEFILE "all:;\@echo FOO = \$(FOO)\nFOO = foo"; -close(MAKEFILE); - -&run_make_with_options($makefile2,"",&get_logfile); -$answer = "FOO = foo\n"; -&compare_output($answer,&get_logfile(1)); - -# TEST 3 - -# Check semicolons in variable references - -run_make_test(' -$(if true,$(info true; true)) -all: ; @: -', - '', 'true; true'); - -# TEST 4 - -# Check that backslashes in command scripts are handled according to POSIX. -# Checks Savannah bug # 1332. - -# Test the fastpath / no quotes -run_make_test(' -all: - @echo foo\ -bar - @echo foo\ - bar - @echo foo\ - bar - @echo foo\ - bar - @echo foo \ -bar - @echo foo \ - bar - @echo foo \ - bar - @echo foo \ - bar -', - '', 'foobar -foobar -foo bar -foo bar -foo bar -foo bar -foo bar -foo bar'); - -# Test the fastpath / single quotes -run_make_test(" -all: - \@echo 'foo\\ -bar' - \@echo 'foo\\ - bar' - \@echo 'foo\\ - bar' - \@echo 'foo\\ - bar' - \@echo 'foo \\ -bar' - \@echo 'foo \\ - bar' - \@echo 'foo \\ - bar' - \@echo 'foo \\ - bar' -", - '', 'foo\ -bar -foo\ -bar -foo\ - bar -foo\ - bar -foo \ -bar -foo \ -bar -foo \ - bar -foo \ - bar'); - -# Test the fastpath / double quotes -run_make_test(' -all: - @echo "foo\ -bar" - @echo "foo\ - bar" - @echo "foo\ - bar" - @echo "foo\ - bar" - @echo "foo \ -bar" - @echo "foo \ - bar" - @echo "foo \ - bar" - @echo "foo \ - bar" -', - '', 'foobar -foobar -foo bar -foo bar -foo bar -foo bar -foo bar -foo bar'); - -# Test the slow path / no quotes -run_make_test(' -all: - @echo hi; echo foo\ -bar - @echo hi; echo foo\ - bar - @echo hi; echo foo\ - bar - @echo hi; echo foo\ - bar - @echo hi; echo foo \ -bar - @echo hi; echo foo \ - bar - @echo hi; echo foo \ - bar - @echo hi; echo foo \ - bar -', - '', 'hi -foobar -hi -foobar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar'); - -# Test the slow path / no quotes. This time we put the slow path -# determination _after_ the backslash-newline handling. -run_make_test(' -all: - @echo foo\ -bar; echo hi - @echo foo\ - bar; echo hi - @echo foo\ - bar; echo hi - @echo foo\ - bar; echo hi - @echo foo \ -bar; echo hi - @echo foo \ - bar; echo hi - @echo foo \ - bar; echo hi - @echo foo \ - bar; echo hi -', - '', 'foobar -hi -foobar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi'); - -# Test the slow path / single quotes -run_make_test(" -all: - \@echo hi; echo 'foo\\ -bar' - \@echo hi; echo 'foo\\ - bar' - \@echo hi; echo 'foo\\ - bar' - \@echo hi; echo 'foo\\ - bar' - \@echo hi; echo 'foo \\ -bar' - \@echo hi; echo 'foo \\ - bar' - \@echo hi; echo 'foo \\ - bar' - \@echo hi; echo 'foo \\ - bar' -", - '', 'hi -foo\ -bar -hi -foo\ -bar -hi -foo\ - bar -hi -foo\ - bar -hi -foo \ -bar -hi -foo \ -bar -hi -foo \ - bar -hi -foo \ - bar'); - -# Test the slow path / double quotes -run_make_test(' -all: - @echo hi; echo "foo\ -bar" - @echo hi; echo "foo\ - bar" - @echo hi; echo "foo\ - bar" - @echo hi; echo "foo\ - bar" - @echo hi; echo "foo \ -bar" - @echo hi; echo "foo \ - bar" - @echo hi; echo "foo \ - bar" - @echo hi; echo "foo \ - bar" -', - '', 'hi -foobar -hi -foobar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar -hi -foo bar'); - -1; diff --git a/make/make-3.81/tests/scripts/misc/general4 b/make/make-3.81/tests/scripts/misc/general4 deleted file mode 100644 index ccccf88..0000000 --- a/make/make-3.81/tests/scripts/misc/general4 +++ /dev/null @@ -1,83 +0,0 @@ -# -*-perl-*- - -$description = "\ -This tests random features of make's algorithms, often somewhat obscure, -which have either broken at some point in the past or seem likely to -break."; - -run_make_test(' -# Make sure that subdirectories built as prerequisites are actually handled -# properly. - -all: dir/subdir/file.a - -dir/subdir: ; @echo mkdir -p dir/subdir - -dir/subdir/file.b: dir/subdir ; @echo touch dir/subdir/file.b - -dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@', - '', "mkdir -p dir/subdir\ntouch dir/subdir/file.b\ncp dir/subdir/file.b dir/subdir/file.a\n"); - -# Test implicit rules - -&touch('foo.c'); -run_make_test('foo: foo.o', - 'CC="@echo cc" OUTPUT_OPTION=', - 'cc -c foo.c -cc foo.o -o foo'); -unlink('foo.c'); - - -# Test other implicit rule searching - -&touch('bar'); -run_make_test(' -test.foo: -%.foo : baz ; @echo done $< -%.foo : bar ; @echo done $< -fox: baz -', - '', - 'done bar'); -unlink('bar'); - - -# Test implicit rules with '$' in the name (see se_implicit) - -run_make_test(q! -%.foo : baz$$bar ; @echo 'done $<' -%.foo : bar$$baz ; @echo 'done $<' -test.foo: -baz$$bar bar$$baz: ; @echo '$@' -!, - '', - "baz\$bar\ndone baz\$bar"); - - -# Test implicit rules with '$' in the name (see se_implicit) -# Use the '$' in the pattern. - -run_make_test(q! -%.foo : %$$bar ; @echo 'done $<' -test.foo: -test$$bar: ; @echo '$@' -!, - '', - "test\$bar\ndone test\$bar"); - -# Make sure that subdirectories built as prerequisites are actually handled -# properly... this time with '$' - -run_make_test(q! - -all: dir/subdir/file.$$a - -dir/subdir: ; @echo mkdir -p '$@' - -dir/subdir/file.$$b: dir/subdir ; @echo touch '$@' - -dir/subdir/%.$$a: dir/subdir/%.$$b ; @echo 'cp $< $@' -!, - '', "mkdir -p dir/subdir\ntouch dir/subdir/file.\$b\ncp dir/subdir/file.\$b dir/subdir/file.\$a\n"); - -1; -- cgit v1.2.3-70-g09d2