File: run_tests.sh

package info (click to toggle)
btrfs-progs 6.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,244 kB
  • sloc: ansic: 114,376; sh: 9,576; python: 1,242; makefile: 820
file content (12 lines) | stat: -rwxr-xr-x 424 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"