diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 01a046b98d0c144349b156cb6c2256e2f147d439..7fc21f69fa04d90dfbe2d08a773e2ea1e44adc6e 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -243,6 +243,10 @@ if(ROOT_roofit_FOUND)
   endif()  
   configure_file(stressRooFit_ref.root stressRooFit_ref.root COPYONLY)
   ROOT_ADD_TEST(test-stressroofit COMMAND stressRooFit FAILREGEX "FAILED|Error in" LABELS longtest)
+  ROOT_ADD_TEST(test-stressroofit-batchmode-cpu COMMAND stressRooFit -b cpu FAILREGEX "FAILED|Error in" LABELS longtest)
+  if(CUDA_FOUND)
+    ROOT_ADD_TEST(test-stressroofit-batchmode-cuda COMMAND stressRooFit -b cuda FAILREGEX "FAILED|Error in" LABELS longtest)
+  endif()
   ROOT_ADD_TEST(test-stressroofit-interpreted COMMAND ${ROOT_root_CMD} -b -q -l ${CMAKE_CURRENT_SOURCE_DIR}/stressRooFit.cxx
                 FAILREGEX "FAILED|Error in" DEPENDS test-stressroofit )