📄 abspath
字号:
# -*-perl-*-#$id$$description = "Test the abspath functions.";$details = "";run_make_test('ifneq ($(realpath $(abspath .)),$(CURDIR)) $(warning .: abs="$(abspath .)" real="$(realpath $(abspath .))" curdir="$(CURDIR)")endififneq ($(realpath $(abspath ./)),$(CURDIR)) $(warning ./: abs="$(abspath ./)" real="$(realpath $(abspath ./))" curdir="$(CURDIR)")endififneq ($(realpath $(abspath .///)),$(CURDIR)) $(warning .///: abs="$(abspath .///)" real="$(realpath $(abspath .///))" curdir="$(CURDIR)")endififneq ($(abspath /),/) $(warning /: abspath="$(abspath /)")endififneq ($(abspath ///),/) $(warning ///: abspath="$(abspath ///)")endififneq ($(abspath /.),/) $(warning /.: abspath="$(abspath /.)")endififneq ($(abspath ///.),/) $(warning ///.: abspath="$(abspath ///.)")endififneq ($(abspath /./),/) $(warning /./: abspath="$(abspath /./)")endififneq ($(abspath /.///),/) $(warning /.///: abspath="$(abspath /.///)")endififneq ($(abspath /..),/) $(warning /..: abspath="$(abspath /..)")endififneq ($(abspath ///..),/) $(warning ///..: abspath="$(abspath ///..)")endififneq ($(abspath /../),/) $(warning /../: abspath="$(abspath /../)")endififneq ($(abspath /..///),/) $(warning /..///: abspath="$(abspath /..///)")endififneq ($(abspath /foo/bar/..),/foo) $(warning /foo/bar/..: abspath="$(abspath /foo/bar/..)")endififneq ($(abspath /foo/bar/../../../baz),/baz) $(warning /foo/bar/../../../baz: abspath="$(abspath /foo/bar/../../../baz)")endififneq ($(abspath /foo/bar/../ /..),/foo /) $(warning /foo/bar/../ /..: abspath="$(abspath /foo/bar/../ /..)")endif.PHONY: allall: ; @:','','');# This tells the test driver that the perl test script executed properly.1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -