summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-17 17:10:40 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-17 16:47:02 +0000
commit644e2dbf57da42aaf96f6063fe2901da1ca414f6 (patch)
treea6062054099a44e9be03cdab4545edcb2e4e4541
parent2d72af9160a6005a9aa62f1761a6d3d89636e0d6 (diff)
downloadgobject-introspection-644e2dbf57da42aaf96f6063fe2901da1ca414f6.tar.gz
meson: build/install mdextensions.py; and add a simple test
Add a simple test using the docwriter so we trigger the docwriter related Python imports.
-rw-r--r--.gitlab-ci/test-msys2-meson.sh4
-rw-r--r--giscanner/meson.build1
-rw-r--r--tests/scanner/meson.build1
-rw-r--r--tests/scanner/test_docwriter.py15
4 files changed, 20 insertions, 1 deletions
diff --git a/.gitlab-ci/test-msys2-meson.sh b/.gitlab-ci/test-msys2-meson.sh
index 9c5abe3e..2d3952a8 100644
--- a/.gitlab-ci/test-msys2-meson.sh
+++ b/.gitlab-ci/test-msys2-meson.sh
@@ -19,6 +19,7 @@ pacman --noconfirm -S --needed \
mingw-w64-$MSYS2_ARCH-meson \
mingw-w64-$MSYS2_ARCH-python3 \
mingw-w64-$MSYS2_ARCH-python3-pip \
+ mingw-w64-$MSYS2_ARCH-python3-mako \
mingw-w64-$MSYS2_ARCH-libffi \
mingw-w64-$MSYS2_ARCH-pkg-config \
mingw-w64-$MSYS2_ARCH-cairo \
@@ -29,7 +30,8 @@ pacman --noconfirm -S --needed \
export CCACHE_BASEDIR="${CI_PROJECT_DIR}"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
-pip3 install --upgrade --user meson==0.48.2 flake8
+# FIXME: markdown: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/250
+pip3 install --upgrade --user meson==0.48.2 flake8 markdown==2.6.11
export PATH="$HOME/.local/bin:$PATH"
# FIXME: https://github.com/Alexpux/MINGW-packages/pull/4064
diff --git a/giscanner/meson.build b/giscanner/meson.build
index 7b4b0d9d..e9f75e73 100644
--- a/giscanner/meson.build
+++ b/giscanner/meson.build
@@ -15,6 +15,7 @@ giscanner_files = [
'gdumpparser.py',
'libtoolimporter.py',
'maintransformer.py',
+ 'mdextensions.py',
'message.py',
'msvccompiler.py',
'pkgconfig.py',
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build
index 525e5f09..cc5ee530 100644
--- a/tests/scanner/meson.build
+++ b/tests/scanner/meson.build
@@ -13,6 +13,7 @@ if cc.get_id() != 'msvc'
'test_transformer.py',
'test_xmlwriter.py',
'test_pkgconfig.py',
+ 'test_docwriter.py',
]
endif
diff --git a/tests/scanner/test_docwriter.py b/tests/scanner/test_docwriter.py
new file mode 100644
index 00000000..8b2d0fb0
--- /dev/null
+++ b/tests/scanner/test_docwriter.py
@@ -0,0 +1,15 @@
+import unittest
+
+from giscanner.docwriter import DocWriter
+from giscanner.transformer import Transformer
+
+
+class TestDocWriter(unittest.TestCase):
+
+ def test_main(self):
+ transformer = Transformer(None)
+ DocWriter(transformer, "gjs", "devdocs")
+
+
+if __name__ == '__main__':
+ unittest.main()