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/variables/CURDIR | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 make/make-3.81/tests/scripts/variables/CURDIR (limited to 'make/make-3.81/tests/scripts/variables/CURDIR') diff --git a/make/make-3.81/tests/scripts/variables/CURDIR b/make/make-3.81/tests/scripts/variables/CURDIR new file mode 100644 index 0000000..ee7cacb --- /dev/null +++ b/make/make-3.81/tests/scripts/variables/CURDIR @@ -0,0 +1,20 @@ +# -*-perl-*- + +$description = "This tests the CURDIR varaible."; + +$details = "Echo CURDIR both with and without -C. Also ensure overrides work."; + +open(MAKEFILE,"> $makefile"); +print MAKEFILE "all: ; \@echo \$(CURDIR)\n"; +close(MAKEFILE); + + +# TEST #1 +# ------- + +&run_make_with_options($makefile,"",&get_logfile); +$answer = "$pwd\n"; +&compare_output($answer,&get_logfile(1)); + + +1; -- cgit v1.2.3-70-g09d2