diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-02-25 14:24:17 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-02-26 15:31:15 -0800 |
commit | 219535aad426e9678fcab4887c1fdce321d2ba05 (patch) | |
tree | f017acad35a3a365e8d5e3585dd1e2a671ee269b /test cases | |
parent | 2d8d21d5bc9a914a81e91437ff3fda45582b588c (diff) | |
download | meson-219535aad426e9678fcab4887c1fdce321d2ba05.zip meson-219535aad426e9678fcab4887c1fdce321d2ba05.tar.gz meson-219535aad426e9678fcab4887c1fdce321d2ba05.tar.bz2 |
interpreter: Clean up and simplify/optimize get_(external|cross)_property
These are both way more compilcated than they needed to be, this is a
much simpler implementation, and is shared between cross and external
properies.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/failing/111 no build get_external_property/meson.build | 3 | ||||
-rw-r--r-- | test cases/failing/111 no build get_external_property/test.json | 7 | ||||
-rw-r--r-- | test cases/failing/28 no crossprop/test.json | 2 | ||||
-rw-r--r-- | test cases/failing/99 no host get_external_property/meson.build (renamed from test cases/failing/99 no native prop/meson.build) | 0 | ||||
-rw-r--r-- | test cases/failing/99 no host get_external_property/test.json | 7 | ||||
-rw-r--r-- | test cases/failing/99 no native prop/test.json | 7 |
6 files changed, 18 insertions, 8 deletions
diff --git a/test cases/failing/111 no build get_external_property/meson.build b/test cases/failing/111 no build get_external_property/meson.build new file mode 100644 index 0000000..8a4215c --- /dev/null +++ b/test cases/failing/111 no build get_external_property/meson.build @@ -0,0 +1,3 @@ +project('missing property') + +message(meson.get_external_property('nonexisting', native : true)) diff --git a/test cases/failing/111 no build get_external_property/test.json b/test cases/failing/111 no build get_external_property/test.json new file mode 100644 index 0000000..8b004be --- /dev/null +++ b/test cases/failing/111 no build get_external_property/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/111 no build get_external_property/meson.build:3:0: ERROR: Unknown property for build machine: nonexisting" + } + ] +} diff --git a/test cases/failing/28 no crossprop/test.json b/test cases/failing/28 no crossprop/test.json index a186a68..6fb9dce 100644 --- a/test cases/failing/28 no crossprop/test.json +++ b/test cases/failing/28 no crossprop/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": "test cases/failing/28 no crossprop/meson.build:3:0: ERROR: Unknown cross property: nonexisting." + "line": "test cases/failing/28 no crossprop/meson.build:3:0: ERROR: Unknown property for host machine: nonexisting" } ] } diff --git a/test cases/failing/99 no native prop/meson.build b/test cases/failing/99 no host get_external_property/meson.build index c956754..c956754 100644 --- a/test cases/failing/99 no native prop/meson.build +++ b/test cases/failing/99 no host get_external_property/meson.build diff --git a/test cases/failing/99 no host get_external_property/test.json b/test cases/failing/99 no host get_external_property/test.json new file mode 100644 index 0000000..44b5245 --- /dev/null +++ b/test cases/failing/99 no host get_external_property/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/99 no host get_external_property/meson.build:3:0: ERROR: Unknown property for host machine: nonexisting" + } + ] +} diff --git a/test cases/failing/99 no native prop/test.json b/test cases/failing/99 no native prop/test.json deleted file mode 100644 index 8c320d9..0000000 --- a/test cases/failing/99 no native prop/test.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "stdout": [ - { - "line": "test cases/failing/99 no native prop/meson.build:3:0: ERROR: Unknown native property: nonexisting." - } - ] -} |