summaryrefslogtreecommitdiffstats
path: root/make/make-3.81/tests/scripts/features/escape
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/escape
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/escape')
-rw-r--r--make/make-3.81/tests/scripts/features/escape58
1 files changed, 0 insertions, 58 deletions
diff --git a/make/make-3.81/tests/scripts/features/escape b/make/make-3.81/tests/scripts/features/escape
deleted file mode 100644
index 97a2994..0000000
--- a/make/make-3.81/tests/scripts/features/escape
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*-perl-*-
-$description = "Test various types of escaping in makefiles.";
-
-$details = "\
-Make sure that escaping of `:' works in target names.
-Make sure escaping of whitespace works in target names.
-Make sure that escaping of '#' works.";
-
-
-close(MAKEFILE);
-
-
-# TEST 1
-
-run_make_test('
-$(path)foo : ; @echo "touch ($@)"
-
-foo\ bar: ; @echo "touch ($@)"
-
-sharp: foo\#bar.ext
-foo\#bar.ext: ; @echo "foo#bar.ext = ($@)"',
- '',
- 'touch (foo)');
-
-# TEST 2: This one should fail, since the ":" is unquoted.
-
-run_make_test(undef,
- 'path=pre:',
- "#MAKEFILE#:2: *** target pattern contains no `%'. Stop.",
- 512);
-
-# TEST 3: This one should work, since we escape the ":".
-
-run_make_test(undef,
- "'path=pre\\:'",
- 'touch (pre:foo)');
-
-# TEST 4: This one should fail, since the escape char is escaped.
-
-run_make_test(undef,
- "'path=pre\\\\:'",
- "#MAKEFILE#:2: *** target pattern contains no `%'. Stop.",
- 512);
-
-# TEST 5: This one should work
-
-run_make_test(undef,
- "'foo bar'",
- 'touch (foo bar)');
-
-# TEST 6: Test escaped comments
-
-run_make_test(undef,
- 'sharp',
- 'foo#bar.ext = (foo#bar.ext)');
-
-# This tells the test driver that the perl test script executed properly.
-1;