summaryrefslogtreecommitdiff
path: root/package/ltp
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/ltp
Initial import
Diffstat (limited to 'package/ltp')
-rw-r--r--package/ltp/Config.in16
-rw-r--r--package/ltp/Makefile30
-rw-r--r--package/ltp/ipkg/ltp.control4
-rw-r--r--package/ltp/patches/patch-Makefile20
-rw-r--r--package/ltp/patches/patch-runltp22
-rw-r--r--package/ltp/patches/patch-testcases_kernel_syscalls_Makefile13
-rw-r--r--package/ltp/patches/patch-testcases_misc_math_Makefile10
-rw-r--r--package/ltp/patches/patch-testcases_misc_math_float_Makefile18
8 files changed, 133 insertions, 0 deletions
diff --git a/package/ltp/Config.in b/package/ltp/Config.in
new file mode 100644
index 000000000..5833e8092
--- /dev/null
+++ b/package/ltp/Config.in
@@ -0,0 +1,16 @@
+config ADK_PACKAGE_LTP
+ prompt "ltp............................... The Linux Test Project Suite (BEWARE: HUGE!!)"
+ tristate
+ default n
+ help
+ The Linux Test Project is a joint project started by SGI and
+ maintained by IBM, that has a goal to deliver test suites to
+ the open source community that validate the reliability,
+ robustness, and stability of Linux. The LTP testsuite contains
+ a collection of tools for testing the Linux kernel and related
+ features.
+
+ BEWARE: this is a very huge package, and therefore merely usable
+ from an embedded system. It will consume about 150MB!
+
+ http://ltp.sourceforge.net/
diff --git a/package/ltp/Makefile b/package/ltp/Makefile
new file mode 100644
index 000000000..f803bfeee
--- /dev/null
+++ b/package/ltp/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= ltp-full
+PKG_VERSION:= 20061121
+PKG_RELEASE:= 2
+PKG_MD5SUM:= f01dd2119c5d4462e876229df394ecbf
+MASTER_SITES:= http://switch.dl.sourceforge.net/sourceforge/ltp/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LTP,ltp,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+XAKE_FLAGS+= CROSS_COMPILER="${TARGET_CROSS}" \
+ CROSS_CFLAGS="${TCFLAGS} -I${WRKBUILD}/include" \
+ CPPFLAGS="${TCPPFLAGS}" \
+ LDFLAGS="${TLDFLAGS}"
+
+post-install:
+ ${CP} ${WRKBUILD} ${IDIR_LTP}
+ find ${IDIR_LTP} \( -name '*.c' -o -name '*.h' -o -name '*.o' \) -exec rm '{}' \;
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/ltp/ipkg/ltp.control b/package/ltp/ipkg/ltp.control
new file mode 100644
index 000000000..24960d811
--- /dev/null
+++ b/package/ltp/ipkg/ltp.control
@@ -0,0 +1,4 @@
+Package: ltp
+Priority: optional
+Section: utilities
+Description: the Linux Test Project Suite (full)
diff --git a/package/ltp/patches/patch-Makefile b/package/ltp/patches/patch-Makefile
new file mode 100644
index 000000000..a7f4d050d
--- /dev/null
+++ b/package/ltp/patches/patch-Makefile
@@ -0,0 +1,20 @@
+$Id$
+Installation as root is never done anyway, so remove this crap
+--- ltp-full-20061121.orig/Makefile 2006-11-21 21:31:20.000000000 +0100
++++ ltp-full-20061121/Makefile 2006-12-06 12:08:02.000000000 +0100
+@@ -44,15 +44,10 @@ all: libltp.a
+ @$(MAKE) -C pan $@
+ @$(MAKE) -C testcases $@
+ @$(MAKE) -C tools $@
+- @echo
+- @echo "***********************************************"
+- @echo "** You now need to do a make install as root **"
+- @echo "***********************************************"
+
+ install: all
+ @$(MAKE) -C testcases install
+ @$(MAKE) -C tools install
+- @./IDcheck.sh
+
+ libltp.a:
+ @$(MAKE) -C lib $@
diff --git a/package/ltp/patches/patch-runltp b/package/ltp/patches/patch-runltp
new file mode 100644
index 000000000..342a454d4
--- /dev/null
+++ b/package/ltp/patches/patch-runltp
@@ -0,0 +1,22 @@
+$Id$
+ash does not understand the test '-a' (test for bare existence)
+--- ltp-full-20061121.orig/runltp 2006-11-21 21:31:20.000000000 +0100
++++ ltp-full-20061121/runltp 2006-12-06 13:22:14.000000000 +0100
+@@ -285,7 +285,7 @@ main()
+ ${LTPROOT}/runtest/sched ${LTPROOT}/runtest/math \
+ ${LTPROOT}/runtest/nptl ${LTPROOT}/runtest/pty
+ do
+- [ -a "$SCENFILES" ] || \
++ [ -e "$SCENFILES" ] || \
+ {
+ echo "FATAL: missing scenario file $SCENFILES"
+ exit 1
+@@ -319,7 +319,7 @@ main()
+ ${LTPROOT}/runtest/rpc \
+ ${LTPROOT}/runtest/nfs
+ do
+- [ -a "$SCENFILES" ] || \
++ [ -e "$SCENFILES" ] || \
+ {
+ echo "FATAL: missing scenario file $SCENFILES"
+ exit 1
diff --git a/package/ltp/patches/patch-testcases_kernel_syscalls_Makefile b/package/ltp/patches/patch-testcases_kernel_syscalls_Makefile
new file mode 100644
index 000000000..a90351258
--- /dev/null
+++ b/package/ltp/patches/patch-testcases_kernel_syscalls_Makefile
@@ -0,0 +1,13 @@
+$Id$
+excluded pselect for now, as there is no support for it in kernel-2.4
+--- ltp-full-20061121.orig/testcases/kernel/syscalls/Makefile 2006-11-21 21:31:28.000000000 +0100
++++ ltp-full-20061121/testcases/kernel/syscalls/Makefile 2006-12-06 11:24:39.000000000 +0100
+@@ -25,7 +25,7 @@ EXCLUDE_DIR=epoll
+ #
+ # Commented this out since there are directories here we don't want built by default
+ #
+-SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -v epoll`
++SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^epoll|pselect"`
+ UCLINUX_SUBDIR = `ls */Makefile | sed "s/Makefile//g" | grep -vE "^fork|epoll|capget|capset|chmod|chown|llseek|nftw|clone|profil|getcontext"`
+
+ all:
diff --git a/package/ltp/patches/patch-testcases_misc_math_Makefile b/package/ltp/patches/patch-testcases_misc_math_Makefile
new file mode 100644
index 000000000..ce705b2b3
--- /dev/null
+++ b/package/ltp/patches/patch-testcases_misc_math_Makefile
@@ -0,0 +1,10 @@
+$Id$
+excluding nextafter, does not build (strange macro is missing)
+--- ltp-full-20061121.orig/testcases/misc/math/Makefile 2006-11-21 21:31:27.000000000 +0100
++++ ltp-full-20061121/testcases/misc/math/Makefile 2006-12-06 11:54:56.000000000 +0100
+@@ -1,4 +1,4 @@
+-SUBDIRS = abs atof float fptests nextafter
++SUBDIRS = abs atof float fptests
+
+ all:
+ @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
diff --git a/package/ltp/patches/patch-testcases_misc_math_float_Makefile b/package/ltp/patches/patch-testcases_misc_math_float_Makefile
new file mode 100644
index 000000000..4b9c41422
--- /dev/null
+++ b/package/ltp/patches/patch-testcases_misc_math_float_Makefile
@@ -0,0 +1,18 @@
+$Id$
+Excluded bessel tests as they do not compile.
+FIXME: needs some asm rework perhaps.
+--- ltp-full-20061121.orig/testcases/misc/math/float/Makefile 2006-11-21 21:31:27.000000000 +0100
++++ ltp-full-20061121/testcases/misc/math/float/Makefile 2006-12-06 11:31:45.000000000 +0100
+@@ -1,10 +1,10 @@
+ CFLAGS+= -I../../../../include -Wall -g
+ LOADLIBES+= -lpthread -lm -L../../../../lib -lltp
+
+-SRCS=$(wildcard float*.c)
++SRCS=$(patsubst float_bessel.c,,$(wildcard float*.c))
+ TARGETS=$(patsubst %.c,%,$(SRCS))
+
+-SUBDIRS=bessel exp_log iperb power trigo
++SUBDIRS=exp_log iperb power trigo
+
+ all: $(TARGETS)
+ @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done