Mother2GbaTranslation/docker-scripts/docker-test-rom-script

25 lines
821 B
Plaintext
Raw Normal View History

#!/bin/pwsh
"Starting Dummy services"
Xvfb :1 -screen 0 1024x768x16 &
$Env:DISPLAY = ":1.0"
bash /home/m2gba/src/docker-scripts/xvfb_ready.sh
pulseaudio -D --exit-idle-time=-1
pactl load-module module-null-sink sink_name=SpeakerOutput sink_properties=device.description="Dummy_Output"
$Env:PATH += ":/home/m2gba/.dotnet:/home/m2gba/.dotnet/tools"
Copy-Item -Path "\home\m2gba\src\*" -Destination "\opt\src" -Recurse -Force
"Starting to build tools"
./build-tools.ps1
"Starting to build test rom"
./test.ps1
"Copying test log to output"
New-Item -Path "\home\m2gba\src" -Name "out" -ItemType "directory" -Force
Copy-Item -Path ".\bin\test.log" "\home\m2gba\src\out"
Copy-Item -Path ".\bin\m12test.gba" "\home\m2gba\src\out"
"Test ran successfully, please review the ./out folder for the resulting logs and test rom"