forked from neo4j/neo4j-ogm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunall.sh
executable file
·29 lines (24 loc) · 968 Bytes
/
runall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# build and package with dependencies. This is done once only
mvn clean package -DskipTests=true
mvn dependency:copy-dependencies
# set up the classpath
INSTALLED_LIBS="../../api/target/*:../../compiler/target/*:../../core/target/*:../../drivers/target/*:../../test/target/*"
# set up the configurations. All tests will run for each of these configurations
CONFIGURATIONS=(
"ogm-http.properties"
"ogm-embedded.properties"
)
function run-tests {
pushd $1/target
find test-classes -name *Test.class | sed -e "s/\.class//" -e "s/\//./g" -e "s/test-classes\.//" | xargs java -Dogm.properties="$CONFIGURATION" -cp $INSTALLED_LIBS:./dependency/* org.junit.runner.JUnitCore
popd
}
for CONFIGURATION in "${CONFIGURATIONS[@]}"
do
echo "Running tests using configuration: $CONFIGURATION"
#read -n 1 -s # uncomment this if you want to wait for user input
run-tests "api"
run-tests "drivers"
run-tests "core"
done