e8850549d2
* Decouple BoltSession and communication::bolt::Session * Add CREATE/USE/DROP DATABASE * Add SHOW DATABASES * Cover WebSocket session * Simple session safety implemented via RWLock * Storage symlinks for backward. compatibility * Extend the audit log with the DB info * Add auth part * Add tenant recovery
46 lines
883 B
Bash
Executable File
46 lines
883 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$DIR"
|
|
|
|
binary_dir="$DIR/../../../build"
|
|
|
|
# Start the memgraph process.
|
|
$binary_dir/memgraph &
|
|
pid=$!
|
|
|
|
# Wait for the database to start up.
|
|
while ! nc -z -w 1 127.0.0.1 7687; do
|
|
sleep 0.5
|
|
done
|
|
|
|
# Start the test on default db.
|
|
$binary_dir/tests/integration/transactions/tester
|
|
code=$?
|
|
|
|
# Start the test on another db.
|
|
$binary_dir/tests/integration/transactions/tester --use-db db1
|
|
code2=$?
|
|
|
|
# Shutdown the memgraph process.
|
|
kill $pid
|
|
wait $pid
|
|
code_mg=$?
|
|
|
|
# Check memgraph exit code.
|
|
if [ $code_mg -ne 0 ]; then
|
|
echo "The memgraph process didn't terminate properly!"
|
|
exit $code_mg
|
|
fi
|
|
|
|
# Exit with the exitcode of the test.
|
|
if [ $code -ne 0 ]; then
|
|
echo "Default database tests failed!"
|
|
exit $code
|
|
fi
|
|
|
|
if [ $code2 -ne 0 ]; then
|
|
echo "Non default database tests failed!"
|
|
exit $code2
|
|
fi
|