diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-09-08 13:53:55 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-09-08 13:53:55 +0200 |
commit | afea387c5112e879fed8c180442e7f6ff22cf464 (patch) | |
tree | 8237efb286bcb1556cefe17ee18f03333d10bcf8 | |
parent | 50e5ecba26948eefbbc058bc4a47205a429453cf (diff) |
Make it possible to pass arguments to cargo test when using make.
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,8 @@ CARGO_FLAGS ?= CARGO_TARGET_DIR ?= $(shell pwd)/target # We currently only support absolute paths. CARGO_TARGET_DIR := $(abspath $(CARGO_TARGET_DIR)) +# The tests to run. +CARGO_TEST_ARGS ?= --all FFI_RUSTDOCFLAGS ?= --html-in-header ffi/rustdoc.head.html # Signing source distributions. @@ -35,6 +37,7 @@ export PREFIX export DESTDIR export CARGO_FLAGS export CARGO_TARGET_DIR +export CARGO_TEST_ARGS all: build ffi/examples @@ -46,7 +49,7 @@ build: # Testing and examples. .PHONY: test check test check: - CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) $(CARGO) test $(CARGO_FLAGS) --all + CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) $(CARGO) test $(CARGO_FLAGS) $(CARGO_TEST_ARGS) $(MAKE) -Cffi test $(MAKE) examples |