[gtk-doc/wip/smcv/ci-meson-tests: 2/3] tests: Copy -sections.txt to build directory where needed




commit 5e05fdf1895a1b61fcdf59f3bf60cc9918916e77
Author: Simon McVittie <smcv debian org>
Date:   Fri Aug 21 14:31:27 2020 +0100

    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>

 tests/bugs/docs/meson.build    | 6 ++++++
 tests/gobject/docs/meson.build | 6 ++++++
 2 files changed, 12 insertions(+)
---
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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]