Added testing targets

This commit is contained in:
saundersp
2024-07-22 22:03:30 +02:00
parent 1ec28f78de
commit 95eaffda4d
6 changed files with 171 additions and 108 deletions

View File

@ -17,6 +17,10 @@ venv:
start: $(DATA) | venv check-python-works
@sh -c '. ./activate.sh && python projet.py'
.PHONY: test
test: | venv check-python-works
@sh -c '. ./activate.sh && python toolbox_unit_test.py'
.PHONY: debug
debug: $(DATA) | venv check-python-works check-pudb-works
@bash -c 'source activate.sh && pudb projet.py'
@ -45,9 +49,7 @@ log: $(DATA) reset | venv
.PHONY: reset
reset:
@echo 'Deleting generated states and models'
@rm -frv $(OUT_DIR)/* $(MODELS_DIR)/*
#@ln -sv /mnt/pierre_stuffs/ViolaJones/python/models .
#@ln -sv /mnt/pierre_stuffs/ViolaJones/python/out .
@rm -frv $(OUT_DIR) $(MODELS_DIR)
.PHONY: clean
clean: