PLATFORM="../../../../../platforms/tsar_generic_iob/"
OUTDIR=output

make
./$PLATFORM/scripts/onerun.py -o $OUTDIR -p $PLATFORM -x1 -y1 -n1 -c

export SOCLIB_FB=HEADLESS
export SOCLIB_TTY=FILES
./$PLATFORM/simul.x -SOFT build/soft.elf -DISK /dev/null 2> /dev/null >> $OUTDIR/log
soclib-cleanup-terms &>/dev/null
mv term0 $OUTDIR/term
grep -q "success" $OUTDIR/term
if [ $? == 0 ]; then
	echo "Success"
else
	echo "Failure"
fi
