mirror of
https://github.com/containers/youki
synced 2024-05-28 02:16:09 +02:00
Included test for the features
Signed-off-by: Silcet <camorga1@gmail.com>
This commit is contained in:
parent
98490d907a
commit
289e71f73d
5
Makefile
5
Makefile
|
@ -6,11 +6,14 @@ build:
|
|||
release-build:
|
||||
./scripts/build.sh -o $(ROOT) -r
|
||||
|
||||
test-all: test oci-integration-test integration-test
|
||||
test-all: test oci-integration-test integration-test features-test
|
||||
|
||||
test: build
|
||||
cd crates && cargo test
|
||||
|
||||
features-test: build
|
||||
./scripts/features_test.sh
|
||||
|
||||
oci-integration-test:
|
||||
./scripts/oci_integration_tests.sh $(ROOT)
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
# Build the different features individually
|
||||
cargo build --no-default-features -F v1
|
||||
cargo build --no-default-features -F v2
|
||||
cargo build --no-default-features -F systemd
|
||||
cargo build --no-default-features -F v2 -F cgroupsv2_devices
|
||||
cargo build --no-default-features -F systemd -F cgroupsv2_devices
|
||||
|
||||
# Test the different features individually
|
||||
cargo test --no-default-features -F v1
|
||||
cargo test --no-default-features -F v2
|
||||
cargo test --no-default-features -F systemd
|
||||
cargo test --no-default-features -F v2 -F cgroupsv2_devices
|
||||
cargo test --no-default-features -F systemd -F cgroupsv2_devices
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue