summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-08-14 16:05:26 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-08-28 18:18:40 -0300
commit378bd4df0e3ac6c38588eea2de590cbe0fe74af2 (patch)
treed2a9431dfe02cf3b2ed977cc95a4802fcffbeaba /test cases
parent221ac05c6924ebd03f11632fd6abd4f5f9acc493 (diff)
downloadmeson-378bd4df0e3ac6c38588eea2de590cbe0fe74af2.tar.gz
modules: Add an 'hotdoc' module
hotdoc: http://github.com/hotdoc/hotdoc/
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/23 hotdoc/doc/index.md1
-rw-r--r--test cases/frameworks/23 hotdoc/doc/meson.build19
-rw-r--r--test cases/frameworks/23 hotdoc/doc/sitemap.txt3
-rw-r--r--test cases/frameworks/23 hotdoc/meson.build9
4 files changed, 32 insertions, 0 deletions
diff --git a/test cases/frameworks/23 hotdoc/doc/index.md b/test cases/frameworks/23 hotdoc/doc/index.md
new file mode 100644
index 000000000..ea5eeb106
--- /dev/null
+++ b/test cases/frameworks/23 hotdoc/doc/index.md
@@ -0,0 +1 @@
+# Hello world!
diff --git a/test cases/frameworks/23 hotdoc/doc/meson.build b/test cases/frameworks/23 hotdoc/doc/meson.build
new file mode 100644
index 000000000..a09bff08d
--- /dev/null
+++ b/test cases/frameworks/23 hotdoc/doc/meson.build
@@ -0,0 +1,19 @@
+hotdoc = import('hotdoc')
+
+target = hotdoc.generate_doc(
+ 'foobar',
+ c_smart_index: true,
+ project_version: '0.1',
+ sitemap: 'sitemap.txt',
+ index: 'index.md',
+ c_sources: files('../../10 gtk-doc/include/foo.h'),
+ languages: ['c'],
+ install: true,
+)
+
+assert(target.config_path() == target.full_path() + '.json',
+ 'Hotdoc config paths do not match.'
+)
+
+assert(hotdoc.has_extensions('search') == true,
+ 'Extension "search" provided by hotdoc core should always be found')
diff --git a/test cases/frameworks/23 hotdoc/doc/sitemap.txt b/test cases/frameworks/23 hotdoc/doc/sitemap.txt
new file mode 100644
index 000000000..b82354a1d
--- /dev/null
+++ b/test cases/frameworks/23 hotdoc/doc/sitemap.txt
@@ -0,0 +1,3 @@
+index.md
+ c-index
+
diff --git a/test cases/frameworks/23 hotdoc/meson.build b/test cases/frameworks/23 hotdoc/meson.build
new file mode 100644
index 000000000..191569dd6
--- /dev/null
+++ b/test cases/frameworks/23 hotdoc/meson.build
@@ -0,0 +1,9 @@
+project('hotdoc', 'c')
+
+hotdoc = find_program('hotdoc', required: false)
+if not hotdoc.found()
+ error('MESON_SKIP_TEST hotdoc not found.')
+endif
+
+subdir('doc')
+