VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/functions/abspath@ 486

最後變更 在這個檔案從486是 283,由 (無) 提交於 20 年 前

This commit was manufactured by cvs2svn to create branch 'GNU'.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
1# -*-perl-*-
2$description = "Test the abspath functions.";
3
4$details = "";
5
6run_make_test('
7ifneq ($(realpath $(abspath .)),$(CURDIR))
8 $(error )
9endif
10
11ifneq ($(realpath $(abspath ./)),$(CURDIR))
12 $(error )
13endif
14
15ifneq ($(realpath $(abspath .///)),$(CURDIR))
16 $(error )
17endif
18
19ifneq ($(abspath /),/)
20 $(error )
21endif
22
23ifneq ($(abspath ///),/)
24 $(error )
25endif
26
27ifneq ($(abspath /.),/)
28 $(error )
29endif
30
31ifneq ($(abspath ///.),/)
32 $(error )
33endif
34
35ifneq ($(abspath /./),/)
36 $(error )
37endif
38
39ifneq ($(abspath /.///),/)
40 $(error )
41endif
42
43ifneq ($(abspath /..),/)
44 $(error )
45endif
46
47ifneq ($(abspath ///..),/)
48 $(error )
49endif
50
51ifneq ($(abspath /../),/)
52 $(error )
53endif
54
55ifneq ($(abspath /..///),/)
56 $(error )
57endif
58
59
60ifneq ($(abspath /foo/bar/..),/foo)
61 $(error )
62endif
63
64ifneq ($(abspath /foo/bar/../../../baz),/baz)
65 $(error )
66endif
67
68ifneq ($(abspath /foo/bar/../ /..),/foo /)
69 $(error )
70endif
71
72
73.PHONY: all
74all: ; @:
75',
76'',
77'');
78
79
80# This tells the test driver that the perl test script executed properly.
811;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette