diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-30 09:33:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 09:33:13 -0700 |
commit | ce2d927a7963caea26e858bead3123adc274606c (patch) | |
tree | 4759063f5127e8b80999705fa930ce1be7493b3e /test cases | |
parent | 137c3124e23f0f589c8855aafcd7897aa6d8c544 (diff) | |
parent | a3106776a681201b166d019a3cf27cfe07f30a87 (diff) | |
download | meson-ce2d927a7963caea26e858bead3123adc274606c.zip meson-ce2d927a7963caea26e858bead3123adc274606c.tar.gz meson-ce2d927a7963caea26e858bead3123adc274606c.tar.bz2 |
Merge pull request #7757 from dcbaker/submit/curses-dependency
Extend the Curses dependency to use config tools and hand rolled search
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/frameworks/31 curses/meson.build | 6 | ||||
-rw-r--r-- | test cases/frameworks/31 curses/meson_options.txt | 6 | ||||
-rw-r--r-- | test cases/frameworks/31 curses/test.json | 11 |
3 files changed, 22 insertions, 1 deletions
diff --git a/test cases/frameworks/31 curses/meson.build b/test cases/frameworks/31 curses/meson.build index 21483fb..796a0d8 100644 --- a/test cases/frameworks/31 curses/meson.build +++ b/test cases/frameworks/31 curses/meson.build @@ -1,9 +1,13 @@ project('curses', 'c') -curses = dependency('curses', required: false) +curses = dependency('curses', required: false, method : get_option('method'), version : '>= 0') if not curses.found() error('MESON_SKIP_TEST: Curses library not found') endif exec = executable('basic', 'main.c', dependencies: curses) # didn't run the test because in general graphics fail on CI + +# this should fail +not_found = dependency('curses', required: false, method : get_option('method'), version : '> 1000000') +assert(not_found.found() == false) diff --git a/test cases/frameworks/31 curses/meson_options.txt b/test cases/frameworks/31 curses/meson_options.txt new file mode 100644 index 0000000..e294e83 --- /dev/null +++ b/test cases/frameworks/31 curses/meson_options.txt @@ -0,0 +1,6 @@ +option( + 'method', + type : 'combo', + choices : ['pkg-config', 'config-tool', 'system'], + value : 'pkg-config', +) diff --git a/test cases/frameworks/31 curses/test.json b/test cases/frameworks/31 curses/test.json new file mode 100644 index 0000000..3995695 --- /dev/null +++ b/test cases/frameworks/31 curses/test.json @@ -0,0 +1,11 @@ +{ + "matrix": { + "options": { + "method": [ + { "val": "pkg-config" }, + { "val": "config-tool" }, + { "val": "system" } + ] + } + } +} |