From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/keyval/3 load_config files/dir/config | 2 ++ meson/test cases/keyval/3 load_config files/dir/meson.build | 13 +++++++++++++ meson/test cases/keyval/3 load_config files/meson.build | 4 ++++ 3 files changed, 19 insertions(+) create mode 100644 meson/test cases/keyval/3 load_config files/dir/config create mode 100644 meson/test cases/keyval/3 load_config files/dir/meson.build create mode 100644 meson/test cases/keyval/3 load_config files/meson.build (limited to 'meson/test cases/keyval/3 load_config files') 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') -- cgit 1.2.3-korg