aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-04-21 00:37:34 +0300
committerGitHub <noreply@github.com>2020-04-21 00:37:34 +0300
commit84f28fc3f16fc46f792da94ffb572cc043c7ad2c (patch)
tree6b86c392ef449cdffab4c1b925d610a1e7b436bb /test cases
parent89bd55b9da6675d17bd4431aed99354603a7b312 (diff)
parenteb45ce6189870181b9d8a8eb07cfeab55a0ed012 (diff)
downloadmeson-84f28fc3f16fc46f792da94ffb572cc043c7ad2c.zip
meson-84f28fc3f16fc46f792da94ffb572cc043c7ad2c.tar.gz
meson-84f28fc3f16fc46f792da94ffb572cc043c7ad2c.tar.bz2
Merge pull request #6816 from dcbaker/framework-matrix
project test junit schema + a few more uses
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/16 sdl2/meson.build20
-rw-r--r--test cases/frameworks/16 sdl2/meson_options.txt6
-rw-r--r--test cases/frameworks/16 sdl2/test.json13
-rw-r--r--test cases/frameworks/17 mpi/test.json15
4 files changed, 37 insertions, 17 deletions
diff --git a/test cases/frameworks/16 sdl2/meson.build b/test cases/frameworks/16 sdl2/meson.build
index 662f9b5..fc98010 100644
--- a/test cases/frameworks/16 sdl2/meson.build
+++ b/test cases/frameworks/16 sdl2/meson.build
@@ -1,6 +1,8 @@
project('sdl2 test', 'c')
-sdl2_dep = dependency('sdl2', version : '>=2.0.0', required: false)
+method = get_option('method')
+
+sdl2_dep = dependency('sdl2', version : '>=2.0.0', required : false, method : method)
if not sdl2_dep.found()
error('MESON_SKIP_TEST sdl2 not found.')
@@ -9,19 +11,3 @@ endif
e = executable('sdl2prog', 'sdl2prog.c', dependencies : sdl2_dep)
test('sdl2test', e)
-
-if sdl2_dep.type_name() == 'extraframeworks'
- # The SDL OSX framework does not ship with detection executables
- # so skip the remaining tests.
- subdir_done()
-endif
-
-# Ensure that we can find it with sdl2-config too, using the legacy method name
-configdep = dependency('sdl2', method : 'sdlconfig')
-
-# And the modern method name
-configdep = dependency('sdl2', method : 'config-tool')
-
-# Check we can apply a version constraint
-dependency('sdl2', version: '>=@0@'.format(sdl2_dep.version()), method: 'pkg-config')
-dependency('sdl2', version: '>=@0@'.format(sdl2_dep.version()), method: 'config-tool')
diff --git a/test cases/frameworks/16 sdl2/meson_options.txt b/test cases/frameworks/16 sdl2/meson_options.txt
new file mode 100644
index 0000000..176af17
--- /dev/null
+++ b/test cases/frameworks/16 sdl2/meson_options.txt
@@ -0,0 +1,6 @@
+option(
+ 'method',
+ type : 'combo',
+ choices : ['auto', 'pkg-config', 'config-tool', 'sdlconfig', 'extraframework'],
+ value : 'auto',
+)
diff --git a/test cases/frameworks/16 sdl2/test.json b/test cases/frameworks/16 sdl2/test.json
new file mode 100644
index 0000000..8cf8543
--- /dev/null
+++ b/test cases/frameworks/16 sdl2/test.json
@@ -0,0 +1,13 @@
+{
+ "matrix": {
+ "options": {
+ "method": [
+ { "val": "auto" },
+ { "val": "pkg-config" },
+ { "val": "config-tool" },
+ { "val": "sdlconfig" },
+ { "val": "extraframework" }
+ ]
+ }
+ }
+}
diff --git a/test cases/frameworks/17 mpi/test.json b/test cases/frameworks/17 mpi/test.json
new file mode 100644
index 0000000..b3194ed
--- /dev/null
+++ b/test cases/frameworks/17 mpi/test.json
@@ -0,0 +1,15 @@
+{
+ "matrix": {
+ "options": {
+ "method": [
+ { "val": "auto" },
+ { "val": "pkg-config" },
+ { "val": "config-tool" },
+ {
+ "val": "system",
+ "compilers": { "c" :"msvc", "cpp": "msvc" }
+ }
+ ]
+ }
+ }
+}