memgraph/tests/drivers/java/run.sh
Matej Ferencevic 6308ec6a34 Added javascript and java driver tests.
Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D438
2017-06-09 10:12:25 +02:00

24 lines
479 B
Bash
Executable File

#!/bin/bash
JAVA=java
JAVAC=javac
if ! which $JAVA >/dev/null; then
echo "Please install java!"
exit 1
fi
if ! which $JAVAC >/dev/null; then
echo "Please install javac!"
exit 1
fi
DRIVER=neo4j-java-driver.jar
if [ ! -f $DRIVER ]; then
wget -O $DRIVER http://central.maven.org/maven2/org/neo4j/driver/neo4j-java-driver/1.3.1/neo4j-java-driver-1.3.1.jar || exit 1
fi
javac -classpath .:$DRIVER test.java || exit 1
java -classpath .:$DRIVER test || exit 1