#!/bin/bash

LOGFILE=lastTestRun.txt
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

matlab -nodesktop -nosplash -logfile "$DIR/$LOGFILE" -r "run('$DIR/runAll.m');";
CODE=$?

cat "$DIR/$LOGFILE"

exit $CODE
