aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-29 23:05:04 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-10-29 23:05:04 +0100
commitb0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1 (patch)
tree7dd61f93298d56a6234435b72b30bf00cacd242b /Makefile
parentb716fdae5ef9b76920fdd2bcd8aab97d9cde90a0 (diff)
downloadsysc-playground-b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1.tar.gz
sysc-playground-b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1.zip
test: add first lt_bus tests
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 ---------------------------------------------------------------------