diff --git a/tools/test-setup.sh b/tools/test-setup.sh new file mode 100755 index 000000000..092ea846a --- /dev/null +++ b/tools/test-setup.sh @@ -0,0 +1,13 @@ +#!/bin/bash -xe + +# This script will be run by OpenStack CI before unit tests are run, +# it sets up the test system as needed. +# Developers should setup their test systems in a similar way. + +# This setup needs to be run as a user that can run sudo. + +# Config Zookeeper to run on tmpfs +sudo service zookeeper stop +DATADIR=$(sed -n -e 's/^dataDir=//p' /etc/zookeeper/conf/zoo.cfg) +sudo mount -t tmpfs -o nodev,nosuid,size=500M none $DATADIR +sudo service zookeeper start