Ignore:
Timestamp:
Apr 1, 2020, 9:05:32 AM (5 years ago)
Author:
bird
Message:

kmk/incdep.c: Unescaping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/testcase-includedep-esc.kmk

    r3316 r3318  
    2424#
    2525
     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.
    2638DEPTH = ../..
    2739include $(PATH_KBUILD)/header.kmk
    2840
    29 includedep testcase-includedep-esc-sub.kmk
    3041
     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
    3145
    32 all_recursive:
    33         $(ECHO) "includedep works fine $(deps-all /phoney/file-with-two-spaces  .c)"
     46ifneq ("$(deps-all phoney space  1)","/phoney-dep space  1")
     47$(error phoney space  1: $(deps-all phoney space  1))
     48endif
    3449
     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 TracChangeset for help on using the changeset viewer.