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/2 subdir | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/keyval/2 subdir')
-rw-r--r-- | meson/test cases/keyval/2 subdir/.config | 2 | ||||
-rw-r--r-- | meson/test cases/keyval/2 subdir/dir/meson.build | 13 | ||||
-rw-r--r-- | meson/test cases/keyval/2 subdir/meson.build | 4 |
3 files changed, 19 insertions, 0 deletions
diff --git a/meson/test cases/keyval/2 subdir/.config b/meson/test cases/keyval/2 subdir/.config new file mode 100644 index 000000000..0599d4616 --- /dev/null +++ b/meson/test cases/keyval/2 subdir/.config @@ -0,0 +1,2 @@ +CONFIG_IS_SET=y +# CONFIG_NOT_IS_SET is not set diff --git a/meson/test cases/keyval/2 subdir/dir/meson.build b/meson/test cases/keyval/2 subdir/dir/meson.build new file mode 100644 index 000000000..291ad93a2 --- /dev/null +++ b/meson/test cases/keyval/2 subdir/dir/meson.build @@ -0,0 +1,13 @@ + +k = import('keyval') + +conf = k.load(meson.source_root() / '.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/2 subdir/meson.build b/meson/test cases/keyval/2 subdir/meson.build new file mode 100644 index 000000000..0651acf34 --- /dev/null +++ b/meson/test cases/keyval/2 subdir/meson.build @@ -0,0 +1,4 @@ +project('keyval subdir test') + +# Test into sub directory +subdir('dir') |