summaryrefslogtreecommitdiff
path: root/benchmarks/hbench
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-12-26 15:59:54 +0000
committergarbled <garbled@pkgsrc.org>1998-12-26 15:59:54 +0000
commitf544fc14ed1e41244d3fba2d11315ca2098805a0 (patch)
tree6958f25a4817a66619dea1a60f9498023655b3f2 /benchmarks/hbench
parent1da2cee3915634868a6be87188747112cdf205cc (diff)
downloadpkgsrc-f544fc14ed1e41244d3fba2d11315ca2098805a0.tar.gz
Fix all the benchmark targets so they work properly, and work with the
package uninstalled, with the exceptionof lmbench. Make non-batch targets for all the benchmarks, and create a results target which places all the results in /tmp for easier collection.
Diffstat (limited to 'benchmarks/hbench')
-rw-r--r--benchmarks/hbench/Makefile15
-rw-r--r--benchmarks/hbench/files/setup.answers10
2 files changed, 17 insertions, 8 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index 2bbdf40830a..9c184a044ad 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 1998/12/03 01:27:05 hubertf Exp $
+# $NetBSD: Makefile,v 1.7 1998/12/26 15:59:55 garbled Exp $
DISTNAME= hbench-OS-1.0
PKGNAME= hbench-1.0
@@ -42,10 +42,21 @@ do-install:
benchmark:
@if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi
- @cd ${WRKSRC}; \
+ cd ${WRKSRC}; \
+ ${MKDIR} conf; \
+ ${MKDIR} results; \
${SED} -e 's|@pwd@|'`/bin/pwd`'|g' \
-e 's|@hostname@|'`/bin/hostname -s`'|g' \
+ -e 's|@wrksrc@|'`/bin/pwd`'|g' \
${FILESDIR}/setup.answers | ${MAKE} setup; \
+ ${MV} conf/`/bin/hostname -s`.run conf/foo ; \
+ ${SED} -e 's|#PLAINBINDIR=${HBENCHROOT}|PLAINBINDIR='`/bin/pwd`'|' \
+ < conf/foo > conf/`/bin/hostname -s`.run ; \
${MAKE} run
+results:
+ -@${MKDIR} /tmp/benches/`domainname`
+ -@cd ${WRKSRC} ; \
+ tar -cf /tmp/benches/`domainname`/hbench.`uname`-`uname -m`-`uname -r`.`hostname`.tar results conf
+
.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/hbench/files/setup.answers b/benchmarks/hbench/files/setup.answers
index c75216c739d..c5294b9826b 100644
--- a/benchmarks/hbench/files/setup.answers
+++ b/benchmarks/hbench/files/setup.answers
@@ -3,13 +3,11 @@
+@wrksrc@/conf/full.test
+@wrksrc@/XXX
+@wrksrc@
-
-
-
-
-
+@pwd@/results
@pwd@/conf/@hostname@.run
-