/[make]/make/tests/scripts/functions/abspath
ViewVC logotype

Diff of /make/tests/scripts/functions/abspath

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bosk, Tue Nov 30 19:51:24 2004 UTC revision 1.2 by psmith, Mon Aug 29 14:11:01 2005 UTC
# Line 5  $details = ""; Line 5  $details = "";
5    
6  run_make_test('  run_make_test('
7  ifneq ($(realpath $(abspath .)),$(CURDIR))  ifneq ($(realpath $(abspath .)),$(CURDIR))
8    $(error )    $(warning .: abs="$(abspath .)" real="$(realpath $(abspath .))" curdir="$(CURDIR)")
9  endif  endif
10    
11  ifneq ($(realpath $(abspath ./)),$(CURDIR))  ifneq ($(realpath $(abspath ./)),$(CURDIR))
12    $(error )    $(warning ./: abs="$(abspath ./)" real="$(realpath $(abspath ./))" curdir="$(CURDIR)")
13  endif  endif
14    
15  ifneq ($(realpath $(abspath .///)),$(CURDIR))  ifneq ($(realpath $(abspath .///)),$(CURDIR))
16    $(error )    $(warning .///: abs="$(abspath .///)" real="$(realpath $(abspath .///))" curdir="$(CURDIR)")
17  endif  endif
18    
19  ifneq ($(abspath /),/)  ifneq ($(abspath /),/)
20    $(error )    $(warning /: abspath="$(abspath /)")
21  endif  endif
22    
23  ifneq ($(abspath ///),/)  ifneq ($(abspath ///),/)
24    $(error )    $(warning ///: abspath="$(abspath ///)")
25  endif  endif
26    
27  ifneq ($(abspath /.),/)  ifneq ($(abspath /.),/)
28    $(error )    $(warning /.: abspath="$(abspath /.)")
29  endif  endif
30    
31  ifneq ($(abspath ///.),/)  ifneq ($(abspath ///.),/)
32    $(error )    $(warning ///.: abspath="$(abspath ///.)")
33  endif  endif
34    
35  ifneq ($(abspath /./),/)  ifneq ($(abspath /./),/)
36    $(error )    $(warning /./: abspath="$(abspath /./)")
37  endif  endif
38    
39  ifneq ($(abspath /.///),/)  ifneq ($(abspath /.///),/)
40    $(error )    $(warning /.///: abspath="$(abspath /.///)")
41  endif  endif
42    
43  ifneq ($(abspath /..),/)  ifneq ($(abspath /..),/)
44    $(error )    $(warning /..: abspath="$(abspath /..)")
45  endif  endif
46    
47  ifneq ($(abspath ///..),/)  ifneq ($(abspath ///..),/)
48    $(error )    $(warning ///..: abspath="$(abspath ///..)")
49  endif  endif
50    
51  ifneq ($(abspath /../),/)  ifneq ($(abspath /../),/)
52    $(error )    $(warning /../: abspath="$(abspath /../)")
53  endif  endif
54    
55  ifneq ($(abspath /..///),/)  ifneq ($(abspath /..///),/)
56    $(error )    $(warning /..///: abspath="$(abspath /..///)")
57  endif  endif
58    
59    
60  ifneq ($(abspath /foo/bar/..),/foo)  ifneq ($(abspath /foo/bar/..),/foo)
61    $(error )    $(warning /foo/bar/..: abspath="$(abspath /foo/bar/..)")
62  endif  endif
63    
64  ifneq ($(abspath /foo/bar/../../../baz),/baz)  ifneq ($(abspath /foo/bar/../../../baz),/baz)
65    $(error )    $(warning /foo/bar/../../../baz: abspath="$(abspath /foo/bar/../../../baz)")
66  endif  endif
67    
68  ifneq ($(abspath /foo/bar/../ /..),/foo /)  ifneq ($(abspath /foo/bar/../ /..),/foo /)
69    $(error )    $(warning /foo/bar/../ /..: abspath="$(abspath /foo/bar/../ /..)")
70  endif  endif
71    
72    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26