Add cargo test call for binaries
This commit is contained in:
parent
6ded27c6ea
commit
a8062b0446
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -76,6 +76,8 @@ $(TARGETS): %: .FORCE
|
||||||
@$(CARGO) build --manifest-path ./$@/Cargo.toml
|
@$(CARGO) build --manifest-path ./$@/Cargo.toml
|
||||||
|
|
||||||
$(BIN_TARGET_TESTS): %-test: % .FORCE
|
$(BIN_TARGET_TESTS): %-test: % .FORCE
|
||||||
|
@$(ECHO) "\t[CARGO ][TEST]: \t$@"
|
||||||
|
@$(CARGO) test --manifest-path ./$(subst -test,,$@)/Cargo.toml
|
||||||
@$(ECHO) "\t[BINTEST]:\t$@"
|
@$(ECHO) "\t[BINTEST]:\t$@"
|
||||||
if [ -f $(subst -test,,$@)/tests/Makefile ]; then \
|
if [ -f $(subst -test,,$@)/tests/Makefile ]; then \
|
||||||
$(MAKE) -C $(subst -test,,$@)/tests || exit 1;\
|
$(MAKE) -C $(subst -test,,$@)/tests || exit 1;\
|
||||||
|
|
Loading…
Reference in a new issue