From f544fc14ed1e41244d3fba2d11315ca2098805a0 Mon Sep 17 00:00:00 2001 From: garbled Date: Sat, 26 Dec 1998 15:59:54 +0000 Subject: 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. --- benchmarks/hbench/Makefile | 15 +++++++++++++-- benchmarks/hbench/files/setup.answers | 10 ++++------ 2 files changed, 17 insertions(+), 8 deletions(-) (limited to 'benchmarks/hbench') 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 - -- cgit v1.2.3