diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-06-07 22:11:20 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-07-13 18:24:20 +0200 |
commit | a8062b0446b926421cba76cad390f49dd473b3ef (patch) | |
tree | ca7aa97e8b83d234b641be7b89e8a6677479d810 | |
parent | 6ded27c6eac230cbd0ef88793415e33199edaac1 (diff) |
Add cargo test call for binaries
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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;\ |