2017-06-12 17:29:46 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-07-13 02:17:26 +08:00
|
|
|
set -e
|
|
|
|
|
2017-06-12 17:29:46 +08:00
|
|
|
VIRTUALENV=virtualenv
|
|
|
|
PIP=pip
|
|
|
|
PYTHON=python
|
|
|
|
WORKING_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
cd ${WORKING_DIR}
|
|
|
|
|
|
|
|
# system check
|
|
|
|
if ! which $VIRTUALENV >/dev/null; then
|
|
|
|
echo "Please install virtualenv!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# setup virtual environment
|
|
|
|
if [ ! -d "ve3" ]; then
|
2017-07-13 02:17:26 +08:00
|
|
|
virtualenv -p python3 ve3 || exit 1
|
2017-06-12 17:29:46 +08:00
|
|
|
fi
|
|
|
|
source ve3/bin/activate
|
|
|
|
$PIP install --upgrade pip
|
|
|
|
$PIP install neo4j-driver
|
|
|
|
|
|
|
|
# execute test
|
2017-07-13 02:17:26 +08:00
|
|
|
$PYTHON basic.py
|
|
|
|
$PYTHON max_query_length.py
|
2017-08-19 18:54:22 +08:00
|
|
|
$PYTHON transactions.py
|