diff options
Diffstat (limited to 'benchmarks/hbench')
-rw-r--r-- | benchmarks/hbench/Makefile | 15 | ||||
-rw-r--r-- | benchmarks/hbench/files/setup.answers | 10 |
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 - |