If multiple memgraph binaries, run newest
Reviewers: buda Reviewed By: buda Differential Revision: https://phabricator.memgraph.io/D363
This commit is contained in:
parent
cee2405f85
commit
3e6fa7bd51
7
run
7
run
@ -5,7 +5,7 @@ function print_usage_and_exit {
|
|||||||
echo "Required arguments:"
|
echo "Required arguments:"
|
||||||
echo -e " --test-suite test_suite\trun test_suite scenarios, test_suite must be test folder in tck_engine/tests."
|
echo -e " --test-suite test_suite\trun test_suite scenarios, test_suite must be test folder in tck_engine/tests."
|
||||||
echo "Optional arguments:"
|
echo "Optional arguments:"
|
||||||
echo -e " --unstable\trun unstable scenarios"
|
echo -e " --unstable\trun unstable scenarios"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,14 +56,15 @@ function cleanup_and_exit {
|
|||||||
|
|
||||||
cd ${memgraph_build_dir}
|
cd ${memgraph_build_dir}
|
||||||
# binary is available after the build
|
# binary is available after the build
|
||||||
binary_name=$(find ${memgraph_build_dir}/ -maxdepth 1 -executable -name "memgraph*")
|
binary_name=$(find ${memgraph_build_dir}/ -maxdepth 1 -executable \
|
||||||
|
-name "memgraph*" | sort | tail -n 1)
|
||||||
|
|
||||||
# get full path to memgraph config for interpreted queries
|
# get full path to memgraph config for interpreted queries
|
||||||
config_path="${memgraph_src_dir}/config/memgraph.yaml"
|
config_path="${memgraph_src_dir}/config/memgraph.yaml"
|
||||||
|
|
||||||
# run scenarios
|
# run scenarios
|
||||||
cd ${script_dir}
|
cd ${script_dir}
|
||||||
tck_flags="--root tck_engine/tests/$test_suite
|
tck_flags="--root tck_engine/tests/$test_suite
|
||||||
--graphs-root tck_engine/tests/$test_suite
|
--graphs-root tck_engine/tests/$test_suite
|
||||||
--no-side-effects --db memgraph"
|
--no-side-effects --db memgraph"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user