zx/test_prep
2018-08-03 14:55:33 +00:00

15 lines
383 B
Bash
Executable File

#!/bin/bash
# This script prepares a general test environment.
# If it is invoked as $(path/to/script) the first time it is run the necessary
# environment variable will be exported.
pushd $(dirname $BASH_SOURCE) > /dev/null
ZX_DEV_ROOT=$PWD
popd > /dev/null
ZOMP_DIR="$ZX_DEV_ROOT/tester"
rm -rf "$ZOMP_DIR"
cp -r "$ZX_DEV_ROOT/zomp" "$ZOMP_DIR"
echo "export ZOMP_DIR=$ZOMP_DIR"