fix: testing behaviour

This commit is contained in:
Tobias Reisinger 2020-06-26 01:36:30 +02:00
parent 6c6e5023da
commit c3ad561418
2 changed files with 7 additions and 2 deletions

View file

@ -53,7 +53,7 @@ add_custom_target(docs
)
add_custom_target(test
COMMAND ./run_tests.sh ${CMAKE_BINARY_DIR}/core "dev"
COMMAND ./run_tests.sh ${CMAKE_BINARY_DIR}/core
DEPENDS core
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests
)

View file

@ -16,7 +16,12 @@ cd $working_dir
git clone --quiet ssh://git@git.serguzim.me:3022/emgauwa/controller.git controller || exit
pushd ./controller > /dev/null
git checkout $2
git checkout dev >/dev/null 2>&1
git checkout $(git rev-parse --abbrev-ref HEAD) >/dev/null 2>&1
git checkout $2 >/dev/null 2>&1
echo "Building controller on branch $(git rev-parse --abbrev-ref HEAD)"
mkdir build
cd build