mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-29 08:09:02 +00:00
3e26bde6db
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
20 lines
447 B
Perl
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;
|