summaryrefslogtreecommitdiffstats
path: root/make/make-3.81/tests/scripts/functions/origin
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/functions/origin
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/functions/origin')
-rw-r--r--make/make-3.81/tests/scripts/functions/origin51
1 files changed, 0 insertions, 51 deletions
diff --git a/make/make-3.81/tests/scripts/functions/origin b/make/make-3.81/tests/scripts/functions/origin
deleted file mode 100644
index f7b7eb8..0000000
--- a/make/make-3.81/tests/scripts/functions/origin
+++ /dev/null
@@ -1,51 +0,0 @@
-# -*-perl-*-
-
-$description = "Test the origin function.";
-
-$details = "This is a test of the origin function in gnu make.
-This function will report on where a variable was
-defined per the following list:
-
-'undefined' never defined
-'default' default definition
-'environment' environment var without -e
-'environment override' environment var with -e
-'file' defined in makefile
-'command line' defined on the command line
-'override' defined by override in makefile
-'automatic' Automatic variable\n";
-
-# Set an environment variable
-$extraENV{MAKETEST} = 1;
-
-run_make_test('
-foo := bletch garf
-auto_var = undefined CC MAKETEST MAKE foo CFLAGS WHITE @
-av = $(foreach var, $(auto_var), $(origin $(var)) )
-override WHITE := BLACK
-all: auto
- @echo $(origin undefined)
- @echo $(origin CC)
- @echo $(origin MAKETEST)
- @echo $(origin MAKE)
- @echo $(origin foo)
- @echo $(origin CFLAGS)
- @echo $(origin WHITE)
- @echo $(origin @)
-auto :
- @echo $(av)',
- '-e WHITE=WHITE CFLAGS=',
- 'undefined default environment default file command line override automatic
-undefined
-default
-environment
-default
-file
-command line
-override
-automatic');
-
-# Reset an environment variable
-delete $extraENV{MAKETEST};
-
-1;