summaryrefslogtreecommitdiff
path: root/tests/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/functions')
-rw-r--r--tests/scripts/functions/wildcard24
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/scripts/functions/wildcard b/tests/scripts/functions/wildcard
index d21747f..0f79acc 100644
--- a/tests/scripts/functions/wildcard
+++ b/tests/scripts/functions/wildcard
@@ -1,16 +1,17 @@
# -*-perl-*-
-$description = "The following test creates a makefile to test wildcard\n"
- ."expansions and the ability to put a command on the same\n"
- ."line as the target name separated by a semi-colon.";
-
-$details = "This test creates 4 files by the names of 1.example, \n"
- ."two.example and 3.example. We execute three tests. The first\n"
- ."executes the print1 target which tests the '*' wildcard by \n"
- ."echoing all filenames by the name of '*.example'. The second\n"
- ."test echo's all files which match '?.example' and \n"
- ."[a-z0-9].example. Lastly we clean up all of the files using\n"
- ."the '*' wildcard as in the first test";
+$description = "The following test creates a makefile to test wildcard
+expansions and the ability to put a command on the same
+line as the target name separated by a semi-colon.";
+
+$details = "\
+This test creates 4 files by the names of 1.example,
+two.example and 3.example. We execute three tests. The first
+executes the print1 target which tests the '*' wildcard by
+echoing all filenames by the name of '*.example'. The second
+test echo's all files which match '?.example' and
+[a-z0-9].example. Lastly we clean up all of the files using
+the '*' wildcard as in the first test";
if ($vos)
{
@@ -27,6 +28,7 @@ open(MAKEFILE,"> $makefile");
# The Contents of the MAKEFILE ...
print MAKEFILE <<EOM;
+.PHONY: print1 print2 clean
print1: ;\@echo \$(wildcard example.*)
print2:
\t\@echo \$(wildcard example.?)