aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec155df..ea6e11f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ run: build
build: INSTALL/lib/libsystemc.a BUILD/PLAYGROUND/CMakeCache.txt $(SRCS)
ninja -C BUILD/PLAYGROUND $(NINJA_FLAGS)
+test: build
+ cd BUILD/PLAYGROUND && ctest --output-on-failure
+
BUILD/PLAYGROUND/CMakeCache.txt: CMakeLists.txt
cmake -B BUILD/PLAYGROUND $@ -S . \
-G Ninja \
@@ -50,7 +53,7 @@ systemc:
# -- UTIL ----------------------------------------------------------------------
fmt:
- clang-format -i $(shell find src -type f)
+ clang-format -i $(shell find src test -type f)
# -- CLEAN ---------------------------------------------------------------------