1
0
Fork 0
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:
Silcet 2022-11-08 18:01:29 +01:00
parent 98490d907a
commit 289e71f73d
No known key found for this signature in database
GPG Key ID: DF4B651D8B5C1C88
2 changed files with 23 additions and 1 deletions

View File

@ -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)

19
scripts/features_test.sh Executable file
View File

@ -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