Skip to content

Commit 71474a9

Browse files
committed
Introduce build-all-tests target in Makefile
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 1500387 commit 71474a9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ EXTRAS_FEATURES = --no-default-features --features engine,extras
7979
UDEV_FEATURES = --no-default-features --features udev_scripts
8080
UTILS_FEATURES = --no-default-features --features dbus_enabled,engine,systemd_compat
8181

82+
FEATURE_OPTIONS_LIST = "" MIN_FEATURES NO_IPC_FEATURES SYSTEMD_FEATURES EXTRAS_FEATURES UDEV_FEATURES UTILS_FEATURES
83+
8284
STATIC_FLAG = -C target-feature=+crt-static
8385

8486
## Run cargo license
@@ -142,6 +144,10 @@ build-tests:
142144
RUSTFLAGS="${RUSTFLAGS}" \
143145
cargo ${TEST} --no-run ${RELEASE_FLAG} ${${FEATURES}} ${TARGET_ARGS}
144146

147+
## Build tests with each defined feature set enabled
148+
build-all-tests:
149+
@$(foreach var, $(FEATURE_OPTIONS_LIST), $(MAKE) build-tests FEATURES=$(var); )
150+
145151
## Build stratis-utils only
146152
build-utils:
147153
PKG_CONFIG_ALLOW_CROSS=1 \

0 commit comments

Comments
 (0)