Browse Source

update ltp to latest stable upstream

Waldemar Brodkorb 11 years ago
parent
commit
8e5a14b847

+ 11 - 5
package/ltp/Makefile

@@ -4,12 +4,11 @@
 include $(ADK_TOPDIR)/rules.mk
 include $(ADK_TOPDIR)/rules.mk
 
 
 PKG_NAME:=		ltp
 PKG_NAME:=		ltp
-PKG_VERSION:=		20140422
+PKG_VERSION:=		20140828
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
 PKG_MD5SUM:=		6a98074e9121595ccb78951ebfeb698f
 PKG_MD5SUM:=		6a98074e9121595ccb78951ebfeb698f
 PKG_DESCR:=		linux test project
 PKG_DESCR:=		linux test project
-PKG_BUILDDEP:=		libtirpc
-PKG_DEPENDS:=		bash libtirpc libpthread librt
+PKG_DEPENDS:=		bash libpthread librt
 PKG_DEPENDS+=		mke2fs mkfs
 PKG_DEPENDS+=		mke2fs mkfs
 PKG_SECTION:=		sys/misc
 PKG_SECTION:=		sys/misc
 PKG_URL:=		http://linux-test-project.github.io
 PKG_URL:=		http://linux-test-project.github.io
@@ -23,8 +22,8 @@ include $(ADK_TOPDIR)/mk/package.mk
 
 
 $(eval $(call PKG_template,LTP,ltp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 $(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
+TARGET_CFLAGS+=		-fno-builtin
+XAKE_FLAGS+=		GCC_HONOUR_COPTS=s
 CONFIGURE_ARGS+=	--with-open-posix-testsuite \
 CONFIGURE_ARGS+=	--with-open-posix-testsuite \
 			--with-realtime-testsuite \
 			--with-realtime-testsuite \
 			--without-power-management-testsuite \
 			--without-power-management-testsuite \
@@ -32,6 +31,13 @@ CONFIGURE_ARGS+=	--with-open-posix-testsuite \
 			--without-perl \
 			--without-perl \
 			--without-expect
 			--without-expect
 
 
+# bessel float version not implemented in uClibc
+pre-build:
+	-rm ${WRKBUILD}/testcases/misc/math/float/float_bessel.c
+	-rm -rf ${WRKBUILD}/testcases/misc/math/float/bessel
+	-rm -rf ${WRKBUILD}/testcases/network/{rpc,nfs*} 
+	-rm -rf ${WRKBUILD}/testcases/kernel/syscalls/profil
+
 ltp-install:
 ltp-install:
 	$(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
 	$(INSTALL_DIR) $(IDIR_LTP)/opt/ltp/tmp
 	$(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp
 	$(CP) $(WRKINST)/usr/* $(IDIR_LTP)/opt/ltp

+ 3 - 3
package/ltp/patches/patch-runltp

@@ -1,5 +1,5 @@
---- ltp-full-20140422.orig/runltp	2014-04-23 10:37:31.000000000 +0200
-+++ ltp-full-20140422/runltp	2014-07-10 23:23:28.476220215 +0200
+--- ltp-full-20140828.orig/runltp	2014-08-28 12:11:45.000000000 +0200
++++ ltp-full-20140828/runltp	2014-09-01 13:55:06.540554810 +0200
 @@ -77,7 +77,7 @@ setup()
 @@ -77,7 +77,7 @@ setup()
          exit 1
          exit 1
      }
      }
@@ -9,7 +9,7 @@
      export PATH="${PATH}:${LTPROOT}/testcases/bin"
      export PATH="${PATH}:${LTPROOT}/testcases/bin"
  
  
      export LTP_DEV=""
      export LTP_DEV=""
-@@ -671,11 +671,11 @@ main()
+@@ -669,11 +669,11 @@ main()
      fi
      fi
  
  
      # check for required users and groups
      # check for required users and groups

+ 3 - 3
package/ltp/patches/patch-runtest_mm

@@ -1,6 +1,6 @@
---- ltp-full-20140422.orig/runtest/mm	2014-04-23 10:36:54.000000000 +0200
-+++ ltp-full-20140422/runtest/mm	2014-07-07 18:30:02.953473699 +0200
-@@ -110,4 +110,4 @@ overcommit_memory06 overcommit_memory -R
+--- ltp-full-20140828.orig/runtest/mm	2014-08-28 12:11:45.000000000 +0200
++++ ltp-full-20140828/runtest/mm	2014-09-01 13:55:06.548554854 +0200
+@@ -107,4 +107,4 @@ overcommit_memory06 overcommit_memory -R
  
  
  max_map_count max_map_count -i 10
  max_map_count max_map_count -i 10
  
  

+ 3 - 3
package/ltp/patches/patch-runtest_syscalls

@@ -1,6 +1,6 @@
---- ltp-full-20140422.orig/runtest/syscalls	2014-04-23 10:36:54.000000000 +0200
-+++ ltp-full-20140422/runtest/syscalls	2014-07-07 16:47:09.356685909 +0200
-@@ -283,7 +283,7 @@ fork08 fork08
+--- ltp-full-20140828.orig/runtest/syscalls	2014-08-28 12:11:45.000000000 +0200
++++ ltp-full-20140828/runtest/syscalls	2014-09-01 13:55:06.556554900 +0200
+@@ -281,7 +281,7 @@ fork08 fork08
  fork09 fork09
  fork09 fork09
  fork10 fork10
  fork10 fork10
  fork11 fork11
  fork11 fork11

+ 4 - 4
package/ltp/patches/patch-testcases_kernel_Makefile

@@ -1,7 +1,7 @@
---- ltp-full-20140422.orig/testcases/kernel/Makefile	2014-04-23 10:36:54.000000000 +0200
-+++ ltp-full-20140422/testcases/kernel/Makefile	2014-07-22 15:57:17.210496497 +0200
-@@ -50,7 +50,6 @@ SUBDIRS			+= connectors \
- 			   performance_counters \
+--- ltp-full-20140828.orig/testcases/kernel/Makefile	2014-08-28 12:11:45.000000000 +0200
++++ ltp-full-20140828/testcases/kernel/Makefile	2014-09-01 13:55:06.564554944 +0200
+@@ -49,7 +49,6 @@ SUBDIRS			+= connectors \
+ 			   numa \
  			   pty \
  			   pty \
  			   sched \
  			   sched \
 -			   security \
 -			   security \

+ 0 - 16
package/ltp/patches/patch-testcases_realtime_lib_libstats_c

@@ -1,16 +0,0 @@
-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 */

+ 1 - 1
target/sparc/uclibc.config

@@ -212,7 +212,7 @@ UCLIBC_HAS_FNMATCH=y
 UCLIBC_HAS_WORDEXP=y
 UCLIBC_HAS_WORDEXP=y
 UCLIBC_HAS_NFTW=y
 UCLIBC_HAS_NFTW=y
 UCLIBC_HAS_FTW=y
 UCLIBC_HAS_FTW=y
-# UCLIBC_HAS_FTS is not set
+UCLIBC_HAS_FTS=y
 UCLIBC_HAS_GLOB=y
 UCLIBC_HAS_GLOB=y
 UCLIBC_HAS_GNU_GLOB=y
 UCLIBC_HAS_GNU_GLOB=y
 UCLIBC_HAS_UTMPX=y
 UCLIBC_HAS_UTMPX=y