VirtualBox

source: kBuild/branches/GNU/src/gmake/tests/scripts/functions/abspath@ 283

Last change on this file since 283 was 283, checked in by (none), 20 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
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;
Note: See TracBrowser for help on using the repository browser.

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