add tests into Makefile convenience

This commit is contained in:
Andrej Karpathy
2023-08-15 15:57:27 +00:00
parent 600cedb33d
commit 88eb238255
+10
View File
@@ -45,6 +45,16 @@ rungnu:
runompgnu:
$(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
clean:
rm -f run