lsyncd/tests/ci-run.sh

21 lines
394 B
Bash
Raw Normal View History

2021-12-09 12:50:15 +00:00
#!/usr/bin/env bash
set -ex
function cleanup() {
echo "** abort. cleanup ssh server"
cd `dirname $BASH_SOURCE`/..
# CLEANUP=`dirname $BASH_SOURCE`/../teardown.lua
lua tests/teardown.lua
}
trap cleanup INT EXIT
2021-12-09 12:50:15 +00:00
SRC=`pwd`
BUILD_FOLDER=`mktemp -d`
echo "Build folder: $BUILD_FOLDER"
cd $BUILD_FOLDER
cmake $SRC
make VERBOSE=1
make run-tests
2021-12-09 12:50:15 +00:00
rm -rf $BUILD_FOLDER