]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: run tests with same features as build
authorJason Ish <jason.ish@oisf.net>
Wed, 9 Oct 2019 15:18:31 +0000 (09:18 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 10 Oct 2019 22:36:08 +0000 (16:36 -0600)
Cargo check wasn't being passed --features so could have a different
configuration than the build.

rust/Makefile.am

index e4f4a3a8e9f52830828a7c386380232b2a25d4be..8ede2c81ab1ba5b72a4760e9f4e8ad66b7c76bda 100644 (file)
@@ -53,7 +53,8 @@ distclean-local: clean-local
        rm -rf vendor gen Cargo.lock
 
 check:
-       CARGO_HOME="$(CARGO_HOME)" @rustup_home@ $(CARGO) test
+       CARGO_HOME="$(CARGO_HOME)" @rustup_home@
+               $(CARGO) test --features "$(RUST_FEATURES)"
 
 Cargo.lock: Cargo.toml
        CARGO_HOME="$(CARGO_HOME)" @rustup_home@ $(CARGO) \