summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-06-07 22:11:20 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-07-13 18:24:20 +0200
commita8062b0446b926421cba76cad390f49dd473b3ef (patch)
treeca7aa97e8b83d234b641be7b89e8a6677479d810
parent6ded27c6eac230cbd0ef88793415e33199edaac1 (diff)
Add cargo test call for binaries
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index afc3e17a..8e8eece1 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,8 @@ $(TARGETS): %: .FORCE
@$(CARGO) build --manifest-path ./$@/Cargo.toml
$(BIN_TARGET_TESTS): %-test: % .FORCE
+ @$(ECHO) "\t[CARGO ][TEST]: \t$@"
+ @$(CARGO) test --manifest-path ./$(subst -test,,$@)/Cargo.toml
@$(ECHO) "\t[BINTEST]:\t$@"
if [ -f $(subst -test,,$@)/tests/Makefile ]; then \
$(MAKE) -C $(subst -test,,$@)/tests || exit 1;\