make/tests/scripts/functions/realpath
2004-11-30 19:51:24 +00:00

72 lines
943 B
Perl

# -*-perl-*-
$description = "Test the realpath functions.";
$details = "";
run_make_test('
ifneq ($(realpath .),$(CURDIR))
$(error )
endif
ifneq ($(realpath ./),$(CURDIR))
$(error )
endif
ifneq ($(realpath .///),$(CURDIR))
$(error )
endif
ifneq ($(realpath /),/)
$(error )
endif
ifneq ($(realpath ///),/)
$(error )
endif
ifneq ($(realpath /.),/)
$(error )
endif
ifneq ($(realpath ///.),/)
$(error )
endif
ifneq ($(realpath /./),/)
$(error )
endif
ifneq ($(realpath /.///),/)
$(error )
endif
ifneq ($(realpath /..),/)
$(error )
endif
ifneq ($(realpath ///..),/)
$(error )
endif
ifneq ($(realpath /../),/)
$(error )
endif
ifneq ($(realpath /..///),/)
$(error )
endif
ifneq ($(realpath . /..),$(CURDIR) /)
$(error )
endif
.PHONY: all
all: ; @:
',
'',
'');
# This tells the test driver that the perl test script executed properly.
1;