emmental/Makefile
Anna Schumaker 2083d00c23 Makefile: Disable testing curds/ and rind/ directories
I want to be able to test the new gtk4 code, but I can't do that with
the legacy code still enabled since gtk3 and gtk4 can't both be loaded
at the same time. The solution is to create a new "tests" target for
testing the new stuff.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2021-07-01 16:43:46 -04:00

24 lines
664 B
Makefile

# Copyright 2019 (c) Anna Schumaker.
clean:
find . -type d -name __pycache__ -exec rm -r {} \+
find trier -type d -name "Test Album" -exec rm -r {} \+
find trier -type d -name "Test Library" -exec rm -r {} \+
.PHONY: trier
trier:
python trier/generate_tracks.py
EMMENTAL_TESTING=1 python -m unittest discover -v
.PHONY: tests
tests:
python trier/generate_tracks.py
find `pwd` -name 'test_*.py' -not -path '*/curds/*' -not -path '*/rind/*' -not -path '*test_emmental.py' \
| EMMENTAL_TESTING=1 xargs python -m unittest -v
.PHONY:cover
cover:
python trier/generate_tracks.py
EMMENTAL_TESTING=1 coverage run -m unittest discover -v
coverage report -m