diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-10 13:53:44 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-10 13:53:44 +0000 |
commit | 4e1b3553413ad9c600123f6e3acd1468cf4760cb (patch) | |
tree | 84666ed44ed4b8012fad7dae152685f20693af42 /packages/ltp/ltp-20070228 | |
parent | 6f9a198964d8d694926f780076319591b47afdbd (diff) |
ltp: added 20070228 version of Linux Test Project (based by recipe from CELF)
- package has 23M compressed (can be improved)
Diffstat (limited to 'packages/ltp/ltp-20070228')
-rw-r--r-- | packages/ltp/ltp-20070228/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/ltp/ltp-20070228/cross-compile.patch | 51 | ||||
-rw-r--r-- | packages/ltp/ltp-20070228/ltp-run | 4 | ||||
-rw-r--r-- | packages/ltp/ltp-20070228/runltp-path.patch | 13 |
4 files changed, 68 insertions, 0 deletions
diff --git a/packages/ltp/ltp-20070228/.mtn2git_empty b/packages/ltp/ltp-20070228/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/ltp/ltp-20070228/.mtn2git_empty diff --git a/packages/ltp/ltp-20070228/cross-compile.patch b/packages/ltp/ltp-20070228/cross-compile.patch new file mode 100644 index 0000000000..ae956fd8bf --- /dev/null +++ b/packages/ltp/ltp-20070228/cross-compile.patch @@ -0,0 +1,51 @@ +diff -urN ltp-full-20060615.orig/Makefile ltp-full-20060615/Makefile +--- ltp-full-20060615.orig/Makefile 2006-02-24 10:16:55.000000000 +0800 ++++ ltp-full-20060615/Makefile 2006-07-07 17:10:22.000000000 +0800 +@@ -30,11 +30,12 @@ + endif + ifdef CROSS_COMPILER + CC=$(CROSS_COMPILER)gcc ++CPP=$(CROSS_COMPILER)g++ + AR=$(CROSS_COMPILER)ar + endif + + export CFLAGS += -Wall $(CROSS_CFLAGS) +-export CC AR LDFLAGS ++export CC AR LDFLAGS CPP + + -include config.mk + +diff -urN ltp-full-20060615.orig/testcases/ballista/ballista/Makefile ltp-full-20060615/testcases/ballista/ballista/Makefile +--- ltp-full-20060615.orig/testcases/ballista/ballista/Makefile 2006-02-23 08:33:27.000000000 +0800 ++++ ltp-full-20060615/testcases/ballista/ballista/Makefile 2006-07-07 17:11:29.000000000 +0800 +@@ -24,7 +24,7 @@ + ######################## + + # compiler info for the host +-CC = g++ -Wno-deprecated ++CC = $(CPP) -Wno-deprecated + CFLAGS = -w -O ${TARGET_DEF} + CLIBS = -lpthread -ldl -lnsl -rdynamic + TEST_MAN_FILE = selfHost +diff -urN ltp-full-20060615.orig/testcases/network/nfs/cthon04/tests.init ltp-full-20060615/testcases/network/nfs/cthon04/tests.init +--- ltp-full-20060615.orig/testcases/network/nfs/cthon04/tests.init 2005-09-01 04:27:17.000000000 +0800 ++++ ltp-full-20060615/testcases/network/nfs/cthon04/tests.init 2006-07-07 17:12:28.000000000 +0800 +@@ -73,7 +73,7 @@ + # Tru64 UNIX + # SVR4 + # Linux +-PATH=/bin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/usr/sbin:. ++#PATH=/bin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/usr/sbin:. + + # Use this path for: + # DG/UX +@@ -104,7 +104,9 @@ + # Do not remove the following three lines. They may be overridden by + # other configuration parameters lower in this file, but these three + # variables must be defined. ++ifndef CC + CC=cc ++endif + CFLAGS= + LIBS= + LOCKTESTS=tlock diff --git a/packages/ltp/ltp-20070228/ltp-run b/packages/ltp/ltp-20070228/ltp-run new file mode 100644 index 0000000000..5d97f00532 --- /dev/null +++ b/packages/ltp/ltp-20070228/ltp-run @@ -0,0 +1,4 @@ +#!/bin/sh +/usr/libexec/ltp/runltp -t 180s > /home/root/testlog.txt +echo "Benchmark run finished...." +touch /home/root/testfinished.flag diff --git a/packages/ltp/ltp-20070228/runltp-path.patch b/packages/ltp/ltp-20070228/runltp-path.patch new file mode 100644 index 0000000000..dfbbf353ec --- /dev/null +++ b/packages/ltp/ltp-20070228/runltp-path.patch @@ -0,0 +1,13 @@ +Index: runltp +=================================================================== +--- ltp-full-20060412.orig/runltp 2005-03-12 03:26:14.000000000 +0800 ++++ ltp-full-20060412/runltp 2006-04-26 16:42:13.000000000 +0800 +@@ -43,7 +43,7 @@ + echo "FATAL: unable to change directory to $(dirname $0)" + exit 1 + } +- export LTPROOT=${PWD} ++ export LTPROOT=/usr/libexec/ltp + export TMPBASE="/tmp" + export TMP="${TMPBASE}/ltp-$$" + export PATH="${PATH}:${LTPROOT}/testcases/bin" |