mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-12 09:26:31 +00:00
6d59786363
Make use of GitLab-CI nested virutal environment to start QEMU instance inside containers and perform btrfs-progs build, execute unit test cases and save the logs. This allows to run the progs testsuite on a recent kernel, newer than what CI instances usually provide. As this is is emulated, the runtime is longer. Issue: #171 Signed-off-by: Lakshmipathi.G <lakshmipathi.ganapathi@collabora.com> Signed-off-by: David Sterba <dsterba@suse.com>
13 lines
424 B
Bash
Executable File
13 lines
424 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Install and start qemu instance with custom kernel while exporting
|
|
# btrfs-progs src over 9p
|
|
#
|
|
set -x
|
|
|
|
qemu-system-x86_64 -m 512 -nographic -kernel /repo/bzImage \
|
|
-drive file=/repo/qemu-image.img,index=0,media=disk,format=raw \
|
|
-fsdev local,id=btrfs-progs,path=/repo,security_model=mapped \
|
|
-device virtio-9p-pci,fsdev=btrfs-progs,mount_tag=btrfs-progs \
|
|
-append "console=tty1 root=/dev/sda rw"
|