@@ -27,11 +27,15 @@ To run the unit tests of the kernel:
2727To run the integration tests of the kernel:
2828
29291 . ` cd kernel `
30- 1 . ` RUST_TEST_THREADS=1 cargo test --test integration-test `
30+ 1 . ` RUST_TEST_THREADS=1 cargo test --test '*' `
3131
3232If you would like to run a specific integration test you can pass it with ` -- ` :
3333
34- 1 . ` RUST_TEST_THREADS=1 cargo test --test integration-test -- userspace_smoke `
34+ 1 . ` RUST_TEST_THREADS=1 cargo test --test '*' -- userspace_smoke `
35+
36+ If you would like to run a specific set of integration tests, you can specify the file name with ` --test ` :
37+
38+ 1 . ` RUST_TEST_THREADS=1 cargo test --test s00_core_test `
3539
3640In case an integration test fails, adding ` --nocapture ` at the end (needs to
3741come after the ` -- ` ) will make sure that the underlying ` run.py ` invocations are
@@ -72,7 +76,7 @@ flags will also choose a different main() function than the one you're seeing
7276There is two parts to the integration test.
7377
7478- The host side (that will go off and spawn a qemu instance) for running the
75- integration tests. It is found in ` kernel/tests/integration-test.rs ` .
79+ integration tests. It is found in ` kernel/tests ` .
7680- The corresponding main functions in the kernel that gets executed for a
7781 particular example are located at ` kernel/src/integration_main.rs `
7882
@@ -84,7 +88,7 @@ To add a new integration test the following tests may be necessary:
8488 ` kernel/src/integration_main.rs ` with the used feature name as an annotation.
8589 It may also be possible to re-use an existing xmain function, in that case
8690 make not of the feature name used to include it.
87- 1 . Add a runner function to ` kernel/tests/integration-test.rs ` that builds the
91+ 1 . Add a runner function to one of the files in ` kernel/tests ` that builds the
8892 kernel with the cargo feature runs it and checks the output.
8993
9094Integration tests are divided into categories and named accordingly (partially
@@ -156,7 +160,7 @@ A fully automated CI test that checks the network using ping is available as
156160well, it can be invoked with the following command:
157161
158162``` bash
159- RUST_TEST_THREADS=1 cargo test --test integration-test -- s04_userspace_rumprt_net
163+ RUST_TEST_THREADS=1 cargo test --test ' * ' -- s04_userspace_rumprt_net
160164```
161165
162166### socat and netcat
0 commit comments