add tests into Makefile convenience
This commit is contained in:
@@ -45,6 +45,16 @@ rungnu:
|
|||||||
runompgnu:
|
runompgnu:
|
||||||
$(CC) -Ofast -fopenmp -std=gnu11 run.c -lm -o run
|
$(CC) -Ofast -fopenmp -std=gnu11 run.c -lm -o run
|
||||||
|
|
||||||
|
# run all tests
|
||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
pytest
|
||||||
|
|
||||||
|
# run only tests for run.c C implementation (is a bit faster if only C code changed)
|
||||||
|
.PHONY: testc
|
||||||
|
testc:
|
||||||
|
pytest -k runc
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f run
|
rm -f run
|
||||||
|
|||||||
Reference in New Issue
Block a user