[oe-commits] org.oe.dev ltp: added 20070228 version of Linux Test Project (based by recipe from CELF)
hrw commit
openembedded-commits at lists.openembedded.org
Sat Mar 10 13:57:11 UTC 2007
ltp: added 20070228 version of Linux Test Project (based by recipe from CELF)
- package has 23M compressed (can be improved)
Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: f8540a79cd78aeb651dc7a856ea324e6a8612b4c
ViewMTN: http://monotone.openembedded.org/revision.psp?id=f8540a79cd78aeb651dc7a856ea324e6a8612b4c
Files:
1
packages/ltp
packages/ltp/ltp-20070228
packages/ltp/ltp-20070228/cross-compile.patch
packages/ltp/ltp-20070228/ltp-run
packages/ltp/ltp-20070228/runltp-path.patch
packages/ltp/ltp_20070228.bb
Diffs:
#
# mt diff -r9080aeaf22159dec40b83350bca564db5767774f -rf8540a79cd78aeb651dc7a856ea324e6a8612b4c
#
#
#
# add_dir "packages/ltp"
#
# add_dir "packages/ltp/ltp-20070228"
#
# add_file "packages/ltp/ltp-20070228/cross-compile.patch"
# content [200195d52517f9206192774fad77d4849eaf5562]
#
# add_file "packages/ltp/ltp-20070228/ltp-run"
# content [92ccd86130ecd17d5e4b78cf161ed64069e14639]
#
# add_file "packages/ltp/ltp-20070228/runltp-path.patch"
# content [05229a3d38d01cb102e5d9c2479b7e3c3c6e244c]
#
# add_file "packages/ltp/ltp_20070228.bb"
# content [fc43dde8db9b755702eb0a2da8a3b1f1cae40b5d]
#
============================================================
--- packages/ltp/ltp-20070228/cross-compile.patch 200195d52517f9206192774fad77d4849eaf5562
+++ packages/ltp/ltp-20070228/cross-compile.patch 200195d52517f9206192774fad77d4849eaf5562
@@ -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
============================================================
--- packages/ltp/ltp-20070228/ltp-run 92ccd86130ecd17d5e4b78cf161ed64069e14639
+++ packages/ltp/ltp-20070228/ltp-run 92ccd86130ecd17d5e4b78cf161ed64069e14639
@@ -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
============================================================
--- packages/ltp/ltp-20070228/runltp-path.patch 05229a3d38d01cb102e5d9c2479b7e3c3c6e244c
+++ packages/ltp/ltp-20070228/runltp-path.patch 05229a3d38d01cb102e5d9c2479b7e3c3c6e244c
@@ -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"
============================================================
--- packages/ltp/ltp_20070228.bb fc43dde8db9b755702eb0a2da8a3b1f1cae40b5d
+++ packages/ltp/ltp_20070228.bb fc43dde8db9b755702eb0a2da8a3b1f1cae40b5d
@@ -0,0 +1,42 @@
+DESCRIPTION = "Linux Test Project"
+HOMEPAGE = "http://ltp.sourceforge.net"
+LICENSE = "GPL"
+SECTION = "console/utils"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.tgz \
+ file://cross-compile.patch;patch=1 \
+ file://runltp-path.patch;patch=1 \
+ file://ltp-run"
+
+S = "${WORKDIR}/ltp-full-${PV}"
+
+EXTRA_OEMAKE_append = " CROSS_COMPILE=${HOST_PREFIX}"
+
+do_compile(){
+ oe_runmake CROSS_COMPILE=${HOST_PREFIX}
+}
+
+do_install(){
+ export CREATE=0
+ export LTPROOT=${D}/usr/libexec/ltp/testcases
+
+ oe_runmake install
+
+ install -d ${D}/usr/libexec/ltp/testcases
+ install -d ${D}/usr/libexec/ltp/pan
+
+ #install testcases
+ #install -m 0755 ${WORKDIR}/testcases ${D}/usr/libexec/ltp/testcases
+ #install -m 0755 ${WORKDIR}/testcases ${D}/usr/libexec/ltp/
+
+ # treecopy testcases pan/pan runtest ver_linux IDcheck.sh \
+ # ${D}/usr/libexec/ltp
+ cp testcases ${D}/usr/libexec/ltp/ -rfp
+ rm ${D}/usr/libexec/ltp/ballista -rf
+ cp pan/pan ${D}/usr/libexec/ltp/pan -p
+ cp runtest ${D}/usr/libexec/ltp/ -rfp
+ cp ver_linux ${D}/usr/libexec/ltp/ -p
+ cp runltp ${D}/usr/libexec/ltp/ -p
+ cp IDcheck.sh ${D}/usr/libexec/ltp/ -p
+}
+
More information about the Openembedded-commits
mailing list