diff options
-rw-r--r-- | app-benchmarks/ltp/ChangeLog | 12 | ||||
-rw-r--r-- | app-benchmarks/ltp/Manifest | 32 | ||||
-rw-r--r-- | app-benchmarks/ltp/files/runltp-path.patch | 198 | ||||
-rw-r--r-- | app-benchmarks/ltp/ltp-20090131.ebuild | 91 | ||||
-rw-r--r-- | app-benchmarks/ltp/ltp-20100131.ebuild | 91 | ||||
-rw-r--r-- | app-benchmarks/ltp/ltp-20120903.ebuild | 90 | ||||
-rw-r--r-- | app-benchmarks/ltp/metadata.xml | 10 |
7 files changed, 325 insertions, 199 deletions
diff --git a/app-benchmarks/ltp/ChangeLog b/app-benchmarks/ltp/ChangeLog index b9aa828ae025..6e9b9177f632 100644 --- a/app-benchmarks/ltp/ChangeLog +++ b/app-benchmarks/ltp/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-benchmarks/ltp -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.19 2010/11/10 19:12:57 patrick Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.20 2012/11/03 18:58:32 hwoarang Exp $ + +*ltp-20120903 (03 Nov 2012) + + 03 Nov 2012; Markos Chandras <hwoarang@gentoo.org> +ltp-20120903.ebuild, + -ltp-20090131.ebuild, -ltp-20100131.ebuild, files/runltp-path.patch, + metadata.xml: + Version bump. Clean up ebuild. Remove old. Take maintainership 10 Nov 2010; Patrick Lauer <patrick@gentoo.org> ltp-20100131.ebuild: Make repoman happy @@ -72,4 +79,3 @@ +ltp-20041104.ebuild: Initial import as per bug #13662. Ebuild and patches by Marien Zwart <m_zwart@123mail.org> - diff --git a/app-benchmarks/ltp/Manifest b/app-benchmarks/ltp/Manifest index 7f3c44f16c67..51e003e2c8b2 100644 --- a/app-benchmarks/ltp/Manifest +++ b/app-benchmarks/ltp/Manifest @@ -1,7 +1,25 @@ -AUX runltp-path.patch 387 SHA256 860244ca0f053cf6293174d5c118ce5bf7a0912669e96b080c13d2447eae5e75 SHA512 3e038ff8e05d83da3f7543922d675b73ee3f8185d2fe6f6198cefca7c412efb8566189c94fd219976e66df2fe8876f77ab8fac81d90e24e75833565f180b36f8 WHIRLPOOL a7574963154c045609cef032e6ed55b5ceab412f748df0c98ca61cc1e6f0e29d1896bb89046ada67627377be138e3b1e32c328e3ffc088c8de9f1d445e3d1cc0 -DIST ltp-full-20090131.tgz 9850983 SHA256 5fa4353d826b719cc313e370dd8f4ab0793432e4d797a96cb5bb01e078ff1e10 SHA512 79271c247ac4f46aff40269500f4aba7580f6d22aeed154cd36896d9f8ddee47c67a1fc7ac25043f05d85467b7f8f72452f2f68cd45aeb65bd5e737fd0a95587 WHIRLPOOL f16293d7af587a19299a2939979ef16f8e852008f5005f70267283ac52e468913a2e4e0b981ca24d07d1330764920f5f49a46839a85d524d60162f3f416927e5 -DIST ltp-full-20100131.tgz 10779904 SHA256 54c3e7a546c8c81893137220eac636685089f5000c65935b3ba977b1676c9a85 SHA512 fafcb8a4a401445525aa6f7935f35bba98525cf879f93dd4380dc1b2cea6c1d5fbc1f2e22e72470cf01ab3f21af2742e5ebb442b214c4d8b4a4299f56b4ff058 WHIRLPOOL c17cab7a03c4fc5a4ce1f282fff153655d26c82301c8229f2947619a77d6e124d65b83b027fddeeff71dd1498facc5baa7e1632d4a91e931828d073c5a66940d -EBUILD ltp-20090131.ebuild 3333 SHA256 ca774849e5bf48cb6ac22fa01f34b43feae4aa51825cdf6f35cb35aa6e1b498a SHA512 b6bf3751ec330b7b59e956f179c6ee69996a92cdf5a38f877f61b84adc2e1bac74402a41a2060f316093a15aa8530e0da8764032d0a479b3695e860df3616e1c WHIRLPOOL 7c013ce835654f0dfea8b786e7eb0f42b81055630b9a75fe490f5942df4853a478461c52c792ebfff87b077bf5a21f81605dcf9e3b51cc5e3e1354c15fa02950 -EBUILD ltp-20100131.ebuild 3320 SHA256 0d43963507ecd7c17fb824fd43d951fb80b383f2f99f44df8757deb7d2b6444c SHA512 88e4f65f9a54534f9116fab95e5f6714c07b3d5945b289d01c9821c839531cdb06a3b9a3e2b1b41fe5f945b01796e143d9074bc243da522d35abdfce8efa4765 WHIRLPOOL 4b4dadff2f7d2164d9825bb744837bebe661c504c057028e90dc9c560f3ccb99fa58651ee6e2df503b421e942838ad5fe677f87f4bfdd60ef5ec5d26d0f21b8f -MISC ChangeLog 2570 SHA256 7aef0397cf9fb08b3014e6869934e20d7e84e16de5cb11614dc80b74a6721bfe SHA512 e2fb658048ec5cc9f092d4b776d0195fe89ee4532ad1df736ad2d1ccf767b74e35fbe1b235e2c47aaba147a0957961af535fa14b5259c6cb973d62be3134bda9 WHIRLPOOL 9309acd88c1c76482df8ca52c77be4beeb03fb88fa0d577dabb1163fb26be5fd4677ac093e88c14feb4adff6df29a7090aa3e0cdfae303c268a4778eea64c4fa -MISC metadata.xml 656 SHA256 a1e4461e4183fc01311777712f6adbd7e2447da9278289d419940f3cfd119e0e SHA512 fbf7c37464e69065c1f0becfc5fca9e3cac1434d4d590eb0d83d2745cee8f2a35c2a49fc2360ce0d80ad60cf427ae2527f0c366c6e7be56b812bcb3df6c597b6 WHIRLPOOL 4c58251be61666abba22999ca8e44dd63168bc2ded49670790d338180d8fb621e071cd2724e61582158df8a4e75f149b4fd5dd8ad8a6eef2b32548ff4b74227a +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX runltp-path.patch 10104 SHA256 9164a2332922c165bfc0ed66dbf9966e6d91c681f1bc641cd740389c15e66989 SHA512 a0c7971ad728e487b076775d8247774a836990f8d7b5cb3fb5eb6dbafcb06b8d443545e0f6fda32ba06d072fc197352b2193c0843ff918604dda81382308b65e WHIRLPOOL ec7c53bf62c0df9ee9f63fbc7ed422f99d747c56654ab2749874876913549a072589a525847b11604766b1231db000939d2f35ef3265fa264d8738b2d63ca57f +DIST ltp-20120903.tar.bz2 3964698 SHA256 41d2f4cd88619aa7b5cdad93cb7691b69166f7751bc9f2f72558937cbef581c2 SHA512 2c24327c9311944d1334d81f995ca889909a8f039d5d577a3b43a05b7e6d437491e340f21aa2767ae8dd5c3739de9f5dfbdf7720dceea4d0a9b1997b28652c78 WHIRLPOOL 33187777de385b5d961bac6032538e5e98802e37fc5832cc1b96e66f02ac02fb1ec5fd930290df35f213cd86252b1e511732c4e7b7423d3c78df9c4fd48be6a6 +EBUILD ltp-20120903.ebuild 2180 SHA256 2cbabc62b78de4e9210d49d29c5604c85de7c2e4d613e947a41b476ecb184eb9 SHA512 a6e39df047cd3e6349b5211eb95387939c2866a8389c5f1615b94c26187b542991965dd75c856008fd006e22918cf98d0154f4ad7c133759b050feeed7c9895c WHIRLPOOL 28ad18f9c05f53d879722891e5975fe587193974f95447fd3d735997b02a5ebc8d29ea200cfc9a1fefedfb1b4aac03885d9ba132cc0d74f98382046e2a32077e +MISC ChangeLog 2827 SHA256 754a79933e7e0607aa73d8a3b2b4abbf5e3442262b9003ee2be6710efdaa4e66 SHA512 f02aa0978d2db3416e5285a94636e14c88ff88e905e222fcb14c38cd023acada38e6e28c227c31eafe9a964ccca8bd265b7dcab22a92257c38d800d4dd40672f WHIRLPOOL a414a9ec3b87b4381acd3b02da1991081f4fdc4ed81155bdca209c8feb13f99fbc5ef50db24ee37b6769c085c27f57ef68ed31f797ad9497a868e88ffe20ac01 +MISC metadata.xml 965 SHA256 3a2271b446b928c95a1331853b2e7e379dfc12329c81fc3280b657fce91aeac8 SHA512 9c58b9d3c744ae6e43cac91d69c02792d7d28ee065111c44bdfd67595029608f3cb72999bc017b943e7e98613b0ab5dfb569be5df6f22018fd35b6ae2520ce9c WHIRLPOOL 85f639d16ded52c1cb37f08691203da1c47506b869395942b51dfe408b5b38d7e7a36e356604017868ecdeda4015d7b50448a9be89300ab2451806d06280b2dd +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJQlWlZAAoJEPqDWhW0r/LCBMgQAIHuUuqbLnbGLu73CLTamNq9 +4XHorPjk/y2hb6s9L6a0QHjsAPo6It0o9fzST0JX5sD5YACDDokKlrdMhVYpaQXz +U+6E9Yd6XU+g9xjjLAdgkhGE8n0UdCnT01PIewj73hfYGC48mZoKz7IWLJVpLfdy +QiTFFg0JRnd2gzw3Eoapd2cLm8QXP2kgLKUZby9lR+DuumcIzAle8eeKk33i5bMg +rK14bMkcSYhKM2xM68eObt9BC+pULloA1/wovVtNYWG+YoWuY5Kt6F32M+Vq9tmK +OB4ThpqGodTeLcVJwkhlgTiUyilLDmVD2LpDyIHXUAxjK2BJIAcj0hg3tzalQZk7 +HhZ65lDYz6oyrDsmrN2FH3YBadj+cDn+5nwUethMSB0BF77IbgrbGtHmRj3OL8bQ +8rwX0hxP8tKoJVVVguVTfCsZBbSuFBg2VxHsa+bRNfQ7Z9nsg9V4Brs7NeCq5zfT +7f/nv5B6n5Non9eIQ/Gi2g7AMSRNA9H5lsa8uhYGTyZSDbCG7+tCo9TEfcys7Pfd +mUPLFJ3Ku5v2QkuTgwOpugYQ0gnPA6FGzR/XnQOI0/Uc46Aa8gQTSzGBgQTbuexv +yHoP/sU7RRxkaJRHHFqRyrgD8kL825dnA7vd4S+wi2golrwzMiY10TqadcoIxkgJ +u2U7i/XWxbR0cdtAbgsB +=4vqN +-----END PGP SIGNATURE----- diff --git a/app-benchmarks/ltp/files/runltp-path.patch b/app-benchmarks/ltp/files/runltp-path.patch index a96e4431012d..5d8d55b886f4 100644 --- a/app-benchmarks/ltp/files/runltp-path.patch +++ b/app-benchmarks/ltp/files/runltp-path.patch @@ -1,11 +1,199 @@ ---- runltp.orig 2004-11-06 11:40:02.729295792 +0100 -+++ runltp 2004-11-06 11:40:25.758808272 +0100 -@@ -43,7 +43,7 @@ +Index: ltp-full-20120903/runltp +=================================================================== +--- ltp-full-20120903.orig/runltp ++++ ltp-full-20120903/runltp +@@ -76,7 +76,7 @@ setup() echo "FATAL: unable to change directory to $(dirname $0)" exit 1 } - export LTPROOT=${PWD} -+ export LTPROOT=/usr/libexec/ltp/ ++ export LTPROOT=/usr/libexec/ltp export TMPBASE="/tmp" - export TMP="${TMPBASE}/ltp-$$" export PATH="${PATH}:${LTPROOT}/testcases/bin" + +@@ -230,7 +230,7 @@ main() + /*) + FAILCMDFILE="-C $OPTARG" ;; + *) +- FAILCMDFILE="-C $LTPROOT/output/$OPTARG" ++ FAILCMDFILE="-C $TMPBASE/output/$OPTARG" + ALT_DIR_OUT=1 ;; + esac ;; + +@@ -298,7 +298,7 @@ main() + /*) + HTMLFILE="$OPTARG";; + *) +- HTMLFILE="$LTPROOT/output/$OPTARG";; ++ HTMLFILE="$TMPBASE/output/$OPTARG";; + esac + ALT_DIR_OUT=1 + ALT_HTML_OUT=1;; +@@ -319,7 +319,7 @@ main() + /*) + DMESG_DIR="$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; + *) +- DMESG_DIR="$LTPROOT/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; ++ DMESG_DIR="$TMPBASE/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; + esac + mkdir -p $DMESG_DIR + ALT_DMESG_OUT=1;; +@@ -329,7 +329,7 @@ main() + /*) + LOGFILE="-l $OPTARG" ;; + *) +- LOGFILE="-l $LTPROOT/results/$OPTARG" ++ LOGFILE="-l $TMPBASE/results/$OPTARG" + ALT_DIR_RES=1 ;; + esac ;; + +@@ -384,7 +384,7 @@ main() + /*) + OUTPUTFILE="-o $OPTARG";; + *) +- OUTPUTFILE="-o $LTPROOT/output/$OPTARG" ++ OUTPUTFILE="-o $TMPBASE/output/$OPTARG" + ALT_DIR_OUT=1 ;; + esac ;; + +@@ -431,7 +431,7 @@ main() + ## It would be nice to create a default log file even if the user has not mentioned + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name + LOGFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- LOGFILE="-l $LTPROOT/results/LTP_RUN_ON-$LOGFILE_NAME.log" ++ LOGFILE="-l $TMPBASE/results/LTP_RUN_ON-$LOGFILE_NAME.log" + ALT_DIR_RES=1 + PRETTY_PRT=" -p " + fi +@@ -443,14 +443,14 @@ main() + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about Output File name either + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name either + FAILED_FILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + else ## User Fortunately wanted a log file, + FAILED_FILE_NAME=`basename $LOGFILE_NAME` ## Extract log file name and use it to construct Failed file name +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + fi + else ## User Fortunately wanted a Output file + FAILED_FILE_NAME=`basename $OUTPUTFILE_NAME` ## Extract output file name and use it to construct Failed file name +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" + fi + fi + +@@ -459,11 +459,11 @@ main() + ## which the HTML parser will require + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about the Outputfile name, then we need to definitely generate one + OUTPUTFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME +- OUTPUTFILE="-o $LTPROOT/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output" ++ OUTPUTFILE="-o $TMPBASE/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output" + ALT_DIR_OUT=1 + if [ ! "$HTMLFILE" ] ; then ## User has not mentioned HTML File name, We need to create one + HTMLFILE_NAME=`basename $OUTPUTFILE_NAME` +- HTMLFILE="$LTPROOT/output/$HTMLFILE_NAME.html" ++ HTMLFILE="$TMPBASE/output/$HTMLFILE_NAME.html" + fi + fi + fi +@@ -471,12 +471,12 @@ main() + # If we need, create the output directory + [ "$ALT_DIR_OUT" -eq 1 ] && \ + { +- [ ! -d $LTPROOT/output ] && \ ++ [ ! -d $TMPBASE/output ] && \ + { +- echo "INFO: creating $LTPROOT/output directory" +- mkdir -p $LTPROOT/output || \ ++ echo "INFO: creating $TMPBASE/output directory" ++ mkdir -p $TMPBASE/output || \ + { +- echo "ERROR: failed to create $LTPROOT/output" ++ echo "ERROR: failed to create $TMPBASE/output" + exit 1 + } + } +@@ -484,12 +484,12 @@ main() + # If we need, create the results directory + [ "$ALT_DIR_RES" -eq 1 ] && \ + { +- echo "INFO: creating $LTPROOT/results directory" +- [ ! -d $LTPROOT/results ] && \ ++ echo "INFO: creating $TMPBASE/results directory" ++ [ ! -d $TMPBASE/results ] && \ + { +- mkdir -p $LTPROOT/results || \ ++ mkdir -p $TMPBASE/results || \ + { +- echo "ERROR: failed to create $LTPROOT/results" ++ echo "ERROR: failed to create $TMPBASE/results" + exit 1 + } + } +@@ -867,8 +867,8 @@ main() + export TEST_START_TIME=$test_start_time + export TEST_END_TIME=$(date) + OUTPUT_DIRECTORY=`echo $OUTPUTFILE | cut -c4-` +- LOGS_DIRECTORY="$LTPROOT/results" +- export TEST_OUTPUT_DIRECTORY="$LTPROOT/output" ++ LOGS_DIRECTORY="$TMPBASE/results" ++ export TEST_OUTPUT_DIRECTORY="$TMPBASE/output" + export TEST_LOGS_DIRECTORY=$LOGS_DIRECTORY + echo "Generating HTML Output.....!!" + ( perl $LTPROOT/bin/genhtml.pl $LTPROOT/bin/html_report_header.txt test_start test_end test_output execution_status $OUTPUT_DIRECTORY > $HTMLFILE; ) +@@ -884,37 +884,37 @@ main() + else + TAR_FILE_NAME=LTP_RUN_$version_date$DEFAULT_FILE_NAME_GENERATION_TIME.tar + if [ "$HTMLFILE_NAME" ] ; then ## HTML file Exists +- if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $LTPROOT/output +- mkdir -p $LTPROOT/output ## We need to create this Directory +- cp $HTMLFILE_NAME $LTPROOT/output/ ++ if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $TMPBASE/output ++ mkdir -p $TMPBASE/output ## We need to create this Directory ++ cp $HTMLFILE_NAME $TMPBASE/output/ + fi + fi + if [ "$OUTPUTFILE_NAME" ] ; then ## Output file exists +- if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $LTPROOT/output +- mkdir -p $LTPROOT/output ## We need to create this Directory +- cp $OUTPUTFILE_NAME $LTPROOT/output/ ++ if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $TMPBASE/output ++ mkdir -p $TMPBASE/output ## We need to create this Directory ++ cp $OUTPUTFILE_NAME $TMPBASE/output/ + fi + fi + if [ "$LOGFILE_NAME" ] ; then ## Log file exists +- if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $LTPROOT/results +- mkdir -p $LTPROOT/results ## We need to create this Directory +- cp $LOGFILE_NAME $LTPROOT/results/ ++ if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $TMPBASE/results ++ mkdir -p $TMPBASE/results ## We need to create this Directory ++ cp $LOGFILE_NAME $TMPBASE/results/ + fi + fi +- if [ -d $LTPROOT/output ] ; then +- tar -cf ./$TAR_FILE_NAME $LTPROOT/output ++ if [ -d $TMPBASE/output ] ; then ++ tar -cf ./$TAR_FILE_NAME $TMPBASE/output + if [ $? -eq 0 ]; then +- echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/output" ++ echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/output" + else +- echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/output" ++ echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/output" + fi + fi +- if [ -d $LTPROOT/results ] ; then +- tar -uf ./$TAR_FILE_NAME $LTPROOT/results ++ if [ -d $TMPBASE/results ] ; then ++ tar -uf ./$TAR_FILE_NAME $TMPBASE/results + if [ $? -eq 0 ]; then +- echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/results" ++ echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/results" + else +- echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/results" ++ echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/results" + fi + fi + if [ -e $LTPROOT/nohup.out ] ; then ## If User would have Chosen nohup to do ltprun diff --git a/app-benchmarks/ltp/ltp-20090131.ebuild b/app-benchmarks/ltp/ltp-20090131.ebuild deleted file mode 100644 index 0d71c4029daa..000000000000 --- a/app-benchmarks/ltp/ltp-20090131.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20090131.ebuild,v 1.2 2009/09/13 22:21:06 patrick Exp $ - -inherit eutils portability flag-o-matic - -MY_P="${PN}-full-${PV}" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Linux Test Project: testsuite for the linux kernel" -HOMEPAGE="http://ltp.sourceforge.net/" -SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -# add "dialog" to depends if ltpmenu is enabled - -src_unpack() { - unpack ${A} - cd "${S}" - # IDcheck patch not needed anymore, superseded by CREATE=0 - epatch "${FILESDIR}/runltp-path.patch" - - # All that remains of bad perl paths - sed -i -e '1s,#!/usr/bin/perl5,#!/usr/bin/perl,' \ - "${S}/testcases/ballista/ballista/create_code_standAlone.pl" -} - -src_compile() { - # avoid creating groups - export CREATE=0 - # Lazy binds are bad - # TODO: Fix in upstream package - append-ldflags -Wl,-z,now - # actually build - LDFLAGS="${LDFLAGS}" PREFIX=${D}/opt/blah emake DESTDIR="${D}" || die "emake failed" -} - -src_install() { - # avoid creating groups - export CREATE=0 - DESTDIR="${D}" make install || die "install failed" - dodir /usr/libexec/ltp/testcases - - treecopy testcases pan/pan runtest ver_linux IDcheck.sh \ - "${D}/usr/libexec/ltp" || die "treecopy failed" - # TODO: clean up testcases directory to only include the data files - - dobin runltp runalltests.sh || die "dobin failed" - - # TODO: fix this so it works from "outside" the source tree - # cp ltpmenu ${D}/usr/bin - - # fix world-writable files - chmod -R o-w "${D}/usr/libexec/ltp/testcases" - # Full list, TODO: fix in upstream -## a=/usr/libexec/ltp/testcases -## for i in ${a}/network/tcp_cmds/ftp/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.med \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.lg \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.jmb \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.med \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.med \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/rcp/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.med \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.med \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.lg \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.jmb \ -## ${a}/network/nfs/nfs02/dat/smallsize.fil \ -## ${a}/network/nfs/nfs02/dat/medsize.fil \ -## ${a}/network/nfs/nfs02/dat/largesize.fil \ -## ${a}/network/nfs/nfs02/dat/maxsize.fil \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.sm \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.med \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.lg \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.jmb \ -## ${a}/kernel/sched/sched_stress/sched_datafile \ -## ${a}/bin/sched_datafile ; -## do chmod 644 ${D}${i} ; done ; -} diff --git a/app-benchmarks/ltp/ltp-20100131.ebuild b/app-benchmarks/ltp/ltp-20100131.ebuild deleted file mode 100644 index 93621f38687a..000000000000 --- a/app-benchmarks/ltp/ltp-20100131.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20100131.ebuild,v 1.2 2010/11/10 19:12:57 patrick Exp $ - -EAPI="2" - -inherit eutils portability flag-o-matic - -MY_P="${PN}-full-${PV}" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Linux Test Project: testsuite for the linux kernel" -HOMEPAGE="http://ltp.sourceforge.net/" -SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -# add "dialog" to depends if ltpmenu is enabled - -src_prepare() { - # IDcheck patch not needed anymore, superseded by CREATE=0 - epatch "${FILESDIR}/runltp-path.patch" - - # All that remains of bad perl paths - sed -i -e '1s,#!/usr/bin/perl5,#!/usr/bin/perl,' \ - "${S}/testcases/ballista/ballista/create_code_standAlone.pl" -} - -src_compile() { - # avoid creating groups - export CREATE=0 - # Lazy binds are bad - # TODO: Fix in upstream package - append-ldflags -Wl,-z,now - # actually build - LDFLAGS="${LDFLAGS}" PREFIX=${D}/opt/blah emake DESTDIR="${D}" || die "emake failed" -} - -src_install() { - # avoid creating groups - export CREATE=0 - DESTDIR="${D}" make install || die "install failed" - dodir /usr/libexec/ltp/testcases - - treecopy testcases pan/pan runtest ver_linux IDcheck.sh \ - "${D}/usr/libexec/ltp" || die "treecopy failed" - # TODO: clean up testcases directory to only include the data files - - dobin runltp runalltests.sh || die "dobin failed" - - # TODO: fix this so it works from "outside" the source tree - # cp ltpmenu ${D}/usr/bin - - # fix world-writable files - chmod -R o-w "${D}/usr/libexec/ltp/testcases" - # Full list, TODO: fix in upstream -## a=/usr/libexec/ltp/testcases -## for i in ${a}/network/tcp_cmds/ftp/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.med \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.lg \ -## ${a}/network/tcp_cmds/ftp/datafiles/ascii.jmb \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.med \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/ftp/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.med \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/rcp/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/rcp/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.sm \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.med \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.lg \ -## ${a}/network/tcp_cmds/rdist/datafiles/bin.jmb \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.sm \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.med \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.lg \ -## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.jmb \ -## ${a}/network/nfs/nfs02/dat/smallsize.fil \ -## ${a}/network/nfs/nfs02/dat/medsize.fil \ -## ${a}/network/nfs/nfs02/dat/largesize.fil \ -## ${a}/network/nfs/nfs02/dat/maxsize.fil \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.sm \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.med \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.lg \ -## ${a}/network/ipv6/sendfile6/datafiles/ascii.jmb \ -## ${a}/kernel/sched/sched_stress/sched_datafile \ -## ${a}/bin/sched_datafile ; -## do chmod 644 ${D}${i} ; done ; -} diff --git a/app-benchmarks/ltp/ltp-20120903.ebuild b/app-benchmarks/ltp/ltp-20120903.ebuild new file mode 100644 index 000000000000..fedfdb00b103 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20120903.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20120903.ebuild,v 1.1 2012/11/03 18:58:32 hwoarang Exp $ + +EAPI="4" + +inherit autotools eutils + +MY_PN="${PN}-full" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/LTP%20Source/${P}/${MY_P}.bz2 -> ${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="expect perl pm open-posix python rt" + +DEPEND="expect? ( dev-tcltk/expect ) + perl? ( dev-lang/perl ) + python? ( dev-lang/python )" + +RESTRICT="test" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + # Don't create groups + export CREATE=0 +} + +src_prepare() { + # regenerate + AT_M4DIR="m4" eautoreconf + # Create output/ and results/ directories + # in /tmp. We don't want to pollute the libexec + # directory + epatch "${FILESDIR}"/runltp-path.patch +} + +src_configure() { + # FIXME: improve me + local myconf= + use open-posix && myconf+="--with open-posix-testsuite " + use pm && mytconf+="--with-power-management-testsuite " + use rt && myconf+="--with-realtime-testsuite " + use perl && myconf+="--with-perl " + use python && myconf+="--with-python " + use expect && myconf+="--with-expect " + + # Better put it into /usr/libexec as everything needs to + # be under the same directory.. + + econf --prefix=/usr/libexec/${PN} ${myconf} +} + +src_compile() { + # Posix testsuite does not seem to build with -j>1 + # Is this maintained anymore? + if use open-posix; then + export MAKEOPTS="-j1" + fi + emake +} + +src_install() { + default + dosym /usr/libexec/${PN}/runltp /usr/bin/runltp + # install docs + dodoc doc/MaintNotes + for txt in doc/*.txt; do + dodoc ${txt} + done + dodoc -r doc/examples doc/testcases + dohtml -r doc/automation-*.html + doman doc/man1/*.1 + doman doc/man3/*.3 +} + +pkg_postinst() { + elog + elog "LTP requires root access to run the tests." + elog "The LTP root directory is located in /usr/libexec/${PN}" + elog "but the results and output folders will be created in /tmp." + elog "For more information please read the ltp-howto" + elog "located in /usr/share/doc/${PF}" + elog +} diff --git a/app-benchmarks/ltp/metadata.xml b/app-benchmarks/ltp/metadata.xml index f182cf306fe4..30e3d2c35855 100644 --- a/app-benchmarks/ltp/metadata.xml +++ b/app-benchmarks/ltp/metadata.xml @@ -3,10 +3,16 @@ <pkgmetadata> <herd>benchmarks</herd> <maintainer> - <email>patrick@gentoo.org</email> - <name>Patrick Lauer</name> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> <description>Maintainer</description> </maintainer> +<use> + <flag name="open-posix">Build and install the POSIX testsuite</flag> + <flag name="pm">Build and install the power management testsuite</flag> + <flag name="expect">Build against the expect library for interactive testing</flag> + <flag name="rt">Build and install the realtime testsuite</flag> +</use> <longdescription> 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 |