aboutgitcodebugslistschat
path: root/test/demo
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-11-04 02:16:21 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-11-04 12:04:32 +0100
commit667397db11aef9ac1cc0535c3feb48c807e75f79 (patch)
treed261a971cbe616eb8d45dbaf63cefc4703f3095f /test/demo
parent1401962a374b2ef8db44a3ef6a2ff2f68564d56f (diff)
downloadpasst-667397db11aef9ac1cc0535c3feb48c807e75f79.tar
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.tar.gz
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.tar.bz2
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.tar.lz
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.tar.xz
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.tar.zst
passt-667397db11aef9ac1cc0535c3feb48c807e75f79.zip
test: Switch to qemu -netdev stream option instead of using qrap
qemu commit 13c6be96618c ("net: stream: add unix socket") introduces support for native AF_UNIX support, finally making qrap useless. We can't quite drop that yet until a qemu release includes it, and then we'll need to wait a while for users to switch anyway, but at least for tests, we can use that support. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/demo')
-rw-r--r--test/demo/passt9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/demo/passt b/test/demo/passt
index ce40e20..879169f 100644
--- a/test/demo/passt
+++ b/test/demo/passt
@@ -85,7 +85,7 @@ guest cd passt
gout TARGET_PID pgrep -P $(cat pasta.pid)
sleep 1
-passtb ./passt -f -t 10001,10003
+passtb ./passt -f -t 10001,10003 -s __STATEDIR__/passt.socket
sleep 2
guest nsenter -t __TARGET_PID__ -U -n --preserve-credentials
@@ -93,14 +93,11 @@ sleep 5
nl
nl
-say We're ready to start qemu with the qrap wrapper,
+say We're ready to start qemu
nl
-say that we currently need to connect the netdev
-nl
-say back-end to passt's UNIX domain socket.
sleep 2
hout VMLINUZ echo "/boot/vmlinuz-$(uname -r)"
-guest ./qrap 5 qemu-system-x86_64 -enable-kvm -m 4096 -cpu host -smp 4 -kernel __VMLINUZ__ -initrd ../passt.img -nographic -serial stdio -nodefaults -append "console=ttyS0 virtio-net.napi_tx=1" -device virtio-net-pci,netdev=hostnet0,x-txburst=16384 -netdev socket,fd=5,id=hostnet0
+guest qemu-system-x86_64 -enable-kvm -m 4096 -cpu host -smp 4 -kernel __VMLINUZ__ -initrd ../passt.img -nographic -serial stdio -nodefaults -append "console=ttyS0" -device virtio-net-pci,netdev=s0 -netdev stream,id=s0,server=off,addr.type=unix,addr.path=__STATEDIR__/passt.socket
sleep 10
nl