From 2e4c80b695efdf3b9d48758f0ee0a05c95cb371e Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Tue, 10 Nov 2015 10:54:05 +0100 Subject: elfutils: add ptest Add Enea Specific ptest Signed-off-by: Tudor Florea Signed-off-by: Adrian Dudau --- recipes-devtools/elfutils/elfutils/add-ptest.patch | 23 ++++++++++++++++++++++ .../elfutils/elfutils/avoid_parallel_tests.patch | 20 +++++++++++++++++++ recipes-devtools/elfutils/elfutils/run-ptest | 3 +++ recipes-devtools/elfutils/elfutils_0.148.bbappend | 19 ++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 recipes-devtools/elfutils/elfutils/add-ptest.patch create mode 100644 recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch create mode 100644 recipes-devtools/elfutils/elfutils/run-ptest create mode 100644 recipes-devtools/elfutils/elfutils_0.148.bbappend (limited to 'recipes-devtools') diff --git a/recipes-devtools/elfutils/elfutils/add-ptest.patch b/recipes-devtools/elfutils/elfutils/add-ptest.patch new file mode 100644 index 0000000..88f808d --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/add-ptest.patch @@ -0,0 +1,23 @@ +Add 'install-ptest' rule. + +Signed-off-by: Mihaela Sendrea +Upstream-status: Pending +--- +diff -uNr a/tests/Makefile.am b/tests/Makefile.am +--- a/tests/Makefile.am 2013-08-19 14:05:23.256292155 +0200 ++++ b/tests/Makefile.am 2013-08-19 15:49:16.084543591 +0200 +@@ -240,3 +240,14 @@ + coverage: + -$(srcdir)/coverage.sh + endif ++ ++install-ptest: ++ @$(MKDIR_P) $(DESTDIR)/tests ++ @$(MKDIR_P) $(DESTDIR)/src ++ @install $(builddir)/*$(EXEEXT) $(DESTDIR)/tests ++ @install $(srcdir)/*.sh $(DESTDIR)/tests ++ @install $(builddir)/../src/*$(EXEEXT) $(DESTDIR)/src ++ @cp $(builddir)/../Makefile $(DESTDIR) ++ @sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/tests/Makefile ++ @sed -i -e 's|$(srcdir)|.|' $(DESTDIR)/tests/Makefile ++ diff --git a/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch b/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch new file mode 100644 index 0000000..ed6b6ef --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/avoid_parallel_tests.patch @@ -0,0 +1,20 @@ +ptest needs buildtest-TESTS and runtest-TESTS targets. +serial-tests is required to generate those targets. + +Signed-off-by: Alexandra Safta +Signed-off-by: Tudor Florea +Upstream-Status: Inappropriate + +diff -ruN a/configure.ac b/configure.ac + +--- a/configure.ac 2014-05-26 18:55:11.843190780 +0200 ++++ b/configure.ac 2014-05-26 18:56:01.725097919 +0200 +@@ -25,7 +25,7 @@ + AC_PREREQ(2.63) dnl Minimum Autoconf version required. + + dnl We use GNU make extensions; automake 1.10 defaults to -Wportability. +-AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip]) ++AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip serial-tests]) + AM_MAINTAINER_MODE + + dnl Unique ID for this build. diff --git a/recipes-devtools/elfutils/elfutils/run-ptest b/recipes-devtools/elfutils/elfutils/run-ptest new file mode 100644 index 0000000..51ea6df --- /dev/null +++ b/recipes-devtools/elfutils/elfutils/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +make -C tests -k runtest-TESTS diff --git a/recipes-devtools/elfutils/elfutils_0.148.bbappend b/recipes-devtools/elfutils/elfutils_0.148.bbappend new file mode 100644 index 0000000..704829a --- /dev/null +++ b/recipes-devtools/elfutils/elfutils_0.148.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "\ + file://add-ptest.patch \ + file://run-ptest \ + file://avoid_parallel_tests.patch \ +" + +inherit ptest + +do_compile_ptest() { + oe_runmake -C tests buildtest-TESTS +} + +do_install_ptest() { + oe_runmake -C tests install-ptest DESTDIR=${D}${PTEST_PATH} +} + +RDEPENDS_${PN}-ptest += " bash" -- cgit v1.2.3-54-g00ecf