#!/bin/bash

set -e

TOP_DIR=$(dirname $(realpath "$0"))

echo "==== Unit tests ===="
resetswift
$TOP_DIR/.unittests $@

echo "==== Func tests ===="
resetswift
startmain
$TOP_DIR/.functests $@

echo "==== Probe tests ===="
resetswift
$TOP_DIR/.probetests $@

echo "All tests runs fine"

exit 0
