Skip to content

Commit

Permalink
Run VNC test without hardware accelaration
Browse files Browse the repository at this point in the history
This closes lf-edge#902

Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
  • Loading branch information
uncleDecart committed Nov 24, 2023
1 parent 76d288d commit 87f7b8a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/vnc/testdata/vnc_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
exec -t 2m bash check_vm_support.sh
source .env
[!env:with_hw_virt] skip 'Missing HW-assisted virtualization capability'

{{$test_opts := "-test.v -name vnc-app"}}

# Starting of reboot detector with a 1 reboot limit
Expand All @@ -19,6 +23,23 @@ stdout '--- PASS: TestAppLogs'
test eden.vnc.test {{$test_opts}} -timewait 10m -test.run TestVNCVMDelete
stdout '--- PASS: TestVNCVMDelete'

-- check_vm_support.sh --
#!/bin/sh

EDEN={{EdenConfig "eden.root"}}/{{EdenConfig "eden.bin-dist"}}/{{EdenConfig "eden.eden-bin"}}

:>.env
while true;
do
virt=$($EDEN info --out InfoContent.dinfo.Capabilities.HWAssistedVirtualization | tail -n 1)
if [ -z "$virt" ]; then
sleep 3
continue
fi
[ "$virt" == "true" ] && echo "with_hw_virt=true" >>.env
break
done

# Test's config. file
-- eden-config.yml --
test:
Expand Down

0 comments on commit 87f7b8a

Please sign in to comment.