memgraph/tests/drivers/node/v1/run.sh

20 lines
511 B
Bash
Raw Normal View History

#!/bin/bash -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
2020-09-21 18:22:40 +08:00
if ! which node >/dev/null; then
echo "Please install nodejs!"
exit 1
fi
if [ ! -d node_modules ]; then
# Driver generated with: `npm install neo4j-driver`
2020-09-23 01:52:26 +08:00
wget -nv https://s3-eu-west-1.amazonaws.com/deps.memgraph.io/drivers/javascript/neo4j-javascript-driver-1.6.1.tar.gz -O driver.tar.gz || exit 1
tar -xzf driver.tar.gz || exit 1
rm driver.tar.gz || exit 1
fi
2020-09-21 18:22:40 +08:00
node basic.js
node max_query_length.js