summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-09 20:08:12 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-09 20:08:12 +0000
commitd69c8a9f06016735ee5118049ffc8dd7de23190c (patch)
treed0f65250997ce39ba6c66e00ebf49e6aecbeded9 /tests
parent61e325a55d26a70871e851d811c3828113d13347 (diff)
parenta016945e801bbc12b7f84b5ce8e6a2ece4bfbb97 (diff)
downloadgobject-introspection-d69c8a9f06016735ee5118049ffc8dd7de23190c.tar.gz
Merge branch 'annotationparser' into 'master'
meson: Run annotationparser tests See merge request GNOME/gobject-introspection!92
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/annotationparser/meson.build20
-rw-r--r--tests/scanner/meson.build2
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/meson.build b/tests/scanner/annotationparser/meson.build
new file mode 100644
index 00000000..954dc28d
--- /dev/null
+++ b/tests/scanner/annotationparser/meson.build
@@ -0,0 +1,20 @@
+annotationparser_test_env = environment()
+annotationparser_test_env.append('PYTHONPATH', join_paths(meson.current_build_dir(), '../../../'))
+
+annotationparser_test_files = [
+ 'test_patterns.py',
+]
+
+# FIXME: MSVC
+# from giscanner._giscanner import SourceScanner as CSourceScanner
+# ImportError: DLL load failed: The specified module could not be found.
+if cc.get_id() != 'msvc'
+ annotationparser_test_files += [
+ 'test_parser.py',
+ ]
+endif
+
+foreach f : annotationparser_test_files
+ test(f, python, args: files(f), env: annotationparser_test_env)
+endforeach
+
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build
index ea7e9e5f..525e5f09 100644
--- a/tests/scanner/meson.build
+++ b/tests/scanner/meson.build
@@ -19,3 +19,5 @@ endif
foreach f : scanner_test_files
test(f, python, args: files(f), env: scanner_test_env)
endforeach
+
+subdir('annotationparser')