Makefile 933 Bytes
Newer Older
1 2
EXPE_FOLDERS := $(wildcard tests/*)
SIMULS_OUT := $(patsubst %,%/out_jobs.csv,$(EXPE_FOLDERS))
David Glesser's avatar
David Glesser committed
3
GANTTS_OUT := $(patsubst %,%/gantt.png,$(EXPE_FOLDERS))
4 5 6 7


all: simuls

8
simuls: testIntervals $(SIMULS_OUT) coverage_html
9 10 11 12 13
	@if [ "$(SIMULS_OUT)" == "" ]; then \
		echo; \
		echo "All experiments were generated."; \
		echo " -> You may have to run the command again to run the experiments."; \
	fi
14 15

coverage_html: ../.coverage
16
	cd ..; python3 -m coverage html -i -d tests/coverage_html
17

18
testIntervals: generate
19
	cd ..; python3 -m coverage run -a schedulers/intervalContainer.py
20 21

%/out_jobs.csv:
22
	cd ..; python3 launch_expe.py --quiet tests/$*/expe.json || (rm -f $@; exit 1)
23

David Glesser's avatar
David Glesser committed
24 25 26 27 28 29
gantts: $(GANTTS_OUT)

gantts_okular: $(GANTTS_OUT)
	okular $^

%/gantt.png: %/out_jobs.csv
30
	python3 ../../../../evalys/evalys/gantt.py $* $*/gantt.png
David Glesser's avatar
David Glesser committed
31

32
generate:
33
	python3 generate.py $(BATSIMBIN)
34 35 36

clean:
	rm tests/*/out_jobs.csv
37
	cd ..; python3 -m coverage erase