Makefile: Allow to pass parameter tests=pattern to make test

`make test tests=pattern` will only run the subset of tests containing pattern,
therefore allowing to specify which subset of tests to run.
If the parameter is not specified, all tests are run.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-05-21 17:54:49 +02:00 committed by Dietmar Maurer
parent de61bc9264
commit cc119edbe5

View File

@ -47,8 +47,9 @@ $(SUBDIRS):
$(MAKE) -C $@
test:
cargo test test_broadcast_future
#cargo test test_broadcast_future
#cargo test $(CARGO_BUILD_ARGS)
cargo test $(tests) $(CARGO_BUILD_ARGS)
doc:
cargo doc --no-deps $(CARGO_BUILD_ARGS)