#!/bin/sh

volumeName="qemu vvfat"

/bin/mountvolume -alldos
cp -r /system/add-ons/unittests /boot/home
(cd /boot/home/unittests && UnitTester) > /"$volumeName"/test_result.txt 2>&1

sleep 5 # in case there is a crash and report has to be written
cp /boot/home/Desktop/*.report /"$volumeName"/

sync
sleep 5

shutdown
