Commit 2fbfffcb authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: add EXP_RUNNER Makefile variable (for slurm)

parent 4b9e4e14
MQNICMOD := $(abspath ../images/mqnic/mqnic.ko) MQNICMOD := $(abspath ../images/mqnic/mqnic.ko)
EXP_RUNNER ?= bash
GUESTS := \ GUESTS := \
qemu-pair-client \ qemu-pair-client \
...@@ -145,7 +146,7 @@ experiments: $(EXPERIMENTS_READY) ...@@ -145,7 +146,7 @@ experiments: $(EXPERIMENTS_READY)
define run_ex_ncp_repl define run_ex_ncp_repl
$(OUTDIR)/$(1)/$(2)/ready: experiments/$(addsuffix .sh,$(1)) $(GUESTS_TARS) $(OUTDIR)/$(1)/$(2)/ready: experiments/$(addsuffix .sh,$(1)) $(GUESTS_TARS)
bash $$< $(2) $(EXP_RUNNER) $$< $(2)
touch $$@ touch $$@
endef endef
...@@ -158,7 +159,7 @@ endef ...@@ -158,7 +159,7 @@ endef
define run_ex_cp_repl define run_ex_cp_repl
$(OUTDIR)/$(1)/$(2)/ready: experiments/$(addsuffix .sh,$(1)) $(OUTDIR)/$(1)/checkpoint/ready $(GUESTS_TARS) $(OUTDIR)/$(1)/$(2)/ready: experiments/$(addsuffix .sh,$(1)) $(OUTDIR)/$(1)/checkpoint/ready $(GUESTS_TARS)
bash $$< $(2) $(EXP_RUNNER) $$< $(2)
touch $$@ touch $$@
endef endef
...@@ -166,7 +167,7 @@ define run_ex_cp ...@@ -166,7 +167,7 @@ define run_ex_cp
$(foreach i,$(REPLIDS),$(eval $(call run_ex_cp_repl,$(1),$(i)))) $(foreach i,$(REPLIDS),$(eval $(call run_ex_cp_repl,$(1),$(i))))
$(OUTDIR)/$(1)/checkpoint/ready: experiments/$(addsuffix -mck.sh,$(1)) $(GUESTS_TARS) $(OUTDIR)/$(1)/checkpoint/ready: experiments/$(addsuffix -mck.sh,$(1)) $(GUESTS_TARS)
bash $$< $(EXP_RUNNER) $$<
touch $$@ touch $$@
$(OUTDIR)/$(1)/ready: experiments/$(addsuffix .sh,$(1)) $(addprefix $(OUTDIR)/$(1)/,$(addsuffix /ready,$(REPLIDS))) $(OUTDIR)/$(1)/ready: experiments/$(addsuffix .sh,$(1)) $(addprefix $(OUTDIR)/$(1)/,$(addsuffix /ready,$(REPLIDS)))
......
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