diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-06 11:16:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-06 11:16:22 +0200 |
commit | 9d860f46631c1567c62336fcb25cf7b8090855a4 (patch) | |
tree | 4df23a20e36671246718fc55af6fa5074d791467 /libbuild2/make-parser.test.testscript | |
parent | 2006284bfbda3416eb8348078fd98fa518d25c47 (diff) |
Recognize absolute Windows paths in make parser
Diffstat (limited to 'libbuild2/make-parser.test.testscript')
-rw-r--r-- | libbuild2/make-parser.test.testscript | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/libbuild2/make-parser.test.testscript b/libbuild2/make-parser.test.testscript index 6db00eb..9108ba3 100644 --- a/libbuild2/make-parser.test.testscript +++ b/libbuild2/make-parser.test.testscript @@ -1,6 +1,8 @@ # file : libbuild2/make-parser.test.testscript # license : MIT; see accompanying LICENSE file +windows = ($cxx.target.class == 'windows') + : valid : $* <<EOI >>EOO @@ -88,11 +90,40 @@ $* <<EOI >>EOO P bar EOO -: lax +: escape : $* <<EOI >>EOO - foo: c:\tmp\bar + \#foo\:\ bar: fox$$\\baz EOI - T foo - P c:\tmp\bar + T #foo: bar + P fox$\baz EOO + +: windows +: +if $windows +{ + $* <<EOI >>EOO + foo: c:\tmp\bar + + c:\tmp\foo: c:\tmp\bar \ + c:\tmp\baz + + c:\\tmp\\foo: c:\\tmp\\bar + + c:\x:c:\y + EOI + T foo + P c:\tmp\bar + + T c:\tmp\foo + P c:\tmp\bar + P c:\tmp\baz + + T c:\tmp\foo + P c:\tmp\bar + + T c:\x + P c:\y + EOO +} |