#! /bin/sh

cd ../data

../server/simxd &

pid=$!

cd ../test

if simxtest; then
    echo test passed.
    kill -9 $pid >/dev/null
else
    echo test failed.
    kill -9 $pid >/dev/null
    exit 1
fi
