Merge pull request #265 from sched-ext/ci-enable-kvm

ci: enable kvm support in the github workflow
This commit is contained in:
Tejun Heo 2024-05-03 11:50:57 -10:00 committed by GitHub
commit 257d48d65a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 6 deletions

View File

@ -61,5 +61,11 @@ jobs:
# debugging purposes)
- run: grep 'model name' /proc/cpuinfo | head -1
# Setup KVM support
- run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Test schedulers
- run: meson compile -C build test_sched

View File

@ -39,14 +39,15 @@ for sched in ${SCHEDULERS}; do
rm -f /tmp/output
timeout --preserve-status ${GUEST_TIMEOUT} \
vng --force-9p --disable-microvm -v -r ${kernel} -- \
vng --force-9p -v -r ${kernel} -- \
"timeout --foreground --preserve-status ${TEST_TIMEOUT} ${sched_path}" \
2> >(tee /tmp/output) </dev/null
sed -n -e '/\bBUG:/q1' \
-e '/\bWARNING:/q1' \
-e '/\berror\b/Iq1' \
-e '/\bstall/Iq1' \
-e '/\btimeout\b/Iq1' /tmp/output
grep -v " Speculative Return Stack Overflow" /tmp/output | \
sed -n -e '/\bBUG:/q1' \
-e '/\bWARNING:/q1' \
-e '/\berror\b/Iq1' \
-e '/\bstall/Iq1' \
-e '/\btimeout\b/Iq1'
res=$?
if [ ${res} -ne 0 ]; then
echo "FAIL: ${sched}"