diff options
| -rw-r--r-- | meta-oe/recipes-core/libxml/libxml++/libxml++_ptest.patch | 78 | ||||
| -rw-r--r-- | meta-oe/recipes-core/libxml/libxml++/run-ptest | 5 | ||||
| -rw-r--r-- | meta-oe/recipes-core/libxml/libxml++_2.42.1.bb | 12 |
3 files changed, 11 insertions, 84 deletions
diff --git a/meta-oe/recipes-core/libxml/libxml++/libxml++_ptest.patch b/meta-oe/recipes-core/libxml/libxml++/libxml++_ptest.patch deleted file mode 100644 index dc6198fe98..0000000000 --- a/meta-oe/recipes-core/libxml/libxml++/libxml++_ptest.patch +++ /dev/null | |||
| @@ -1,78 +0,0 @@ | |||
| 1 | --- a/Makefile.am | ||
| 2 | +++ b/Makefile.am | ||
| 3 | @@ -40,5 +40,8 @@ EXTRA_DIST = \ | ||
| 4 | tools/conf_tests/have_exception_ptr.cc \ | ||
| 5 | untracked/README | ||
| 6 | |||
| 7 | +install-ptest: | ||
| 8 | + make -C examples install-ptest | ||
| 9 | + | ||
| 10 | # Optional: auto-generate the ChangeLog file from the git log on make dist | ||
| 11 | include $(top_srcdir)/build/dist-changelog.am | ||
| 12 | --- a/examples/Makefile.am | ||
| 13 | +++ b/examples/Makefile.am | ||
| 14 | @@ -19,6 +19,8 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(top_ | ||
| 15 | AM_CXXFLAGS = $(LIBXMLXX_WXXFLAGS) | ||
| 16 | LDADD = $(top_builddir)/libxml++/libxml++-$(LIBXMLXX_API_VERSION).la $(LIBXMLXX_LIBS) | ||
| 17 | |||
| 18 | +LOG_DRIVER = $(SHELL) ../macros/test-driver | ||
| 19 | + | ||
| 20 | check_PROGRAMS = \ | ||
| 21 | dom_build/dom_build \ | ||
| 22 | dom_parse_entities/dom_parse_entities \ | ||
| 23 | @@ -37,6 +39,23 @@ check_PROGRAMS = \ | ||
| 24 | schemavalidation/schemavalidation \ | ||
| 25 | textreader/textreader | ||
| 26 | |||
| 27 | +check_DOTLIBS = \ | ||
| 28 | + dom_build/.libs/dom_build \ | ||
| 29 | + dom_parse_entities/.libs/dom_parse_entities \ | ||
| 30 | + dom_parser/.libs/dom_parser \ | ||
| 31 | + dom_parser_raw/.libs/dom_parser_raw \ | ||
| 32 | + dom_read_write/.libs/dom_read_write \ | ||
| 33 | + dom_xinclude/.libs/dom_xinclude \ | ||
| 34 | + dom_xpath/.libs/dom_xpath \ | ||
| 35 | + dtdvalidation/.libs/dtdvalidation \ | ||
| 36 | + import_node/.libs/import_node \ | ||
| 37 | + sax_exception/.libs/sax_exception \ | ||
| 38 | + sax_parser/.libs/sax_parser \ | ||
| 39 | + sax_parser_build_dom/.libs/sax_parser_build_dom \ | ||
| 40 | + sax_parser_entities/.libs/sax_parser_entities \ | ||
| 41 | + schemavalidation/.libs/schemavalidation \ | ||
| 42 | + textreader/.libs/textreader | ||
| 43 | + | ||
| 44 | # Shell scripts that call the example programs. | ||
| 45 | check_SCRIPTS = \ | ||
| 46 | dom_build/make_check.sh \ | ||
| 47 | @@ -154,10 +173,10 @@ dist_noinst_DATA = \ | ||
| 48 | # file are located in different directories. | ||
| 49 | dom_read_write/make_check.sh: Makefile | ||
| 50 | $(AM_V_GEN)echo '# Generated and used by "make check"' >$@ | ||
| 51 | - $(AM_V_at)echo 'dom_read_write/dom_read_write "$(srcdir)/dom_read_write/example.xml" dom_read_write/example_output.xml >/dev/null' >>$@ | ||
| 52 | + $(AM_V_at)echo 'cd dom_read_write && .libs/dom_read_write "example.xml" example_output.xml >/dev/null' >>$@ | ||
| 53 | $(AM_V_at)chmod +x $@ | ||
| 54 | |||
| 55 | -script_template = cd "$(srcdir)/<!progname!>" && "$(abs_builddir)/<!progname!>/<!progname!>" >/dev/null | ||
| 56 | +script_template = cd "<!progname!>" && ".libs/<!progname!>" >/dev/null | ||
| 57 | standard_scripts = $(filter-out dom_read_write/make_check.sh,$(check_SCRIPTS)) | ||
| 58 | |||
| 59 | # All other script files are generated like so: | ||
| 60 | @@ -169,3 +188,18 @@ $(standard_scripts): Makefile | ||
| 61 | CLEANFILES = \ | ||
| 62 | dom_read_write/example_output.xml \ | ||
| 63 | $(check_SCRIPTS) | ||
| 64 | + | ||
| 65 | +buildtest: all | ||
| 66 | + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS) | ||
| 67 | + $(MAKE) $(AM_MAKEFLAGS) buildtest-TESTS | ||
| 68 | + | ||
| 69 | +install-ptest: | ||
| 70 | + $(MKDIR_P) $(DESTDIR)/examples | ||
| 71 | + cp --parents $(check_DOTLIBS) $(DESTDIR)/examples | ||
| 72 | + cp --parents $(check_SCRIPTS) $(DESTDIR)/examples | ||
| 73 | + cd $(srcdir) && cp --parents $(dist_noinst_DATA) $(DESTDIR)/examples | ||
| 74 | + cp Makefile $(DESTDIR)/examples | ||
| 75 | + $(MKDIR_P) $(DESTDIR)/macros | ||
| 76 | + cp $(top_srcdir)/build/test-driver $(DESTDIR)/macros | ||
| 77 | + sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/examples/Makefile | ||
| 78 | + | ||
diff --git a/meta-oe/recipes-core/libxml/libxml++/run-ptest b/meta-oe/recipes-core/libxml/libxml++/run-ptest index 236f667538..5e2d4177e2 100644 --- a/meta-oe/recipes-core/libxml/libxml++/run-ptest +++ b/meta-oe/recipes-core/libxml/libxml++/run-ptest | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | cd examples | 2 | for t in tests/*; do |
| 3 | make -k check-TESTS | 3 | $t && echo PASS: $t || echo FAIL: $t |
| 4 | done | ||
diff --git a/meta-oe/recipes-core/libxml/libxml++_2.42.1.bb b/meta-oe/recipes-core/libxml/libxml++_2.42.1.bb index f75568a1d9..412cc1ac21 100644 --- a/meta-oe/recipes-core/libxml/libxml++_2.42.1.bb +++ b/meta-oe/recipes-core/libxml/libxml++_2.42.1.bb | |||
| @@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 " | |||
| 8 | 8 | ||
| 9 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" | 9 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" |
| 10 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${SHRT_VER}/${BP}.tar.xz \ | 10 | SRC_URI = "${GNOME_MIRROR}/${BPN}/${SHRT_VER}/${BP}.tar.xz \ |
| 11 | file://libxml++_ptest.patch \ | ||
| 12 | file://run-ptest \ | 11 | file://run-ptest \ |
| 13 | " | 12 | " |
| 14 | SRC_URI[sha256sum] = "9b59059abe5545d28ceb388a55e341095f197bd219c73e6623aeb6d801e00be8" | 13 | SRC_URI[sha256sum] = "9b59059abe5545d28ceb388a55e341095f197bd219c73e6623aeb6d801e00be8" |
| @@ -24,10 +23,15 @@ do_configure:prepend() { | |||
| 24 | } | 23 | } |
| 25 | 24 | ||
| 26 | do_compile_ptest() { | 25 | do_compile_ptest() { |
| 27 | oe_runmake -C examples buildtest | 26 | oe_runmake_call -C tests check || true |
| 27 | } | ||
| 28 | |||
| 29 | do_install_ptest() { | ||
| 30 | cd ${B}/tests | ||
| 31 | for t in *; do | ||
| 32 | [ -d $t ] && install -D $t/.libs/test ${D}${PTEST_PATH}/tests/$t | ||
| 33 | done | ||
| 28 | } | 34 | } |
| 29 | 35 | ||
| 30 | FILES:${PN}-doc += "${datadir}/devhelp" | 36 | FILES:${PN}-doc += "${datadir}/devhelp" |
| 31 | FILES:${PN}-dev += "${libdir}/libxml++-2.6/include/libxml++config.h" | 37 | FILES:${PN}-dev += "${libdir}/libxml++-2.6/include/libxml++config.h" |
| 32 | |||
| 33 | RDEPENDS:${PN}-ptest += "make" | ||
