ltp-testsuite: update to latest, fix uClibc-ng issues
PATCH 1/1 ltp-testsuite: update to latest, fix uClibc-ng issues
Update to latest ltp-testsuite release, which resolves sparc64/sparc autobuild failures:
http://autobuild.buildroot.net/results/a6445df26514dfa9cd7e5b9d34b4687d46a8d19b/
Furthermore it should fix any other uClibc-ng related issues. 0001-fix-build-on-uClibc-exp10.patch removed, as uClibc-ng 1.0.12 contains exp10() implementation. 0001-fix-uClibc-build.patch suggested upstream.
---
The other patches will be suggested upstream after review from buildroot community or any autobuilder failure free time for this package. I tested for Qemu-MIPS, Qemu-SH, Qemu-SPARC, Qemu-SPARC64.
--- .../0001-fix-build-on-uClibc-exp10.patch | 22 ---- package/ltp-testsuite/0001-fix-uClibc-build.patch | 51 ++++++++ .../0003-disable-profil-on-uClibc.patch | 27 +++++ .../0004-disable-ustat-on-uClibc.patch | 70 +++++++++++ package/ltp-testsuite/0005-rpc-fix-uClibc.patch | 125 ++++++++++++++++++++ package/ltp-testsuite/ltp-testsuite.hash | 8 +- package/ltp-testsuite/ltp-testsuite.mk | 13 +- 7 files changed, 289 insertions(+), 27 deletions(-) delete mode 100644 package/ltp-testsuite/0001-fix-build-on-uClibc-exp10.patch create mode 100644 package/ltp-testsuite/0001-fix-uClibc-build.patch create mode 100644 package/ltp-testsuite/0003-disable-profil-on-uClibc.patch create mode 100644 package/ltp-testsuite/0004-disable-ustat-on-uClibc.patch create mode 100644 package/ltp-testsuite/0005-rpc-fix-uClibc.patch
package/ltp-testsuite/0001-fix-build-on-uClibc-exp10.patch deleted +0 -22
@@ -1,22 +0,0 @@ -Inspired by: http://peter.korsgaard.com/patches/alsa-utils/alsamixer-fix-build-on-uClibc-exp10.patch - -exp10 extension is not part of uClibc, so compute it. - - -Signed-off-by: Samuel Martin <[email protected]> - -diff -purN ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c ltp-testsuite-20101031/testcases/realtime/lib/libstats.c ---- ltp-testsuite-20101031.orig/testcases/realtime/lib/libstats.c 2012-10-22 23:19:02.306646174 +0200 -+++ ltp-testsuite-20101031/testcases/realtime/lib/libstats.c 2012-10-22 23:25:41.554847766 +0200 -@@ -46,6 +46,11 @@ - #include <libstats.h> - #include <librttest.h> - -+#ifdef __UCLIBC__ -+/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */ -+#define exp10(x) (exp((x) * log(10))) -+#endif /* __UCLIBC__ */ -+ - int save_stats = 0; - - /* static helper functions */
package/ltp-testsuite/0001-fix-uClibc-build.patch new file +51 -0
51 lines not on this page · raw message
package/ltp-testsuite/0003-disable-profil-on-uClibc.patch new file +27 -0
@@ -0,0 +1,27 @@ +uClibc-ng has no profil() support + +Signed-off-by: Waldemar Brodkorb <[email protected]> + +diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/profil/profil01.c ltp-full-20160126/testcases/kernel/syscalls/profil/profil01.c +--- ltp-full-20160126.orig/testcases/kernel/syscalls/profil/profil01.c 2016-01-26 13:35:25.000000000 +0100 ++++ ltp-full-20160126/testcases/kernel/syscalls/profil/profil01.c 2016-03-05 01:00:07.328962536 +0100 +@@ -37,6 +37,9 @@ + #define PROFIL_BUFLEN (32*1024) + + char *TCID = "profil01"; ++ ++#if !defined(__UCLIBC__) ++ + int TST_TOTAL = 1; + + static volatile sig_atomic_t profil_done; +@@ -124,3 +127,9 @@ + + tst_exit(); + } ++#else /* systems that dont support profil */ ++int main(void) ++{ ++ tst_brkm(TCONF, NULL, "system doesn't have profil support"); ++} ++#endif
package/ltp-testsuite/0004-disable-ustat-on-uClibc.patch new file +70 -0
70 lines not on this page · raw message
package/ltp-testsuite/0005-rpc-fix-uClibc.patch new file +125 -0
125 lines not on this page · raw message
package/ltp-testsuite/ltp-testsuite.hash +4 -4
@@ -1,4 +1,4 @@ -# From: https://github.com/linux-test-project/ltp/releases/download/20150903/ltp-full-20150903.tar.xz.md5 -md5 4ee849923b69f79b5208e71f3ed20484 ltp-full-20150903.tar.xz -# From: https://github.com/linux-test-project/ltp/releases/download/20150903/ltp-full-20150903.tar.xz.sha1 -sha1 d39bb3a41bfd1fd584703cf066fb2e935af0c00a ltp-full-20150903.tar.xz +# From: https://github.com/linux-test-project/ltp/releases/download/20160126/ltp-full-20160126.tar.xz.md5 +md5 fc3b7411cdf17b2608e26c05d36fc26a ltp-full-20160126.tar.xz +# From: https://github.com/linux-test-project/ltp/releases/download/20160126/ltp-full-20160126.tar.xz.sha1 +sha1 a39c9b05edb942cde23a1f7fa08289a5e427fa04 ltp-full-20160126.tar.xz
package/ltp-testsuite/ltp-testsuite.mk +12 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LTP_TESTSUITE_VERSION = 20150903 +LTP_TESTSUITE_VERSION = 20160126 LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION) LTP_TESTSUITE_LICENSE = GPLv2, GPLv2+
@@ -38,4 +38,15 @@ LTP_TESTSUITE_CONF_ENV += \ LIBS="$(LTP_TESTSUITE_LIBS)" \ SYSROOT="$(STAGING_DIR)" +# Requires uClibc fts and bessel support, normally not enabled +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) +define LTP_TESTSUITE_REMOVE_UNSUPPORTED + rm -rf $(@D)/testcases/kernel/controllers/cpuset/ + rm -rf $(@D)/testcases/misc/math/float/bessel/ + rm -f $(@D)/testcases/misc/math/float/float_bessel.c +endef +LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_UNSUPPORTED +endif + + $(eval $(autotools-package))
Signature · 1 line
1.7.10.4
Thomas Petazzoni
AppliedPATCH 1/1 ltp-testsuite: update to latest, fix uClibc-ng issues
Dear Waldemar Brodkorb,
Quoted 9 lines · Waldemar Brodkorb
Update to latest ltp-testsuite release, which resolves sparc64/sparc autobuild failures:
http://autobuild.buildroot.net/results/a6445df26514dfa9cd7e5b9d34b4687d46a8d19b/Furthermore it should fix any other uClibc-ng related issues. 0001-fix-build-on-uClibc-exp10.patch removed, as uClibc-ng 1.0.12 contains
exp10()implementation. 0001-fix-uClibc-build.patch suggested upstream.
Quoted 5 lines
Signed-off-by Waldemar Brodkorb <[email protected]>---
The other patches will be suggested upstream after review from buildroot community or any autobuilder failure free time for this package. I tested for Qemu-MIPS, Qemu-SH, Qemu-SPARC, Qemu-SPARC64.
Applied to master, thanks!
Indeed, please submit your patches upstream. Also, next time, when the project is hosted on a Git repository upstream, we really, really prefer to have Git formatted patches.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com