VirtualBox

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

Last change on this file since 3387 was 3318, checked in by bird, 4 years ago

kmk/incdep.c: Unescaping.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.2 KB
Line 
1# $Id: testcase-includedep-esc.kmk 3318 2020-04-01 07:05:32Z bird $
2## @file
3# kBuild - testcase for the includedep directive with filename escaping.
4#
5
6#
7# Copyright (c) 2008-2020 knut st. osmundsen <bird-kBuild-spamxx@anduin.net>
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild. If not, see <http://www.gnu.org/licenses/>
23#
24#
25
26all_recursive:
27 $(ECHO) "includedep works fine"
28
29# Include before header to avoid secondary expansion in the noraml
30# include scenario.
31ifndef USE_NORMAL_INCLUDE
32includedep testcase-includedep-esc-sub.kmk
33else
34include testcase-includedep-esc-sub.kmk
35endif
36
37# We need the header for variables for special characters.
38DEPTH = ../..
39include $(PATH_KBUILD)/header.kmk
40
41
42ifneq ("$(deps-all /phoney/file-with-two-spaces .c)","/phoney/header-file-with-two-spaces .h")
43$(error /phoney/file-with-two-spaces .c: $(deps-all /phoney/file-with-two-spaces .c))
44endif
45
46ifneq ("$(deps-all phoney space 1)","/phoney-dep space 1")
47$(error phoney space 1: $(deps-all phoney space 1))
48endif
49
50ifneq ("$(deps-all phoney colon: 2)","/phoney-dep colon: 2")
51$(error phoney colon: 2: $(deps-all phoney colon: 2))
52endif
53
54ifneq ("$(deps-all phoney hash$(HASH) 3)","/phoney-dep hash$(HASH) 3")
55$(error phoney hash$(HASH) 3: $(deps-all phoney hash$(HASH) 3))
56endif
57
58ifeq ("$(deps-all phoney dollar$$ 4)","$/phoney-dep dollar$(DOLLAR) 4")
59$(error phoney dollar$$ 4: $(deps-all phoney dollar$$ 4))
60endif
61
62ifneq ("$(deps-all phoney slash-space\ 5)","/phoney-dep slash-space\ 5")
63$(error phoney slash-space\ 5: $(deps-all phoney slash-space\ 5))
64endif
65
66ifneq ("$(deps-all phoney slash-hash\$(HASH) 6)","/phoney-dep slash-hash\$(HASH) 6")
67$(error phoney slash-hash\$(HASH) 6: $(deps-all phoney slash-hash\$(HASH) 6))
68endif
69
70ifneq ("$(deps-all phoney slash-slash-hash\\$(HASH) 7)","/phoney-dep slash-slash-hash\\$(HASH) 7")
71$(error phoney slash-slash-hash\\$(HASH) 7: $(deps-all phoney slash-slash-hash\\$(HASH) 7))
72endif
73
74ifneq ("$(deps-all phoney equal= 8)","/phoney-dep equal= 8")
75$(error phoney equal= 8: $(deps-all phoney equal= 8))
76endif
77
78ifneq ("$(deps-all phoney semI; 9)","/phoney-dep semi; 9")
79$(error phoney semI; 9: $(deps-all phoney semI; 9))
80endif
81
82ifneq ("$(deps-all phoney percent% 10)","/phoney-dep percent% 10")
83$(error phoney percent% 10: $(deps-all phoney percent% 10))
84endif
85
86ifneq ("$(deps-all phoney pipe| 11)","/phoney-dep pipe| 11")
87$(error phoney pipe| 11: $(deps-all phoney pipe| 11))
88endif
89
90ifneq ("$(deps-all phoney plus+ 12)","/phoney-dep plus+ 12")
91$(error phoney plus+ 12: $(deps-all phoney plus+ 12))
92endif
93
94ifneq ("$(deps-all phoney trailing-slash13\)","/phoney-dep trailing-slash13\")
95$(error phoney trailing-slash13\: $(deps-all phoney trailing-slash13\))
96endif
97
98ifneq ("$(deps-all phoney trailing-slash13b\)","/phoney-dep trailing-slash13b\")
99$(error phoney trailing-slash13b\: $(deps-all phoney trailing-slash13b\))
100endif
101
102ifneq ("$(deps-all phoney trailing-slash14\)","/phoney-dep trailing-slash14\ /phoney-dep-ignore")
103$(error phoney trailing-slash14\: $(deps-all phoney trailing-slash14\))
104endif
105
106ifneq ("$(deps-all phoney 15-trailing-space )","/phoney-dep 15-trailing-space /phoney-dep-ignore")
107$(error phoney 15-trailing-space : $(deps-all phoney 15-trailing-space ))
108endif
109
110ifneq ("$(deps-all phoney 16-no-trailing-space\)","/phoney-dep 16-no-trailing-space\")
111$(error phoney 16-no-trailing-space\: $(deps-all phoney 16-no-trailing-space\))
112endif
113
114ifneq ("$(deps-all phoney 17-3x-escaped-newlines becomes-single-space)","/phoney-dep 17-3x-escaped-newlines becomes-single-space")
115$(error phoney 17-3x-escaped-newlines becomes-single-space: $(deps-all phoney 17-3x-escaped-newlines becomes-single-space))
116endif
117
118ifneq ("$(deps-all phoney 18-3x-escaped-trailing-spaces-no-newline \)","/phoney-dep 18-3x-escaped-trailing-spaces-no-newline \")
119$(error phoney 18-3x-escaped-trailing-spaces-no-newline \: $(deps-all phoney 18-3x-escaped-trailing-spaces-no-newline \))
120endif
121
122ifneq ("$(deps-all phoney 19-target-trailing-space-with-padding )","/phoney-dep 19-target-trailing-space-with-padding /phoney-dep-ignore")
123$(error phoney 19-target-trailing-space-with-padding : $(deps-all phoney 19-target-trailing-space-with-padding ))
124endif
125
126ifneq ("$(deps-all phoney 20-target-trailing-space-with-newline-padding )","/phoney-dep 20-target-trailing-space-with-newline-padding /phoney-dep-ignore")
127$(error phoney 20-target-trailing-space-with-newline-padding : $(deps-all phoney 20-target-trailing-space-with-newline-padding ))
128endif
129
130ifneq ("$(deps-all phoney 21-target-trailing-space-with-newline-padding-and-tail my-tail-21)","/phoney-dep 21-target-trailing-space-with-newline-padding-and-tail my-tail-21")
131$(error 21-target-trailing-space-with-newline-padding-and-tail my-tail-21: $(deps-all 21-target-trailing-space-with-newline-padding-and-tail my-tail-21))
132endif
133
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use