Commit 84841ebd authored by simonmar's avatar simonmar

[project @ 2005-04-28 09:46:25 by simonmar]

Run each nofib program multiple times, tunable by the $(NoFibRuns)
variable.  nofib-analyse already knows how to average the times from
multiple runs.
parent c69bb36e
......@@ -17,7 +17,6 @@ TOP := $(TOP)/..
include $(TOP)/mk/boilerplate.mk
TOP:=$(NOFIB_TOP)
# -----------------------------------------------------------------
# Everything after this point
# augments or overrides previously set variables.
......
......@@ -69,6 +69,15 @@ runtests ::
@$(RM) $(STDIN)
else
time_runtest = \
$(TIME) $(RUNTEST) ./$< \
$(addprefix -i ,$(STDIN_FILE)) \
$(addprefix -o1 ,$(wildcard $(NOFIB_PROG).$(mode)stdout*) $(wildcard $(NOFIB_PROG).stdout*)) \
$(addprefix -o2 ,$(wildcard $(NOFIB_PROG).$(mode)stderr*) $(wildcard $(NOFIB_PROG).stderr*)) \
$(RUNTEST_OPTS) $(PROG_ARGS)
enum = $(strip $(shell perl -e 'for ($$i = 1; $$i <= $(1); $$i++) { print "$$i "; }'))
ifneq "$(NOFIB_PROG_WAY)" ""
ifeq "$(way)" "mp"
# The parallel prg is actually a Perl skript => can't strip it -- HWL
......@@ -90,11 +99,7 @@ size :: $(NOFIB_PROG_WAY)
runtests :: $(NOFIB_PROG_WAY) size
@echo ==nofib$(_way)== $(NOFIB_PROG): time to run $(NOFIB_PROG) follows...
$(TIME) $(RUNTEST) ./$< \
$(addprefix -i ,$(STDIN_FILE)) \
$(addprefix -o1 ,$(wildcard $(NOFIB_PROG).$(mode)stdout*) $(wildcard $(NOFIB_PROG).stdout*)) \
$(addprefix -o2 ,$(wildcard $(NOFIB_PROG).$(mode)stderr*) $(wildcard $(NOFIB_PROG).stderr*)) \
$(RUNTEST_OPTS) $(PROG_ARGS)
$(foreach $i, $(call enum, $(NoFibRuns)), $(time_runtest);)
endif
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment