1#                                                                    -*-perl-*-
2
3$description = "This tests the CURDIR varaible.";
4
5$details = "Echo CURDIR both with and without -C.  Also ensure overrides work.";
6
7open(MAKEFILE,"> $makefile");
8print MAKEFILE "all: ; \@echo \$(CURDIR)\n";
9close(MAKEFILE);
10
11
12# TEST #1
13# -------
14
15&run_make_with_options($makefile,"",&get_logfile);
16$answer = "$pwd\n";
17&compare_output($answer,&get_logfile(1));
18
19
201;
21