#!/bin/bash

# Erlang Unit Tests

SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
cd "$SCRIPT_DIR"

echo "=== Erlang Pi-beräkning Unit Tester ==="
echo ""

cd src
erlc pi_test.erl
erl -noshell -eval "pi_test:test()" -s init stop

exit $?