@@ -24,31 +24,34 @@ Each individual test runs in a container. To reproduce a test locally, you can
2424use the dev-container on both x86 and arm64.
2525
2626``` bash
27+ container_version=5
2728docker run -it \
2829 --security-opt seccomp=unconfined \
2930 --volume $( pwd) :/linux-loader \
30- rustvmm/dev:v2
31+ rustvmm/dev:v ${container_version}
3132cd linux-loader/
3233cargo test
3334```
3435
3536### bzImage test
3637
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 \
4952 --security-opt seccomp=unconfined \
5053 --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
5457```
0 commit comments