#!/bin/sh
set -efu

export LEIN_HOME="$AUTOPKGTEST_TMP/.lein"
export LEIN_OFFLINE=true

ln -sf /usr/share/maven-repo "$AUTOPKGTEST_TMP"
cp -a project.clj test test-output "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
sed -i 's@debian/maven-repo@maven-repo@' project.clj

# generate the target files against which the testsuite is ran
lein with-profiles self-plugin cljx
lein test
