aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-08-29 21:18:26 +0300
committerGitHub <noreply@github.com>2018-08-29 21:18:26 +0300
commitb86f2fd17f1f0825e16b1df2b1f3f598c0d77b85 (patch)
treee005f958d9a87590fc0a05c88314ed0f160b10a6 /test cases
parent28c1f31d7e2b46a8473d8ebe8f029fb7602fde09 (diff)
parent1ea743a0bfd5ab3ab74009fdd0fb2db64e8e79d8 (diff)
downloadmeson-b86f2fd17f1f0825e16b1df2b1f3f598c0d77b85.zip
meson-b86f2fd17f1f0825e16b1df2b1f3f598c0d77b85.tar.gz
meson-b86f2fd17f1f0825e16b1df2b1f3f598c0d77b85.tar.bz2
Merge pull request #4016 from thiblahute/hotdoc
modules: Add an 'hotdoc' module
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 0000000..ea5eeb1
--- /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 0000000..a09bff0
--- /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 0000000..b82354a
--- /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 0000000..191569d
--- /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')
+