From 18aaa6fee1ed817300fb1857d522191397e5ca6b Mon Sep 17 00:00:00 2001 From: taylanisikdemir Date: Tue, 23 Jan 2024 13:54:53 -0800 Subject: [PATCH] Add a helper script to run cassandra and execute tests (#5620) --- scripts/run_cass_and_test.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/run_cass_and_test.sh diff --git a/scripts/run_cass_and_test.sh b/scripts/run_cass_and_test.sh new file mode 100755 index 00000000000..361a453d7ec --- /dev/null +++ b/scripts/run_cass_and_test.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -eo pipefail + +function finish { + echo "shut down containers" + docker-compose -f docker/docker-compose.yml down; +} +trap finish EXIT + +# shut down containers +docker-compose -f docker/docker-compose.yml down; + +# run cassandra container +docker-compose -f docker/docker-compose.yml up -d cassandra; + +# run the tests with cassandra +CASSANDRA=1 make test | tee test.log;