From e3487b7cb2adfd98c3c957b7fe00ebf8953f8259 Mon Sep 17 00:00:00 2001 From: utam0k Date: Sun, 11 Feb 2024 21:46:06 +0900 Subject: [PATCH] Fix the links of contest Signed-off-by: utam0k --- docs/src/developer/e2e/rust_oci_test.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/developer/e2e/rust_oci_test.md b/docs/src/developer/e2e/rust_oci_test.md index d362a936..3816f787 100644 --- a/docs/src/developer/e2e/rust_oci_test.md +++ b/docs/src/developer/e2e/rust_oci_test.md @@ -19,7 +19,7 @@ We will not go into detail here, but will explain how to write and add a new tes

```rust,no_run,noplayground -{{#include ../../../../tests/integration_test/src/tests/example/hello_world.rs}} +{{#include ../../../../tests/contest/contest/src/tests/example/hello_world.rs}} ```

@@ -33,31 +33,31 @@ We will not go into detail here, but will explain how to write and add a new tes Therefore, it is common practice here to write an OCI Runtime Spec that executes `runtimetest`. ```rust,no_run,noplayground -{{#include ../../../../tests/integration_test/src/tests/example/hello_world.rs:get_example_spec}} +{{#include ../../../../tests/contest/contest/src/tests/example/hello_world.rs:get_example_spec}} ``` 2. Prepare a function that returns a `TestResult`, which represents the result of the test. ```rust,no_run,noplayground -{{#include ../../../../tests/integration_test/src/tests/example/hello_world.rs:example_test}} +{{#include ../../../../tests/contest/contest/src/tests/example/hello_world.rs:example_test}} ``` 3. Create a `TestGroup` and register a test case you created ```rust,no_run,noplayground -{{#include ../../../../tests/integration_test/src/tests/example/hello_world.rs:get_example_test}} +{{#include ../../../../tests/contest/contest/src/tests/example/hello_world.rs:get_example_test}} ``` 4. Register the `TestGroup` you created to a `TestManager` ```rust,no_run,noplayground -{{#include ../../../../tests/integration_test/src/main.rs:register_example_test}} +{{#include ../../../../tests/contest/contest/src/main.rs:register_example_test}} ``` 5. Write the validation you want to run within a test container ```rust,no_run,noplayground -{{#include ../../../../tests/runtimetest/src/main.rs:example_runtimetest_main}} +{{#include ../../../../tests/contest/runtimetest/src/main.rs:example_runtimetest_main}} ``` ```rust,no_run,noplayground -{{#include ../../../../tests/runtimetest/src/tests.rs:example_hello_world}} +{{#include ../../../../tests/contest/runtimetest/src/tests.rs:example_hello_world}} ```