summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2018-09-08 13:53:55 +0200
committerNeal H. Walfield <neal@pep.foundation>2018-09-08 13:53:55 +0200
commitafea387c5112e879fed8c180442e7f6ff22cf464 (patch)
tree8237efb286bcb1556cefe17ee18f03333d10bcf8 /Makefile
parent50e5ecba26948eefbbc058bc4a47205a429453cf (diff)
Make it possible to pass arguments to cargo test when using make.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5aa652c..9974a630 100644
--- a/Makefile
+++ b/Makefile
@@ -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