From 6d908a38e05b9d4135c65d23114a5874215b5bb8 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sat, 11 Dec 2010 19:15:23 +0100 Subject: Engagement initial. --- make/make-3.81/tests/scripts/functions/wildcard | 94 +++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 make/make-3.81/tests/scripts/functions/wildcard (limited to 'make/make-3.81/tests/scripts/functions/wildcard') diff --git a/make/make-3.81/tests/scripts/functions/wildcard b/make/make-3.81/tests/scripts/functions/wildcard new file mode 100644 index 0000000..d61384e --- /dev/null +++ b/make/make-3.81/tests/scripts/functions/wildcard @@ -0,0 +1,94 @@ +# -*-perl-*- + +$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"; + +open(MAKEFILE,"> $makefile"); + +# The Contents of the MAKEFILE ... + +print MAKEFILE <