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