-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·51 lines (41 loc) · 1.8 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -o allexport
source ./.env
set +o allexport
set -e
echo NEO4J_VERSION=$NEO4J_VERSION
echo MEMGRAPH_VERSION=$MEMGRAPH_VERSION
echo ARANGODB_VERSION=$ARANGODB_VERSION
####################################################
echo Neo4j tests dry run
DB_TYPE=NEO4J URL=bolt://localhost:7687 gradle test -i --rerun
echo Neo4j tests run
rm ./build/*.csv
DB_TYPE=NEO4J URL=bolt://localhost:7687 gradle test -i --rerun | tee ./build/test.log
cat ./build/test.log | awk '/STANDARD_ERROR/,/Gradle Test Executor/' >./results/neo4j/neo4j-console-results.md
rm ./results/neo4j/*.csv
mv ./build/*.csv ./results/neo4j/
####################################################
echo Memgraph tests dry run
DB_TYPE=MEMGRAPH URL=bolt://localhost:7688 gradle test -i --rerun
echo Memgraph tests run
rm ./build/*.csv
DB_TYPE=MEMGRAPH URL=bolt://localhost:7688 gradle test -i --rerun | tee ./build/test.log
cat ./build/test.log | awk '/STANDARD_ERROR/,/Gradle Test Executor/' >./results/memgraph/memgraph-console-results.md
rm ./results/memgraph/*.csv
mv ./build/*.csv ./results/memgraph/
####################################################
echo ArangoDB tests dry run
DB_NAME=test DB_TYPE=ARANGODB URL=localhost:8529 gradle test -i --rerun
echo ArangoDB tests run
rm ./build/*.csv
DB_NAME=test DB_TYPE=ARANGODB URL=localhost:8529 gradle test -i --rerun | tee ./build/test.log
cat ./build/test.log | awk '/STANDARD_ERROR/,/Gradle Test Executor/' >./results/arangodb/arangodb-console-results.md
rm ./results/arangodb/*.csv
mv ./build/*.csv ./results/arangodb/
####################################################
echo Combining results
rm ./results/master-results.csv || true
gradle combineResults
cp ./results/master-results.csv ./results/`date +%Y%m%d`_neo4j-$NEO4J_VERSION_memgraph-$MEMGRAPH_VERSION_arangodb-$ARANGODB_VERSION.csv
echo DONE.