#!/bin/sh

# Inspired from upstream runsamples.sh

echo "Running sample test"

drawtiming -o $AUTOPKGTEST_TMP/sample.gif samples/sample.txt || exit 1

echo "PASSED sample test"
echo "Running statement test"

drawtiming -o $AUTOPKGTEST_TMP/statement1.gif samples/statement1.txt || exit 1

echo "PASSED statement test"
echo "Running memory test"

drawtiming -x 1.5 -o $AUTOPKGTEST_TMP/memory.gif samples/memory.txt || exit 1

echo "PASSED memory test"
echo "Running sample test with pagesize"

drawtiming -p 640x480 -o $AUTOPKGTEST_TMP/sample640x480.gif samples/sample.txt || exit 1

echo "PASSED sample test with pagesize"
echo "Running Guenter test"

drawtiming -o $AUTOPKGTEST_TMP/guenter.gif samples/guenter.txt || exit 1

echo "PASSED Guenter test"
