Skip to content

Commit 21f4f32

Browse files
Alexandra Iordacheandreeaflorescu
Alexandra Iordache
authored andcommitted
readme: cosmetic changes + pipeline update
Signed-off-by: Alexandra Iordache <[email protected]>
1 parent 9bb3ff1 commit 21f4f32

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

README.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,34 @@ Each individual test runs in a container. To reproduce a test locally, you can
2424
use the dev-container on both x86 and arm64.
2525

2626
```bash
27+
container_version=5
2728
docker run -it \
2829
--security-opt seccomp=unconfined \
2930
--volume $(pwd):/linux-loader \
30-
rustvmm/dev:v2
31+
rustvmm/dev:v${container_version}
3132
cd linux-loader/
3233
cargo 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

Comments
 (0)