Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
maska989 committed Oct 27, 2023
1 parent 93f125b commit a4ee89e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion psh/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ test:
harness: test-runfile.py
targets:
# runfile applet is not intended for non-rootfs targets
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo]
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: history
harness: test-history.py
Expand Down
11 changes: 11 additions & 0 deletions trunner/target/emulated.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import abstractmethod
import os
from typing import Callable

from trunner.ctx import TestContext
Expand Down Expand Up @@ -61,6 +62,16 @@ class IA32GenericQemuTarget(QemuTarget):
rootfs = True

def __init__(self):
os.system("sudo apt-get install -y libvirt-daemon-system qemu-system-common")
os.system("sudo systemctl enable libvirtd.service")
os.system("sudo systemctl start libvirtd.service")
os.system("sudo virsh net-autostart --network default")
os.system("sudo virsh net-start --network default")
os.system("sudo mkdir /etc/qemu")
os.system("sudo chmod a+rw /etc/qemu")
os.system("echo 'allow virbr0' > /etc/qemu/bridge.conf")
os.system("sudo chmod a+rw /etc/qemu/bridge.conf")

super().__init__("ia32-generic-qemu-test.sh")

@classmethod
Expand Down

0 comments on commit a4ee89e

Please sign in to comment.