1
0
mirror of https://github.com/containers/youki synced 2024-11-26 06:08:07 +01:00

refactor to follow the test-* recipe

Signed-off-by: yihuaf <yihuaf@unkies.org>
This commit is contained in:
yihuaf 2023-08-02 22:33:27 -07:00
parent 35373e69e8
commit 196fcce500
4 changed files with 17 additions and 10 deletions

@ -101,7 +101,7 @@ jobs:
- name: Add the permission to run
run: chmod +x ./youki
- name: Run integration tests
run: just oci-tests
run: just test-oci
oci-validation-rust:
runs-on: ubuntu-22.04

@ -22,8 +22,8 @@ jobs:
run: just youki-release
- name: test
# TODO(utam0k): The feature test needs nightly
# run: just unittest featuretest oci-tests
run: just unittest oci-tests
# run: just test-basic featuretest test-oci
run: just test-basic test-oci
upload:
name: Upload

@ -292,7 +292,7 @@ Go and node-tap are required to run integration tests. See the [opencontainers/r
```bash
git submodule update --init --recursive
just oci-tests
just test-oci
```
### Setting up Vagrant

@ -28,11 +28,18 @@ rust-oci-tests-bin:
# Tests
# run oci tests
test-oci: oci-tests rust-oci-tests
# run integration tests
test-integration: test-oci rust-oci-tests
# run all tests except rust-oci
test-all: unittest test-features oci-tests containerd-test # currently not doing rust-oci here
test-all: test-basic test-features oci-tests containerd-test # currently not doing rust-oci here
# run basic tests
test-basic: test-unit test-doc
# run cargo unit tests
test-unit:
cargo test --lib --bins --all --all-targets --all-features
# run cargo doc tests
test-doc:
@ -46,8 +53,8 @@ test-features:
test-musl:
{{ cwd }}/scripts/musl_test.sh
# run oci integration tests
oci-tests:
# run oci integration tests through runtime-tools
test-oci:
{{ cwd }}/scripts/oci_integration_tests.sh {{ cwd }}
# run rust oci integration tests
@ -89,7 +96,7 @@ bin-kind:
# Clean
# Clean kind test env
clean-test-kind:
test-kind-clean:
kind delete cluster --name {{ KIND_CLUSTER_NAME }}
# misc