;;
esac
+if [ "$2" = "" ]; then
+ branch_name="unknown"
+else
+ branch_name="$2"
+fi
+echo "Branch built is $branch_name"
+
NUMBER_OF_PROCESSORS="$(nproc)" || NUMBER_OF_PROCESSORS=1
GENERATOR="Unix Makefiles"
# -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
set +x
-make -j$NUMBER_OF_PROCESSORS VERBOSE=1
+make -j$NUMBER_OF_PROCESSORS VERBOSE=1 tests
echo "XX"
echo "XX Run the tests"
mv CTestResults.xml $WORKSPACE
fi
-if test -n "$INSTALL" && [ ${BRANCH_NAME} = "master" ] ; then
+if test -n "$INSTALL" && [ ${branch_name} = "origin/master" ] ; then
echo "XX"
echo "XX Test done. Install everything since it's a regular build, not on a Windows."
echo "XX"