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 |
|
---|
6 | run_make_test('
|
---|
7 | ifneq ($(realpath $(abspath .)),$(CURDIR))
|
---|
8 | $(error )
|
---|
9 | endif
|
---|
10 |
|
---|
11 | ifneq ($(realpath $(abspath ./)),$(CURDIR))
|
---|
12 | $(error )
|
---|
13 | endif
|
---|
14 |
|
---|
15 | ifneq ($(realpath $(abspath .///)),$(CURDIR))
|
---|
16 | $(error )
|
---|
17 | endif
|
---|
18 |
|
---|
19 | ifneq ($(abspath /),/)
|
---|
20 | $(error )
|
---|
21 | endif
|
---|
22 |
|
---|
23 | ifneq ($(abspath ///),/)
|
---|
24 | $(error )
|
---|
25 | endif
|
---|
26 |
|
---|
27 | ifneq ($(abspath /.),/)
|
---|
28 | $(error )
|
---|
29 | endif
|
---|
30 |
|
---|
31 | ifneq ($(abspath ///.),/)
|
---|
32 | $(error )
|
---|
33 | endif
|
---|
34 |
|
---|
35 | ifneq ($(abspath /./),/)
|
---|
36 | $(error )
|
---|
37 | endif
|
---|
38 |
|
---|
39 | ifneq ($(abspath /.///),/)
|
---|
40 | $(error )
|
---|
41 | endif
|
---|
42 |
|
---|
43 | ifneq ($(abspath /..),/)
|
---|
44 | $(error )
|
---|
45 | endif
|
---|
46 |
|
---|
47 | ifneq ($(abspath ///..),/)
|
---|
48 | $(error )
|
---|
49 | endif
|
---|
50 |
|
---|
51 | ifneq ($(abspath /../),/)
|
---|
52 | $(error )
|
---|
53 | endif
|
---|
54 |
|
---|
55 | ifneq ($(abspath /..///),/)
|
---|
56 | $(error )
|
---|
57 | endif
|
---|
58 |
|
---|
59 |
|
---|
60 | ifneq ($(abspath /foo/bar/..),/foo)
|
---|
61 | $(error )
|
---|
62 | endif
|
---|
63 |
|
---|
64 | ifneq ($(abspath /foo/bar/../../../baz),/baz)
|
---|
65 | $(error )
|
---|
66 | endif
|
---|
67 |
|
---|
68 | ifneq ($(abspath /foo/bar/../ /..),/foo /)
|
---|
69 | $(error )
|
---|
70 | endif
|
---|
71 |
|
---|
72 |
|
---|
73 | .PHONY: all
|
---|
74 | all: ; @:
|
---|
75 | ',
|
---|
76 | '',
|
---|
77 | '');
|
---|
78 |
|
---|
79 |
|
---|
80 | # This tells the test driver that the perl test script executed properly.
|
---|
81 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.