summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2020-08-21 14:31:27 +0100
committerSimon McVittie <smcv@debian.org>2020-08-21 14:32:48 +0100
commit5e05fdf1895a1b61fcdf59f3bf60cc9918916e77 (patch)
tree03fd300457f63fe7bc97b5b1a8d7604109562dba
parent4376d3c8a8427f23bea21e3a770f8489d2fe5cd1 (diff)
downloadgtk-doc-5e05fdf1895a1b61fcdf59f3bf60cc9918916e77.tar.gz
tests: Copy -sections.txt to build directory where needed
Two tests rely on symbols in <SUBSECTION Private> and <SUBSECTION Standard> being ignored. The Autotools build automatically copies -sections.txt into the build directory where gtk-doc will find it, but the Meson build does not, resulting in gtk-doc generating a new -sections.txt that does not know which symbols to ignore, and complaining that the private symbols are now undocumented. Signed-off-by: Simon McVittie <smcv@debian.org>
-rw-r--r--tests/bugs/docs/meson.build6
-rw-r--r--tests/gobject/docs/meson.build6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs/docs/meson.build b/tests/bugs/docs/meson.build
index add878f..dc2e50b 100644
--- a/tests/bugs/docs/meson.build
+++ b/tests/bugs/docs/meson.build
@@ -23,6 +23,12 @@ bugs_test_html_data = []
subdir('xml')
+configure_file(
+ input: join_paths(bugs_test_docs_dir, 'tester-sections.txt'),
+ output: 'tester-sections.txt',
+ copy: true,
+)
+
test(
'test-bugs-scan',
python_prg,
diff --git a/tests/gobject/docs/meson.build b/tests/gobject/docs/meson.build
index 08acd74..be8c01c 100644
--- a/tests/gobject/docs/meson.build
+++ b/tests/gobject/docs/meson.build
@@ -23,6 +23,12 @@ gobject_test_html_data = []
subdir('xml')
+configure_file(
+ input: join_paths(gobject_test_docs_dir, 'tester-sections.txt'),
+ output: 'tester-sections.txt',
+ copy: true,
+)
+
test(
'test-gobject-scan',
python_prg,