@@ -24,31 +24,34 @@ Each individual test runs in a container. To reproduce a test locally, you can
24
24
use the dev-container on both x86 and arm64.
25
25
26
26
``` bash
27
+ container_version=5
27
28
docker run -it \
28
29
--security-opt seccomp=unconfined \
29
30
--volume $( pwd) :/linux-loader \
30
- rustvmm/dev:v2
31
+ rustvmm/dev:v ${container_version}
31
32
cd linux-loader/
32
33
cargo test
33
34
```
34
35
35
36
### bzImage test
36
37
37
- As we don't want to distribute an entire kernel bzImage, the ` load_bzImage ` test is ignored by
38
- default. In order to test the bzImage support, one needs to locally build a bzImage, copy it
39
- to the ` src/loader ` directory and run cargo test:
40
-
41
- ``` shell
42
- # Assuming your linux-loader and linux-stable are both under $LINUX_LOADER
43
- $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $LINUX_LOADER /linux-stable
44
- $ cd linux-stable
45
- $ make bzImage
46
- $ cp linux-stable/arch/x86/boot/bzImage $LINUX_LOADER /linux-loader/src/loader/
47
- $ cd $LINUX_LOADER /linux-loader
48
- $ docker run -it \
38
+ As we don't want to distribute an entire kernel bzImage, the ` load_bzImage `
39
+ test is ignored by default. In order to test the bzImage support, one needs to
40
+ locally build a bzImage, copy it to the ` src/loader ` directory and run
41
+ ` cargo test ` :
42
+
43
+ ``` bash
44
+ # Assuming your linux-loader and linux-stable are both under ${LINUX_LOADER}:
45
+ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ${LINUX_LOADER} /linux-stable
46
+ cd linux-stable
47
+ make bzImage
48
+ cp linux-stable/arch/x86/boot/bzImage ${LINUX_LOADER} /linux-loader/src/loader/
49
+ cd ${LINUX_LOADER} /linux-loader
50
+ container_version=5
51
+ docker run -it \
49
52
--security-opt seccomp=unconfined \
50
53
--volume $( pwd) :/linux-loader \
51
- rustvmm/dev:v2
52
- $ cd linux-loader/
53
- $ cargo test
54
+ rustvmm/dev:v ${container_version}
55
+ cd linux-loader/
56
+ cargo test
54
57
```
0 commit comments