diff options
author | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
commit | 9769d39d792c1e912234e23e663ba8bd21a6386e (patch) | |
tree | 76bf5a6a6c756cf78c73a847b2ff3ec97f048ee7 /make/make-3.81/tests/scripts/functions/andor | |
parent | abb6804a2c95065cbc228c3726781d44ed04e6cd (diff) | |
download | base-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/andor')
-rw-r--r-- | make/make-3.81/tests/scripts/functions/andor | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/make/make-3.81/tests/scripts/functions/andor b/make/make-3.81/tests/scripts/functions/andor deleted file mode 100644 index 62e0c2e..0000000 --- a/make/make-3.81/tests/scripts/functions/andor +++ /dev/null @@ -1,50 +0,0 @@ -# -*-perl-*- -$description = "Test the and & or functions.\n"; - -$details = "Try various uses of and & or to ensure they all give the correct -results.\n"; - -# TEST #0 -# For $(and ...), it will either be empty or the last value -run_make_test(' -NEQ = $(subst $1,,$2) -f = -t = true - -all: - @echo 1 $(and ,$t) - @echo 2 $(and $t) - @echo 3 $(and $t,) - @echo 4 $(and z,true,$f,false) - @echo 5 $(and $t,$f,$(info bad short-circuit)) - @echo 6 $(and $(call NEQ,a,b),true) - @echo 7 $(and $(call NEQ,a,a),true) - @echo 8 $(and z,true,fal,se) hi - @echo 9 $(and ,true,fal,se)there - @echo 10 $(and $(e) ,$t)', - '', - "1\n2 true\n3\n4\n5\n6 true\n7\n8 se hi\n9 there\n10\n"); - -# TEST #1 -# For $(or ...), it will either be empty or the first true value -run_make_test(' -NEQ = $(subst $1,,$2) -f = -t = true - -all: - @echo 1 $(or , ) - @echo 2 $(or $t) - @echo 3 $(or ,$t) - @echo 4 $(or z,true,$f,false) - @echo 5 $(or $t,$(info bad short-circuit)) - @echo 6 $(or $(info short-circuit),$t) - @echo 7 $(or $(call NEQ,a,b),true) - @echo 8 $(or $(call NEQ,a,a),true) - @echo 9 $(or z,true,fal,se) hi - @echo 10 $(or ,true,fal,se)there - @echo 11 $(or $(e) ,$f)', - '', - "short-circuit\n1\n2 true\n3 true\n4 z\n5 true\n6 true\n7 b\n8 true\n9 z hi\n10 truethere\n11\n"); - -1; |