btrfs-progs/ci/gitlab/run_tests.sh
Lakshmipathi.G 6d59786363 btrfs-progs: ci: setup GitLab-CI
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>
2019-10-16 23:03:52 +02:00

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"