mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-04 03:13:48 +00:00
81 lines
1.1 KiB
Perl
81 lines
1.1 KiB
Perl
# -*-perl-*-
|
|
$description = "Test the abspath functions.";
|
|
|
|
$details = "";
|
|
|
|
run_make_test('
|
|
ifneq ($(realpath $(abspath .)),$(CURDIR))
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(realpath $(abspath ./)),$(CURDIR))
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(realpath $(abspath .///)),$(CURDIR))
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath ///),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /.),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath ///.),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /./),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /.///),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /..),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath ///..),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /../),/)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /..///),/)
|
|
$(error )
|
|
endif
|
|
|
|
|
|
ifneq ($(abspath /foo/bar/..),/foo)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /foo/bar/../../../baz),/baz)
|
|
$(error )
|
|
endif
|
|
|
|
ifneq ($(abspath /foo/bar/../ /..),/foo /)
|
|
$(error )
|
|
endif
|
|
|
|
|
|
.PHONY: all
|
|
all: ; @:
|
|
',
|
|
'',
|
|
'');
|
|
|
|
|
|
# This tells the test driver that the perl test script executed properly.
|
|
1;
|