From 88eb238255a44536a7d8adfadbf49e2bfa093d64 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Tue, 15 Aug 2023 15:57:27 +0000 Subject: [PATCH] add tests into Makefile convenience --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 8debdc6..a4c6588 100644 --- a/Makefile +++ b/Makefile @@ -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