xref: /netbsd-src/external/gpl2/gmake/dist/tests/scripts/variables/CURDIR (revision 69606e3f5c9388e52aed8c120ad63c049ca45d8f)
1*69606e3fSchristos#                                                                    -*-perl-*-
2*69606e3fSchristos
3*69606e3fSchristos$description = "This tests the CURDIR varaible.";
4*69606e3fSchristos
5*69606e3fSchristos$details = "Echo CURDIR both with and without -C.  Also ensure overrides work.";
6*69606e3fSchristos
7*69606e3fSchristosopen(MAKEFILE,"> $makefile");
8*69606e3fSchristosprint MAKEFILE "all: ; \@echo \$(CURDIR)\n";
9*69606e3fSchristosclose(MAKEFILE);
10*69606e3fSchristos
11*69606e3fSchristos
12*69606e3fSchristos# TEST #1
13*69606e3fSchristos# -------
14*69606e3fSchristos
15*69606e3fSchristos&run_make_with_options($makefile,"",&get_logfile);
16*69606e3fSchristos$answer = "$pwd\n";
17*69606e3fSchristos&compare_output($answer,&get_logfile(1));
18*69606e3fSchristos
19*69606e3fSchristos
20*69606e3fSchristos1;
21