summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2004-02-08 01:34:01 +0000
committerDaniel Black <dragonheart@gentoo.org>2004-02-08 01:34:01 +0000
commit70116a191a7af79bb4ae591e85ff163383a7e305 (patch)
tree9ec905353349a97cb293e749db921389e858b18b /app-benchmarks/lmbench
parentppc (diff)
downloadgentoo-2-70116a191a7af79bb4ae591e85ff163383a7e305.tar.gz
gentoo-2-70116a191a7af79bb4ae591e85ff163383a7e305.tar.bz2
gentoo-2-70116a191a7af79bb4ae591e85ff163383a7e305.zip
Inital import for Beaver Challenge 2004
Diffstat (limited to 'app-benchmarks/lmbench')
-rw-r--r--app-benchmarks/lmbench/ChangeLog10
-rw-r--r--app-benchmarks/lmbench/Manifest4
-rw-r--r--app-benchmarks/lmbench/files/bc-config44
-rw-r--r--app-benchmarks/lmbench/files/bc_lm.pl141
-rw-r--r--app-benchmarks/lmbench/files/digest-lmbench-3.0_alpha31
-rw-r--r--app-benchmarks/lmbench/lmbench-3.0_alpha3.ebuild54
-rw-r--r--app-benchmarks/lmbench/metadata.xml11
7 files changed, 265 insertions, 0 deletions
diff --git a/app-benchmarks/lmbench/ChangeLog b/app-benchmarks/lmbench/ChangeLog
new file mode 100644
index 000000000000..50f1c06b6cc9
--- /dev/null
+++ b/app-benchmarks/lmbench/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-benchmarks/lmbench
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/ChangeLog,v 1.1 2004/02/08 01:34:00 dragonheart Exp $
+
+*lmbench-3.0_alpha3 (08 Feb 2004)
+
+ 08 Feb 2004; Daniel Black<dragonheart@gentoo.org> lmbench-3.0_alpha3.ebuild,
+ metadata.xml, files/bc-config, files/bc_lm.pl:
+ Inital import for Beaver Challenge 2004
+
diff --git a/app-benchmarks/lmbench/Manifest b/app-benchmarks/lmbench/Manifest
new file mode 100644
index 000000000000..4040c631832e
--- /dev/null
+++ b/app-benchmarks/lmbench/Manifest
@@ -0,0 +1,4 @@
+MD5 ac2c0bfb82b1698d45b2880eb8898522 lmbench-3.0_alpha3.ebuild 2663
+MD5 1cddbfe67828e96db956b8b6535f44c0 files/bc-config 646
+MD5 25a33fad490151f7d1e8522b7795da7f files/bc_lm.pl 3196
+MD5 79c7cffe8649099fd090204cd546db39 files/digest-lmbench-3.0_alpha3 64
diff --git a/app-benchmarks/lmbench/files/bc-config b/app-benchmarks/lmbench/files/bc-config
new file mode 100644
index 000000000000..02a978fe1363
--- /dev/null
+++ b/app-benchmarks/lmbench/files/bc-config
@@ -0,0 +1,44 @@
+DISKS=""
+DISK_DESC=""
+OUTPUT=/dev/tty
+ENOUGH=5000
+FASTMEM="NO"
+FILE=/tmp/XXX
+FSDIR=/tmp
+INFO=INFO.bc2
+LINE_SIZE=128
+LOOP_O=0.00143616
+MAIL=no
+TOTAL_MEM=1414
+MB=512
+MHZ="2800"
+MOTHERBOARD=""
+NETWORKS=""
+OS="i686-pc-linux-gnu"
+PROCESSORS="4"
+REMOTE=""
+SLOWFS="NO"
+SYNC_MAX="1"
+TIMING_O=0
+RSH=rsh
+RCP=rcp
+VERSION=lmbench-3alpha1
+BENCHMARK_HARDWARE=YES
+BENCHMARK_OS=YES
+BENCHMARK_SYSCALL=
+BENCHMARK_SELECT=
+BENCHMARK_PROC=
+BENCHMARK_CTX=
+BENCHMARK_PAGEFAULT=
+BENCHMARK_FILE=
+BENCHMARK_MMAP=
+BENCHMARK_PIPE=
+BENCHMARK_UNIX=
+BENCHMARK_UDP=
+BENCHMARK_TCP=
+BENCHMARK_CONNECT=
+BENCHMARK_RPC=
+BENCHMARK_HTTP=
+BENCHMARK_BCOPY=
+BENCHMARK_MEM=
+BENCHMARK_OPS=
diff --git a/app-benchmarks/lmbench/files/bc_lm.pl b/app-benchmarks/lmbench/files/bc_lm.pl
new file mode 100644
index 000000000000..d4596baf2e04
--- /dev/null
+++ b/app-benchmarks/lmbench/files/bc_lm.pl
@@ -0,0 +1,141 @@
+#!/usr/bin/perl -w
+######################################################################
+# lmbench Script - bc_lm.pl
+#
+#Use: Beaver Challenge
+#
+#Author: Kaitlin Rupert, Open Source Lab - Oregon State University
+#
+#About:
+# This script is a wrapper for lmbench (created by Larry McVoy
+# and Carl Staelin).
+#
+# This script provides an easy means for participants of the
+# Beaver Challenge to benchmark their distributions in a manner
+# that is the same as other participating teams.
+#
+#Requirements:
+# Be sure that the CONFIG file is in the directory you unpacked
+# the lmbench tar. i.e.: If you unpacked the tar file to your
+# home directory, place the CONFIG file in your home directory.
+#
+# Be sure you have the proper header files installed for your
+# distro (such as libc6-dev, etc).
+######################################################################
+
+use strict;
+
+print "\n\n\n***Starting the perfomance analysis portion of Beaver \
+Challenge. ***This will be done using lmbench.\n\n";
+
+my $distro = " ";
+while ($distro eq " ")
+{
+ print " Please enter the distribution this test is running on. If you \
+ running on Ark Linux, for example, you would enter ark. [ark]: ";
+
+ $distro = <STDIN>;
+ chomp($distro);
+
+ print "\n\nYou entered: $distro. Is this correct? [y]";
+
+ my $response = <STDIN>;
+ chomp($response);
+
+ if (($response ne "y") && (length($response) != 0))
+ {
+ $distro = " ";
+ }
+
+ print "\n\n";
+}
+
+$distro =~ s/[ \t\r\n]+//g;
+
+my (@files);
+opendir (DIR, '.') or die "Can't open current dir: $!\n";
+@files = grep (!/^\.\.?$/, readdir (DIR));
+closedir (DIR);
+
+my $file;
+my @dir;
+foreach $file (@files)
+{
+ if (substr("$file", 0, 7) eq "lmbench")
+ {
+ push (@dir, "$file");
+ }
+}
+
+my $dir;
+foreach $file (@dir)
+{
+ if (chdir "$file")
+ {
+ $dir = $file;
+ }
+}
+
+if (!(chdir "src"))
+{
+ print "$dir - incorrect path to lmbench. Please specificy full path\n";
+
+ $dir = " ";
+ while ($dir eq " ")
+ {
+ $dir = <STDIN>;
+ chomp($dir);
+
+ print "\n\nYou entered: $dir. Is this correct? [y]";
+
+ my $response = <STDIN>;
+ chomp($response);
+
+ if (($response ne "y") && (length($response) != 0))
+ {
+ $dir = " ";
+ }
+ }
+
+ print "\n\n";
+
+ chdir "$dir/src" or die "$dir not path to lmbench. Please rerun script.\n";
+}
+
+`../scripts/build all`;
+`../scripts/target`;
+my $os = `../scripts/os`;
+chomp($os);
+`../scripts/compiler`;
+`../scripts/info`;
+`../scripts/version`;
+my $config = `../scripts/config`;
+chomp($config);
+
+open (IN, "../../CONFIG") or die $!;
+open (OUT, ">../bin/$os/$config") or die $!;
+while (<IN> )
+{
+ if (/OS/)
+ {
+ /^(\s*)/;
+ print OUT $1,"OS=\"$os\"\n";
+ }
+
+ else
+ {
+ print OUT;
+ }
+}
+close (OUT);
+close (IN);
+
+
+`../scripts/results`;
+
+chdir ".." or die $!;
+
+system("tar -cf ../lmbench_results_$distro.tar results/$os");
+
+print "\n\n\n***lmbench portion complete. The results have been archived in\
+ ../lmbench_results_$distro.tar\n";
diff --git a/app-benchmarks/lmbench/files/digest-lmbench-3.0_alpha3 b/app-benchmarks/lmbench/files/digest-lmbench-3.0_alpha3
new file mode 100644
index 000000000000..b7a707222ecc
--- /dev/null
+++ b/app-benchmarks/lmbench/files/digest-lmbench-3.0_alpha3
@@ -0,0 +1 @@
+MD5 ed2662088e3097c1afcf3a45dfc54899 lmbench-3.0-a3.tgz 1159027
diff --git a/app-benchmarks/lmbench/lmbench-3.0_alpha3.ebuild b/app-benchmarks/lmbench/lmbench-3.0_alpha3.ebuild
new file mode 100644
index 000000000000..e789f8a4b647
--- /dev/null
+++ b/app-benchmarks/lmbench/lmbench-3.0_alpha3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/lmbench-3.0_alpha3.ebuild,v 1.1 2004/02/08 01:34:00 dragonheart Exp $
+
+MY_P=${P/_alpha/-a}
+
+DESCRIPTION="Suite of simple, portable benchmarks"
+
+HOMEPAGE="http://www.bitmover.com/lmbench/whatis_lmbench.html"
+
+SRC_URI="ftp://ftp.bitmover.com/lmbench/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND="virtual/glibc"
+
+#RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+
+ sed -e "s#^my \$distro =.*#my \$distro = \"`uname -r`\";#" \
+ -e 's#^@files =#chdir "/usr/share/lmbench"; @files =#' \
+ -e "s#../../CONFIG#/etc/bc-config#g" ${FILESDIR}/bc_lm.pl > bc_lm.pl
+
+ emake CC=${CC} MAKE=make OS=`scripts/os` build || die
+}
+
+src_install() {
+
+ cd src ; make BASE=${D}/usr install || die
+
+ dodir /usr/share
+ mv ${D}/usr/man ${D}/usr/share
+
+ cd ${S}
+ exeinto /usr/bin
+ doexe ${S}/bc_lm.pl
+
+ insinto /etc
+ doins ${FILESDIR}/bc-config
+
+ dodir /usr/share/lmbench
+ dodir /usr/share/lmbench/src
+ cp -R scripts ${D}/usr/share/lmbench
+
+}
diff --git a/app-benchmarks/lmbench/metadata.xml b/app-benchmarks/lmbench/metadata.xml
new file mode 100644
index 000000000000..c5c255770abb
--- /dev/null
+++ b/app-benchmarks/lmbench/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>dragonheart@gentoo.org</email>
+ <name>Daniel Black</name>
+ <description>Quick add for Beaver Test 2004 - feel free to take over</description>
+</maintainer>
+<longdescription>Suite of simple, portable benchmarks</longdescription>
+</pkgmetadata>