Skip to content

Commit

Permalink
Re #8882. Run the unit tests in random order.
Browse files Browse the repository at this point in the history
Otherwise the ctest default is to run the slowest tests first, which
tend to be the ones hitting the disk so they all fight for IO at the
same time and get even slower. This should mitigate against that.
  • Loading branch information
RussellTaylor committed Apr 3, 2014
1 parent 5f580e9 commit 8fa04ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Build/Jenkins/buildscript
Expand Up @@ -55,7 +55,7 @@ make -j$BUILD_THREADS AllTests
###############################################################################
# Remove any Mantid.user.properties file
rm ~/.mantid/Mantid.user.properties
ctest -j$BUILD_THREADS --output-on-failure -E MantidPlot
ctest -j$BUILD_THREADS --schedule-random --output-on-failure -E MantidPlot
# Run GUI tests serially
#ctest --output-on-failure --timeout 30 -R MantidPlot

2 changes: 1 addition & 1 deletion Code/Mantid/Build/Jenkins/buildscript.bat
Expand Up @@ -48,7 +48,7 @@ if ERRORLEVEL 1 EXIT /B %ERRORLEVEL%
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Run the tests
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
"C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" -C Release -j%BUILD_THREADS% --output-on-failure -E MantidPlot
"C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" -C Release -j%BUILD_THREADS% --schedule-random --output-on-failure -E MantidPlot
:: Run GUI tests serially
::ctest -C Release --timeout 30 --output-on-failure -R MantidPlot

0 comments on commit 8fa04ef

Please sign in to comment.