summaryrefslogtreecommitdiff
path: root/benchmarks/benchfft
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/benchfft
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/benchfft')
-rw-r--r--benchmarks/benchfft/Makefile17
-rw-r--r--benchmarks/benchfft/files/setup.answers16
2 files changed, 29 insertions, 4 deletions
diff --git a/benchmarks/benchfft/Makefile b/benchmarks/benchfft/Makefile
index 1be6e338a1e..9a9f9b3563d 100644
--- a/benchmarks/benchfft/Makefile
+++ b/benchmarks/benchfft/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/12/03 01:27:04 hubertf Exp $
+# $NetBSD: Makefile,v 1.3 1998/12/26 15:59:55 garbled Exp $
DISTNAME= benchfft-2.0
CATEGORIES= benchmarks math
@@ -27,12 +27,21 @@ do-install:
benchmark:
.if defined(BATCH)
- @${ECHO} "*** This benchmark may only be run in non-batch mode" ; \
- exit 1
+ @${ECHO} "*** This benchmark should be run in non-batch mode"
+ @${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
+ @chmod 755 ${WRKSRC}/run_bench
+ @${SED} -e 's|@machine@|'`uname -m`'|' \
+ ${FILESDIR}/setup.answers | (cd ${WRKSRC} ; ./run_bench)
.else
- @${WRKSRC}/submit-script
+ @${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
+ @chmod 755 ${WRKSRC}/run_bench
+ @(cd ${WRKSRC} ; ./run_bench)
@${ECHO} ${PKGNAME} results:
${CAT} submit.txt
.endif
+results:
+ -@${MKDIR} /tmp/benches/`domainname`
+ -@cp ${WRKSRC}/submit.txt /tmp/benches/`domainname`/fft.`uname`-`uname -m`-`uname -r`.`hostname`
+
.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/benchfft/files/setup.answers b/benchmarks/benchfft/files/setup.answers
new file mode 100644
index 00000000000..3ea6c331eca
--- /dev/null
+++ b/benchmarks/benchfft/files/setup.answers
@@ -0,0 +1,16 @@
+pkg run
+n
+n
+NetBSD
+NetBSD
+@machine@
+@machine@
+100
+64
+0
+NetBSD
+gcc
+y
+f77
+y
+Do not submit this form