diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/keyval/3 load_config files | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/keyval/3 load_config files')
3 files changed, 19 insertions, 0 deletions
diff --git a/meson/test cases/keyval/3 load_config files/dir/config b/meson/test cases/keyval/3 load_config files/dir/config new file mode 100644 index 000000000..0599d4616 --- /dev/null +++ b/meson/test cases/keyval/3 load_config files/dir/config @@ -0,0 +1,2 @@ +CONFIG_IS_SET=y +# CONFIG_NOT_IS_SET is not set diff --git a/meson/test cases/keyval/3 load_config files/dir/meson.build b/meson/test cases/keyval/3 load_config files/dir/meson.build new file mode 100644 index 000000000..adc52892a --- /dev/null +++ b/meson/test cases/keyval/3 load_config files/dir/meson.build @@ -0,0 +1,13 @@ + +k = import('keyval') + +conf = k.load(files('config')) + +if not conf.has_key('CONFIG_IS_SET') + error('Expected CONFIG_IS_SET to be set, but it wasn\'t') +endif + +if conf.has_key('CONFIG_NOT_IS_SET') + error('Expected CONFIG_NOT_IS_SET not be set, but it was') +endif + diff --git a/meson/test cases/keyval/3 load_config files/meson.build b/meson/test cases/keyval/3 load_config files/meson.build new file mode 100644 index 000000000..0651acf34 --- /dev/null +++ b/meson/test cases/keyval/3 load_config files/meson.build @@ -0,0 +1,4 @@ +project('keyval subdir test') + +# Test into sub directory +subdir('dir') |