name: Runs Qemu test case pci_emulation # This job is callewd from iso-build on: workflow_call: jobs: run-qemu: name: qemu testbench if: ${{ github.actor == 'torxed' }} runs-on: self-hosted steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@master with: name: Arch Live ISO path: ./_work/iso/ - run: echo '' > ./tests/qemu/serial.log # Generate a .screenrc that will auto-run the test # as well as record it for publishing using asciinema. - run: | cat <> .screenrc_test startup_message off chdir tests/qemu screen 0 python run_test.py split focus down resize 24 screen 1 asciinema rec demo.cast --overwrite -c "tail -f serial.log" EOF - run: pwd - run: cp /usr/share/ovmf/x64/OVMF_VARS.fd ./tests/qemu/OVMF_VARS.fd - run: rm ./tests/qemu/archtest.img - run: qemu-img create -f qcow2 ./tests/qemu/archtest.img 10G - run: tree - run: cat .screenrc_test - run: script -c "resize -s 24 80 && stty rows 24 && stty cols 80 && screen -c .screenrc_test" - uses: actions/upload-artifact@v4 with: name: archtest-pci_emulation path: ./tests/qemu/demo.cast