make-dfsg/tests/scripts/variables/CURDIR
Manoj Srivastava dd2321f4b2 Initial upstream version
Initial upstream version


git-archimport-id: srivasta@debian.org--2003-primary/make--upstream--3.0--base-0
2004-02-10 17:14:09 +00:00

20 lines
447 B
Perl

# -*-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;