If multiple memgraph binaries, run newest

Reviewers: buda

Reviewed By: buda

Differential Revision: https://phabricator.memgraph.io/D363
This commit is contained in:
Mislav Bradac 2017-05-15 09:53:16 +02:00
parent cee2405f85
commit 3e6fa7bd51

7
run
View File

@ -5,7 +5,7 @@ function print_usage_and_exit {
echo "Required arguments:"
echo -e " --test-suite test_suite\trun test_suite scenarios, test_suite must be test folder in tck_engine/tests."
echo "Optional arguments:"
echo -e " --unstable\trun unstable scenarios"
echo -e " --unstable\trun unstable scenarios"
exit 1
}
@ -56,14 +56,15 @@ function cleanup_and_exit {
cd ${memgraph_build_dir}
# 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
config_path="${memgraph_src_dir}/config/memgraph.yaml"
# run scenarios
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
--no-side-effects --db memgraph"