VirtualBox

source: kBuild/trunk/src/kmk/testcase-includedep-esc-sub.kmk@ 3633

Last change on this file since 3633 was 3318, checked in by bird, 5 years ago

kmk/incdep.c: Unescaping.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: testcase-includedep-esc-sub.kmk 3318 2020-04-01 07:05:32Z bird $
2## @file
3# kBuild - testcase for the includdep directive with filename escaping, helper
4# file that gets included.
5#
6
7#
8# Copyright (c) 2007-2020 knut st. osmundsen <[email protected]>
9#
10# This file is part of kBuild.
11#
12# kBuild is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 3 of the License, or
15# (at your option) any later version.
16#
17# kBuild is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with kBuild. If not, see <http://www.gnu.org/licenses/>
24#
25#
26
27testcase-includedep-esc-sub.kmk=included
28
29# spaces
30/phoney/file-with-two-spaces\ \ .c: \
31 /phoney/header-file-with-two-spaces\ \ .h
32
33
34#
35# From example-spaces.kmk
36#
37/phoney-dep-ignore:
38
39phoney\ space\ \ 1: /phoney-dep\ space\ \ 1
40
41phoney\ colon\:\ 2: /phoney-dep\ colon\:\ 2 \
42
43phoney\ hash\#\ 3 : /phoney-dep\ hash\#\ 3
44
45phoney\ dollar$$\ 4 : /phoney-dep\ dollar$$\ 4 \
46
47phoney\ slash-space\\\ 5: /phoney-dep\ slash-space\\\ 5
48
49phoney\ slash-hash\\\#\ 6: /phoney-dep\ slash-hash\\\#\ 6 \
50
51phoney\ slash-slash-hash\\\\\#\ 7: /phoney-dep\ slash-slash-hash\\\\\#\ 7
52
53phoney\ equal\=\ 8: /phoney-dep\ equal\=\ 8
54
55phoney\ semI\;\ 9: /phoney-dep\ semi\;\ 9
56
57# Note! The percent is only escaped on the target side!
58phoney\ percent\%\ 10: /phoney-dep\ percent%\ 10 \
59
60# Note! The pipe is only escaped on the dependency list side!
61phoney\ pipe|\ 11: /phoney-dep\ pipe\|\ 11
62
63phoney\ plus+\ 12: \
64 /phoney-dep\ plus+\ 12
65
66phoney\ trailing-slash13\\: /phoney-dep\ trailing-slash13\ \
67
68phoney\ trailing-slash13b\\: /phoney-dep\ trailing-slash13b\ \
69 \
70 \
71 \
72
73phoney\ trailing-slash14\\: \
74 /phoney-dep\ trailing-slash14\\ \
75 /phoney-dep-ignore
76
77phoney\ 15-trailing-space\ : /phoney-dep\ 15-trailing-space\ /phoney-dep-ignore
78
79# Note! No stripping spaces! Trailing space here that gets stripped instead of escaped.
80phoney\ 16-no-trailing-space\\: /phoney-dep\ 16-no-trailing-space\
81
82phoney\ 17-3x-escaped-newlines\ becomes-single-space: /phoney-dep\ 17-3x-escaped-newlines\ \
83\
84\
85 becomes-single-space
86
87# Note! Must have a trailing space or comment.
88phoney\ 18-3x-escaped-trailing-spaces-no-newline\ \ \\: \
89 /phoney-dep\ 18-3x-escaped-trailing-spaces-no-newline\ \ \
90
91phoney\ 19-target-trailing-space-with-padding\ : /phoney-dep\ 19-target-trailing-space-with-padding\ /phoney-dep-ignore
92
93phoney\ 20-target-trailing-space-with-newline-padding\ \
94\
95: /phoney-dep\ 20-target-trailing-space-with-newline-padding\ /phoney-dep-ignore
96
97phoney\ 21-target-trailing-space-with-newline-padding-and-tail\ \
98\
99 \
100 \
101my-tail-21: /phoney-dep\ 21-target-trailing-space-with-newline-padding-and-tail\ \
102\
103\
104my-tail-21
105
106
107all-trailing-slashes1: /phoney-dep\ trailing-slash13\ \
108
109all-trailing-slashes2: /phoney-dep\ trailing-slash13b\ \
110 \
111 \
112 \
113
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