diff options
Diffstat (limited to 'meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch')
-rw-r--r-- | meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch b/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch new file mode 100644 index 000000000..a18822f72 --- /dev/null +++ b/meta-oe/recipes-core/libxml/libxml++-2.37.1/libxml++_ptest.patch | |||
@@ -0,0 +1,73 @@ | |||
1 | diff --git a/Makefile.am b/Makefile.am | ||
2 | index d4aadb1..0e36756 100644 | ||
3 | --- a/Makefile.am | ||
4 | +++ b/Makefile.am | ||
5 | @@ -253,5 +253,8 @@ post-html: docs/index.html | ||
6 | rsync $(rsync_args) -r docs/index.html $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project) | ||
7 | rsync $(rsync_args) -r examples $$USER,libxmlplusplus@web.sourceforge.net:$(web_path_project) | ||
8 | |||
9 | +install-ptest: | ||
10 | + make -C examples install-ptest | ||
11 | + | ||
12 | # Optional: auto-generate the ChangeLog file from the git log on make dist | ||
13 | include $(top_srcdir)/macros/dist-changelog.am | ||
14 | diff --git a/examples/Makefile.am b/examples/Makefile.am | ||
15 | index d9541ca..c28b49c 100644 | ||
16 | --- a/examples/Makefile.am | ||
17 | +++ b/examples/Makefile.am | ||
18 | @@ -36,6 +36,23 @@ check_PROGRAMS = \ | ||
19 | schemavalidation/schemavalidation \ | ||
20 | textreader/textreader | ||
21 | |||
22 | +check_DOTLIBS = \ | ||
23 | + dom_build/.libs/dom_build \ | ||
24 | + dom_parse_entities/.libs/dom_parse_entities \ | ||
25 | + dom_parser/.libs/dom_parser \ | ||
26 | + dom_parser_raw/.libs/dom_parser_raw \ | ||
27 | + dom_read_write/.libs/dom_read_write \ | ||
28 | + dom_xinclude/.libs/dom_xinclude \ | ||
29 | + dom_xpath/.libs/dom_xpath \ | ||
30 | + dtdvalidation/.libs/dtdvalidation \ | ||
31 | + import_node/.libs/import_node \ | ||
32 | + sax_exception/.libs/sax_exception \ | ||
33 | + sax_parser/.libs/sax_parser \ | ||
34 | + sax_parser_build_dom/.libs/sax_parser_build_dom \ | ||
35 | + sax_parser_entities/.libs/sax_parser_entities \ | ||
36 | + schemavalidation/.libs/schemavalidation \ | ||
37 | + textreader/.libs/textreader | ||
38 | + | ||
39 | # Shell scripts that call the example programs. | ||
40 | check_SCRIPTS = \ | ||
41 | dom_build/make_check.sh \ | ||
42 | @@ -147,10 +164,10 @@ dist_noinst_DATA = \ | ||
43 | # file are located in different directories. | ||
44 | dom_read_write/make_check.sh: Makefile | ||
45 | echo '# Generated and used by "make check"' >$@ | ||
46 | - echo 'dom_read_write/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@ | ||
47 | + echo 'dom_read_write/.libs/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@ | ||
48 | chmod +x $@ | ||
49 | |||
50 | -script_template = cd "$(srcdir)/<!progname!>" && "$(abs_builddir)/<!progname!>/<!progname!>" >/dev/null | ||
51 | +script_template = cd "$(srcdir)/<!progname!>" && ".libs/<!progname!>" >/dev/null | ||
52 | standard_scripts = $(filter-out dom_read_write/make_check.sh,$(check_SCRIPTS)) | ||
53 | |||
54 | # All other script files are generated like so: | ||
55 | @@ -162,3 +179,18 @@ $(standard_scripts): Makefile | ||
56 | CLEANFILES = \ | ||
57 | dom_read_write/example_output.xml \ | ||
58 | $(check_SCRIPTS) | ||
59 | + | ||
60 | +buildtest: all | ||
61 | + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS) | ||
62 | + $(MAKE) $(AM_MAKEFLAGS) buildtest-TESTS | ||
63 | + | ||
64 | +install-ptest: | ||
65 | + $(MKDIR_P) $(DESTDIR)/examples | ||
66 | + cp --parents $(check_DOTLIBS) $(DESTDIR)/examples | ||
67 | + cp --parents $(check_SCRIPTS) $(DESTDIR)/examples | ||
68 | + cp --parents $(dist_noinst_DATA) $(DESTDIR)/examples | ||
69 | + cp Makefile $(DESTDIR)/examples | ||
70 | + $(MKDIR_P) $(DESTDIR)/macros | ||
71 | + cp ../macros/test-driver $(DESTDIR)/macros | ||
72 | + sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/examples/Makefile | ||
73 | + | ||