diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-28 19:33:52 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-28 19:33:52 +0300 |
commit | 6256b277687cba68e527712c3a7d327f480ab005 (patch) | |
tree | 9e0ac18411b3cefd9b02459d725b438044efaae8 /test cases/unit/47 reconfigure | |
parent | 479a84455f6b838e862b7b68b6edd8968dd8fe1c (diff) | |
download | meson-dircondense64.zip meson-dircondense64.tar.gz meson-dircondense64.tar.bz2 |
Condense test directory names.dircondense64
Diffstat (limited to 'test cases/unit/47 reconfigure')
-rw-r--r-- | test cases/unit/47 reconfigure/main.c | 4 | ||||
-rw-r--r-- | test cases/unit/47 reconfigure/meson.build | 11 | ||||
-rw-r--r-- | test cases/unit/47 reconfigure/meson_options.txt | 4 | ||||
-rw-r--r-- | test cases/unit/47 reconfigure/subprojects/sub1/meson.build | 3 |
4 files changed, 22 insertions, 0 deletions
diff --git a/test cases/unit/47 reconfigure/main.c b/test cases/unit/47 reconfigure/main.c new file mode 100644 index 0000000..25927f5 --- /dev/null +++ b/test cases/unit/47 reconfigure/main.c @@ -0,0 +1,4 @@ +int main(int argc, char *argv[]) +{ + return 0; +} diff --git a/test cases/unit/47 reconfigure/meson.build b/test cases/unit/47 reconfigure/meson.build new file mode 100644 index 0000000..4f35458 --- /dev/null +++ b/test cases/unit/47 reconfigure/meson.build @@ -0,0 +1,11 @@ +project('test-reconfigure', 'c') + +message('opt1 ' + get_option('opt1')) +message('opt2 ' + get_option('opt2')) +message('opt3 ' + get_option('opt3')) +message('opt4 ' + get_option('opt4')) + +exe = executable('test1', 'main.c') +test('test1', exe) + +sub1 = subproject('sub1') diff --git a/test cases/unit/47 reconfigure/meson_options.txt b/test cases/unit/47 reconfigure/meson_options.txt new file mode 100644 index 0000000..728f7b7 --- /dev/null +++ b/test cases/unit/47 reconfigure/meson_options.txt @@ -0,0 +1,4 @@ +option('opt1', type : 'string', value : 'default1') +option('opt2', type : 'string', value : 'default2') +option('opt3', type : 'string', value : 'default3') +option('opt4', type : 'string', value : 'default4') diff --git a/test cases/unit/47 reconfigure/subprojects/sub1/meson.build b/test cases/unit/47 reconfigure/subprojects/sub1/meson.build new file mode 100644 index 0000000..30fd19d --- /dev/null +++ b/test cases/unit/47 reconfigure/subprojects/sub1/meson.build @@ -0,0 +1,3 @@ +project('sub1') + +message('sub1:werror @0@'.format(get_option('werror'))) |