[3316] | 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 |
|
---|
[3318] | 26 | all_recursive:
|
---|
| 27 | $(ECHO) "includedep works fine"
|
---|
| 28 |
|
---|
| 29 | # Include before header to avoid secondary expansion in the noraml
|
---|
| 30 | # include scenario.
|
---|
| 31 | ifndef USE_NORMAL_INCLUDE
|
---|
| 32 | includedep testcase-includedep-esc-sub.kmk
|
---|
| 33 | else
|
---|
| 34 | include testcase-includedep-esc-sub.kmk
|
---|
| 35 | endif
|
---|
| 36 |
|
---|
| 37 | # We need the header for variables for special characters.
|
---|
[3316] | 38 | DEPTH = ../..
|
---|
| 39 | include $(PATH_KBUILD)/header.kmk
|
---|
| 40 |
|
---|
| 41 |
|
---|
[3318] | 42 | ifneq ("$(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))
|
---|
| 44 | endif
|
---|
[3316] | 45 |
|
---|
[3318] | 46 | ifneq ("$(deps-all phoney space 1)","/phoney-dep space 1")
|
---|
| 47 | $(error phoney space 1: $(deps-all phoney space 1))
|
---|
| 48 | endif
|
---|
[3316] | 49 |
|
---|
[3318] | 50 | ifneq ("$(deps-all phoney colon: 2)","/phoney-dep colon: 2")
|
---|
| 51 | $(error phoney colon: 2: $(deps-all phoney colon: 2))
|
---|
| 52 | endif
|
---|
| 53 |
|
---|
| 54 | ifneq ("$(deps-all phoney hash$(HASH) 3)","/phoney-dep hash$(HASH) 3")
|
---|
| 55 | $(error phoney hash$(HASH) 3: $(deps-all phoney hash$(HASH) 3))
|
---|
| 56 | endif
|
---|
| 57 |
|
---|
| 58 | ifeq ("$(deps-all phoney dollar$$ 4)","$/phoney-dep dollar$(DOLLAR) 4")
|
---|
| 59 | $(error phoney dollar$$ 4: $(deps-all phoney dollar$$ 4))
|
---|
| 60 | endif
|
---|
| 61 |
|
---|
| 62 | ifneq ("$(deps-all phoney slash-space\ 5)","/phoney-dep slash-space\ 5")
|
---|
| 63 | $(error phoney slash-space\ 5: $(deps-all phoney slash-space\ 5))
|
---|
| 64 | endif
|
---|
| 65 |
|
---|
| 66 | ifneq ("$(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))
|
---|
| 68 | endif
|
---|
| 69 |
|
---|
| 70 | ifneq ("$(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))
|
---|
| 72 | endif
|
---|
| 73 |
|
---|
| 74 | ifneq ("$(deps-all phoney equal= 8)","/phoney-dep equal= 8")
|
---|
| 75 | $(error phoney equal= 8: $(deps-all phoney equal= 8))
|
---|
| 76 | endif
|
---|
| 77 |
|
---|
| 78 | ifneq ("$(deps-all phoney semI; 9)","/phoney-dep semi; 9")
|
---|
| 79 | $(error phoney semI; 9: $(deps-all phoney semI; 9))
|
---|
| 80 | endif
|
---|
| 81 |
|
---|
| 82 | ifneq ("$(deps-all phoney percent% 10)","/phoney-dep percent% 10")
|
---|
| 83 | $(error phoney percent% 10: $(deps-all phoney percent% 10))
|
---|
| 84 | endif
|
---|
| 85 |
|
---|
| 86 | ifneq ("$(deps-all phoney pipe| 11)","/phoney-dep pipe| 11")
|
---|
| 87 | $(error phoney pipe| 11: $(deps-all phoney pipe| 11))
|
---|
| 88 | endif
|
---|
| 89 |
|
---|
| 90 | ifneq ("$(deps-all phoney plus+ 12)","/phoney-dep plus+ 12")
|
---|
| 91 | $(error phoney plus+ 12: $(deps-all phoney plus+ 12))
|
---|
| 92 | endif
|
---|
| 93 |
|
---|
| 94 | ifneq ("$(deps-all phoney trailing-slash13\)","/phoney-dep trailing-slash13\")
|
---|
| 95 | $(error phoney trailing-slash13\: $(deps-all phoney trailing-slash13\))
|
---|
| 96 | endif
|
---|
| 97 |
|
---|
| 98 | ifneq ("$(deps-all phoney trailing-slash13b\)","/phoney-dep trailing-slash13b\")
|
---|
| 99 | $(error phoney trailing-slash13b\: $(deps-all phoney trailing-slash13b\))
|
---|
| 100 | endif
|
---|
| 101 |
|
---|
| 102 | ifneq ("$(deps-all phoney trailing-slash14\)","/phoney-dep trailing-slash14\ /phoney-dep-ignore")
|
---|
| 103 | $(error phoney trailing-slash14\: $(deps-all phoney trailing-slash14\))
|
---|
| 104 | endif
|
---|
| 105 |
|
---|
| 106 | ifneq ("$(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 ))
|
---|
| 108 | endif
|
---|
| 109 |
|
---|
| 110 | ifneq ("$(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\))
|
---|
| 112 | endif
|
---|
| 113 |
|
---|
| 114 | ifneq ("$(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))
|
---|
| 116 | endif
|
---|
| 117 |
|
---|
| 118 | ifneq ("$(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 \))
|
---|
| 120 | endif
|
---|
| 121 |
|
---|
| 122 | ifneq ("$(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 ))
|
---|
| 124 | endif
|
---|
| 125 |
|
---|
| 126 | ifneq ("$(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 ))
|
---|
| 128 | endif
|
---|
| 129 |
|
---|
| 130 | ifneq ("$(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))
|
---|
| 132 | endif
|
---|
| 133 |
|
---|