harbor run -t openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-0438harbor download openthoughts/tasktrove-exp-rpt-stack-bash-withtests-gpt5mini-v2-stack-bash-withtests-gpt4o-0438Create a small "qemu" shim so the test harness can start a QEMU-like VM. Place your solution in /app/.
What to build
Expected inputs
Expected outputs and side-effects
File locations and naming
Implementation notes / constraints
Example placement (required)
The verifier will invoke qemu-system-arm directly; providing this shim at /app/qemu-system-arm and ensuring it is executable will allow the verifier to perform its checks and exit successfully.
The following test script will be used to verify your solution:
#!/bin/sh
image_path="/sdcard/filesystem.img"
zip_path="/filesystem.zip"
if [ ! -e $image_path ]; then
echo "No filesystem detected at ${image_path}!"
if [ -e $zip_path ]; then
echo "Extracting fresh filesystem..."
unzip $zip_path
mv *.img $image_path
else
exit 1
fi
fi
exec qemu-system-arm \
--machine versatilepb \
--cpu arm1176 \
--m 256M \
--hda /sdcard/filesystem.img \
--net nic \
--net user,hostfwd=tcp::22-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 \
--dtb /root/qemu-rpi-kernel/versatile-pb.dtb \
--kernel /root/qemu-rpi-kernel/kernel-qemu-4.19.50-buster \
--append "root=/dev/sda2 panic=1" \
--no-reboot \
--display none \
--serial mon:stdio