1212#BuildFlag is the full path to the file that Jenkins will modify when its build
1313#is complete. The single-line content of this file is the full path to the directory
1414#where Jenkins built the latest version of OpenSpace
15- BuildFlag = "C:/Users/OpenSpace /Desktop/latestBuild.txt"
15+ BuildFlag = "/home/openspace /Desktop/latestBuild.txt"
1616#OsSyncDir is the full path to the sync directory that all Jenkins builds should use.
1717#This saves test time, preventing the new build from downloading all of the sync data.
18- OsSyncDir = "C:/Users/OpenSpace /Desktop/SYNC "
18+ OsSyncDir = "/home/openspace /Desktop/sync "
1919#OpenSpaceExeInOs is the relative path (from ${BASE}) to the OpenSpace executable.
20- OpenSpaceExeInOs = "bin/Debug/ OpenSpace.exe "
20+ OpenSpaceExeInOs = "bin/OpenSpace"
2121LogFile = "log/testLog.txt"
2222#Platform must be either "windows" or "linux"
23- Platform = "windows "
23+ Platform = "linux "
2424#ImageTestingSubdirInOs is relative path to the visual tests (.ostest files) from ${BASE}
2525ImageTestingSubdirInOs = "tests/visual"
2626#UsrRecordSubdirInOs is relative path to the session recording files from ${BASE}
@@ -46,6 +46,10 @@ def parserInitialization():
4646 "test specified here, instead of at the beginning. " \
4747 "Provide in 'group/testFile.ostest' format." ,
4848 required = False , default = "" )
49+ parser .add_argument ("-l" , "--list-only" , dest = "listOnly" ,
50+ help = "Provides a full list of the tests to be run " \
51+ "in the proper order, but does not run any tests." ,
52+ required = False , action = 'store_true' , default = False )
4953 except ImportError :
5054 parser = None
5155 return parser
@@ -238,8 +242,13 @@ def verifyCustomFile(osDir, testFile, messagePrefix):
238242 args .customDir = getPathFromJenkinsTriggerFile ()
239243 else :
240244 customizedTest = True
241- logAndDisplayMsg (f"Running test(s) on OpenSpace installation at " \
242- f"{ args .customDir } ." )
245+ logAndDisplayMsg (f"Using OpenSpace installation at { args .customDir } ." )
246+
247+ if args .listOnly == True :
248+ allTestsListed = listAllTestFiles (args .customDir )
249+ for i in range (0 , len (allTestsListed )):
250+ logAndDisplayMsg (f" { i + 1 } { allTestsListed [i ]} " )
251+ quit (0 )
243252
244253 if args .startAtTest != "" :
245254 verifyCustomFile (args .customDir , args .startAtTest , "Starting test file run at " )
0 commit comments