From 0b580fc32b3832f6d102d3a19a202e4c2adc1315 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 26 Apr 2021 18:29:28 -0700 Subject: [PATCH] now that we support an OBJDIR, fix up the python tests... --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7048e47..60666b3 100644 --- a/Makefile +++ b/Makefile @@ -101,11 +101,11 @@ $(PROG).list: $(PROG)$(PROGEXT) .PHONY: runbuild runbuild: $(SRCS) - for i in $(.MAKEFILE_LIST) $(.ALLSRC) $$(gsed ':x; /\\$$/ { N; s/\\\n//; tx }' < .depend | sed -e 's/^[^:]*://'); do echo $$i; done | entr -d sh -c 'echo starting...; cd $(.CURDIR) && $(MAKE) depend && $(MAKE) all' + for i in $(.MAKEFILE_LIST) $(.ALLSRC) $$(gsed ':x; /\\$$/ { N; s/\\\n//; tx }' < .depend | sed -e 's/^[^:]*://'); do if [ "$$i" != ".." ]; then echo $$i; fi; done | entr -d sh -c 'echo starting...; cd $(.CURDIR) && $(MAKE) $(.MAKEFLAGS) depend && $(MAKE) $(.MAKEFLAGS) all' .PHONY: runtests -runtests: - ls *.py | entr sh -c 'python -m coverage run -m unittest lora && coverage report --omit=p/\* -m -i' +runtests: lora.py + ls $(.ALLSRC) | entr sh -c 'PYTHONPATH="$(.CURDIR)" python -m coverage run -m unittest lora && coverage report --omit=p/\* -m -i' .c.o: $(ARMCC) $(ARMTARGET) $(CFLAGS) -c $< -o $@