diff options
Diffstat (limited to 'package/ltp')
-rw-r--r-- | package/ltp/Makefile | 39 | ||||
-rw-r--r-- | package/ltp/patches/patch-runtest_sched | 13 | ||||
-rw-r--r-- | package/ltp/patches/patch-testcases_realtime_lib_libstats_c | 16 |
3 files changed, 68 insertions, 0 deletions
diff --git a/package/ltp/Makefile b/package/ltp/Makefile new file mode 100644 index 000000000..4303da72f --- /dev/null +++ b/package/ltp/Makefile @@ -0,0 +1,39 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= ltp +PKG_VERSION:= 20140422 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 6a98074e9121595ccb78951ebfeb698f +PKG_DESCR:= linux test project +PKG_BUILDDEP:= libtirpc +PKG_DEPENDS:= bash libtirpc libpthread librt +PKG_DEPENDS+= mke2fs +PKG_SECTION:= sys/misc +PKG_URL:= http://linux-test-project.github.io +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ltp/} +PKG_NOPARALLEL:= 1 + +DISTFILES:= ${PKG_NAME}-full-${PKG_VERSION}.tar.xz +WRKDIST= ${WRKDIR}/${PKG_NAME}-full-${PKG_VERSION} + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,LTP,ltp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc +TARGET_LDFLAGS+= -ltirpc +CONFIGURE_ARGS+= --with-open-posix-testsuite \ + --with-realtime-testsuite \ + --without-power-management-testsuite \ + --without-python \ + --without-perl \ + --without-expect + +ltp-install: + $(INSTALL_DIR) $(IDIR_LTP)/opt/ltp + $(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ltp/patches/patch-runtest_sched b/package/ltp/patches/patch-runtest_sched new file mode 100644 index 000000000..a157cb0af --- /dev/null +++ b/package/ltp/patches/patch-runtest_sched @@ -0,0 +1,13 @@ +--- ltp-full-20140422.orig/runtest/sched 2014-04-23 10:36:54.000000000 +0200 ++++ ltp-full-20140422/runtest/sched 2014-06-27 15:02:00.941026480 +0200 +@@ -6,8 +6,8 @@ pth_str03 pth_str03 + time-schedule01 time-schedule + trace_sched01 trace_sched -c 1 + +-hackbench01 hackbench 50 process 1000 +-hackbench02 hackbench 20 thread 1000 ++hackbench01 hackbench 50 process 500 ++hackbench02 hackbench 20 thread 500 + + sched_cli_serv run_sched_cliserv.sh + # Run this stress test for 2 minutes diff --git a/package/ltp/patches/patch-testcases_realtime_lib_libstats_c b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c new file mode 100644 index 000000000..d35130dc4 --- /dev/null +++ b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c @@ -0,0 +1,16 @@ +from buildroot + +--- ltp-full-20140422.orig/testcases/realtime/lib/libstats.c 2014-04-23 10:37:00.000000000 +0200 ++++ ltp-full-20140422/testcases/realtime/lib/libstats.c 2014-06-27 10:55:59.401744516 +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 */ |