Commit 4242fda2 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

algo/Makefile: --coverage option passed through OPTIM

parent a19683f8
...@@ -125,10 +125,10 @@ $(VIDJIL): $(BINDIR)%: $(MAIN).o $(LIBCORE) ...@@ -125,10 +125,10 @@ $(VIDJIL): $(BINDIR)%: $(MAIN).o $(LIBCORE)
### ###
core/%.a: FORCE core/%.a: FORCE
$(MAKE) -C core $(notdir $@) $(MAKE) -C core OPTIM="$(OPTIM)" $(notdir $@)
lib/%.a: FORCE lib/%.a: FORCE
$(MAKE) -C lib $(notdir $@) $(MAKE) -C lib OPTIM="$(OPTIM)" $(notdir $@)
clean: clean:
$(MAKE) -C core $@ $(MAKE) -C core $@
...@@ -151,7 +151,7 @@ cleanall: cleancoverage ...@@ -151,7 +151,7 @@ cleanall: cleancoverage
test: test:
$(MAKE) -C tests cleantests $(MAKE) -C tests cleantests
$(TEE) '$(MAKE) COVERAGE="$(COVERAGE)" unit' tests/out-unit.log $(TEE) '$(MAKE) OPTIM="$(OPTIM)" unit' tests/out-unit.log
$(MAKE) functional $(MAKE) functional
@echo @echo
@echo "*** All tests passed. Congratulations !" @echo "*** All tests passed. Congratulations !"
...@@ -167,7 +167,7 @@ snapshot_diff_current: ...@@ -167,7 +167,7 @@ snapshot_diff_current:
unit: all unit: all
@echo "*** Launching unit tests..." @echo "*** Launching unit tests..."
$(MAKE) COVERAGE="$(COVERAGE_OPTION)" -C tests $(MAKE) OPTIM="$(OPTIM)" -C tests
@echo "*** All unit tests passed" @echo "*** All unit tests passed"
functional: all functional: all
...@@ -177,12 +177,12 @@ functional: all ...@@ -177,12 +177,12 @@ functional: all
should: all should: all
@echo @echo
@echo "*** Launching .should_get tests..." @echo "*** Launching .should_get tests..."
$(MAKE) COVERAGE="$(COVERAGE_OPTION)" -C tests should $(MAKE) OPTIM="$(OPTIM)" -C tests should
@echo "*** All .should_get tests passed" @echo "*** All .should_get tests passed"
shouldvdj: all shouldvdj: all
@echo @echo
$(MAKE) COVERAGE="$(COVERAGE_OPTION)" -C tests shouldvdj_if_python $(MAKE) OPTIM="$(OPTIM)" -C tests shouldvdj_if_python
valgrind_unit: valgrind_unit:
......
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