memgraph/tests/drivers/python/v4_1/run.sh
antonio2368 0bcc1d67bc
Add support for Bolt v4(.1) (#10)
* Added handshake support
* Add support for v4 hello and goodbye
* Add support for pulling n results
* Add support for transactions
* Add pull n for the dump
* Add support for NOOP
* Add support for multiple queries
* Update bolt session to support qid
* Update drivers test with multiple versions and go
* Extract failure handling into a function
* Use unique ptr instead of optional for query execution
* Destroy stream before query execution

Co-authored-by: Antonio Andelic <antonio.andelic@memgraph.io>
2020-10-16 12:49:33 +02:00

34 lines
948 B
Bash
Executable File

#!/bin/bash -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
# system check
if ! which virtualenv >/dev/null; then
echo "Please install virtualenv!"
exit 1
fi
# setup virtual environment
if [ ! -d "ve3" ]; then
# Driver downloaded from: https://pypi.org/project/neo4j-driver/1.5.3/
wget -nv https://files.pythonhosted.org/packages/cf/7d/32204b1c2d6f9f9d729bbf8273515c2b3ef42c0b723617d319f3e435f69e/neo4j-driver-4.1.1.tar.gz || exit 1
tar -xzf neo4j-driver-4.1.1.tar.gz || exit 1
mv neo4j-driver-4.1.1 neo4j-driver || exit 1
virtualenv -p python3 ve3 || exit 1
source ve3/bin/activate
cd neo4j-driver
python3 setup.py install || exit 1
cd ..
deactivate
rm -rf neo4j-driver neo4j-driver-4.1.1.tar.gz || exit 1
fi
# activate virtualenv
source ve3/bin/activate
# execute test
python3 basic.py || exit 1
python3 max_query_length.py || exit 1
python3 transactions.py || exit 1