aboutsummaryrefslogtreecommitdiff
path: root/tools/run-tests
blob: 9ff5178ea12decbb979b3ece977f8b9dd48730ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..

cd "$BASEDIR/test"

# find all *Test.java files, remove extension, replace all '/' with .
TESTS=$( find . -name "*Test.java" | sed -e 's/\.java//' -e 's/..//' -e 's/\//\./g' )

echo Testing classes: $TESTS

java -cp "$BASEDIR/build:$BASEDIR/lib/*" org.junit.runner.JUnitCore $TESTS

cd $OLDPWD