Add variable CTEST_BRANCH to be passed on continous or nightly tests to define...

Add variable CTEST_BRANCH to be passed on continous or nightly tests to define witch branch must be tested
parent fd59d6e3
......@@ -53,6 +53,14 @@ For a local test in your machine with not cdash rapport :
ctest
Run Test for a specific branch :
-------------------------------
XXXXX = {Nightly,,Experimental,Continuous}
ctest -VV -S openVibeTests.cmake,XXXXX -DCTEST_BRANCH="my_remote_branch"
How to add new test:
-------------------
......@@ -91,7 +99,35 @@ SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "
SET_TESTS_PROPERTIES(comparator_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME}}
Test GUI using sikuli-ide :
-------------------------
If you have installed sikuli-ide in your linux machine them some GUI test are launch.
For GUI test with sikuli we need a complete gtk windows manager. Actually, we only test with gnome whole package.
You need to set the same GTK icon theme between machine that generate test and slave.
You can install (on ubuntu) :
sudo aptitude install gnome-tweak-tool ubuntu-mono ttf-ubuntu-font-family light-themes dmz-cursor-theme
them lanch :
gnome-tweak-tool
switch icon theme to Ubuntu-Mono-Dark
switch GTK+ theme to Ambiance
if there is Windows theme then switch to Ambiance
switch Cursor theme to DMZ-White
Some Remarks :
------------
This test run designer with no GUI, but in Linux it still need a X11 context. So you need to be sure that test can access to a X server. That will be do by a automatic start-up of "Xorg -ac&" command to ensure that X server is launched at test moment.
That's why we need to define DISPLAY environment variable before launch test.
......
......@@ -15,7 +15,11 @@ find_program(HOSTNAME_CMD NAMES hostname)
exec_program(${HOSTNAME_CMD} ARGS OUTPUT_VARIABLE HOSTNAME)
IF(NOT DEFINED CTEST_SITE)
SET(CTEST_SITE "${HOSTNAME}")
ENDIF(NOT DEFINED CTEST_SITE)
ENDIF(NOT DEFINED CTEST_SITE)
IF(NOT DEFINED CTEST_BRANCH)
SET(CTEST_BRANCH "master")
ENDIF(NOT DEFINED CTEST_BRANCH)
## -- Set site / build name
## --------------------------
......@@ -38,7 +42,7 @@ getuname(osname -s)
getuname(osrel -r)
getuname(cpu -m)
set(CTEST_BUILD_NAME "${osname}_${cpu}_${distrib}${distrib-release}")
set(CTEST_BUILD_NAME "${CTEST_BRANCH}_${osname}_${cpu}_${distrib}${distrib-release}")
# -----------------------------------------------------------
......@@ -83,7 +87,7 @@ find_program(CTEST_GIT_COMMAND NAMES git)
## -- Checkout command
if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} clone git://scm.gforge.inria.fr/openvibe/openvibe.git ${CTEST_SOURCE_DIRECTORY}")
set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} clone -B {CTEST_BRANCH} git://scm.gforge.inria.fr/openvibe/openvibe.git ${CTEST_SOURCE_DIRECTORY}")
endif(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
## -- Update Command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment