summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-02-23 20:00:05 +0100
committerAnton Khirnov <anton@khirnov.net>2023-06-28 15:52:38 +0200
commit69734ef9828854aa668b104d47e08526b7a2bed0 (patch)
tree723c03ac33995dc3f6d4faf4a7a0f34569dc39be /Makefile
parent49fb496527a3557ee44cc0ac210eba2ca8dd7bc6 (diff)
doublenull: add unit tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b10c533..a64b7fb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,12 @@ $(TARGET): $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<
+test: $(TARGET)
+ LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH python3 -m unittest
+
clean:
-rm -f *.o *.d $(TARGET)
-include $(OBJS:.o=.d)
-.PHONY: clean
+.PHONY: clean test