#!/bin/sh
# Compile CaseAppTest.scala with the installed compiler against the
# installed jars and run it. Upstream's tests need utest, not in Debian yet.
set -eu
T=${AUTOPKGTEST_TMP:-$(mktemp -d)}
J=/usr/share/java
cp="$J/case-app-3.jar:$J/case-app-annotations-3.jar:$J/sourcecode-3.jar"
scalac-3 -d "$T" -cp "$cp" debian/tests/CaseAppTest.scala
java -cp "$J/scala-library-3.jar:$cp:$T" CaseAppTest
