|
5 | 5 |
|
6 | 6 | #include "UTF_Basic_includes" |
7 | 7 |
|
8 | | -// Entry point for UTF |
9 | | -Function run() |
10 | | - |
11 | | - return RunWithOpts(instru = DoInstrumentation()) |
12 | | -End |
13 | | - |
14 | | -// Examples: |
15 | | -// - RunWithOpts() |
16 | | -// - RunWithOpts(testsuite = "UTF_Configuration.ipf") |
17 | | -// - RunWithOpts(testcase = "TestFindLevel") |
18 | | -Function RunWithOpts([string testcase, string testsuite, variable allowdebug, variable instru, string traceWinList, variable keepDataFolder, variable enableJU, variable enableRegExp]) |
19 | | - |
20 | | - variable debugMode |
21 | | - string traceOptions |
22 | | - string list = "" |
23 | | - string name = GetTestName() |
24 | | - variable waveTrackingMode = GetWaveTrackingMode() |
25 | | - |
26 | | - // speeds up testing to start with a fresh copy |
27 | | - KillWindow/Z HistoryCarbonCopy |
28 | | - |
29 | | - if(ParamIsDefault(allowdebug)) |
30 | | - debugMode = 0 |
31 | | - else |
32 | | - debugMode = IUTF_DEBUG_FAILED_ASSERTION | IUTF_DEBUG_ENABLE | IUTF_DEBUG_ON_ERROR | IUTF_DEBUG_NVAR_SVAR_WAVE |
33 | | - endif |
34 | | - |
35 | | - if(ParamIsDefault(testcase)) |
36 | | - testcase = "" |
37 | | - endif |
38 | | - |
39 | | - if(ParamIsDefault(instru)) |
40 | | - instru = 0 |
41 | | - else |
42 | | - instru = !!instru |
43 | | - endif |
44 | | - |
45 | | - if(ParamIsDefault(enableJU)) |
46 | | - enableJU = IsRunningInCI() |
47 | | - else |
48 | | - enableJU = !!enableJU |
49 | | - endif |
50 | | - |
51 | | - if(ParamIsDefault(traceWinList)) |
52 | | - traceWinList = "MIES_.*\.ipf" |
53 | | - endif |
54 | | - |
55 | | - if(ParamIsDefault(keepDataFolder)) |
56 | | - keepDataFolder = 0 |
57 | | - else |
58 | | - keepDataFolder = !!keepDataFolder |
59 | | - endif |
60 | | - |
61 | | - if(ParamIsDefault(enableRegExp)) |
62 | | - enableRegExp = 0 |
63 | | - else |
64 | | - enableRegExp = !!enableRegExp |
65 | | - endif |
66 | | - |
67 | | - if(!instru) |
68 | | - traceWinList = "" |
69 | | - endif |
70 | | - |
71 | | - traceOptions = GetDefaultTraceOptions() |
72 | | - |
73 | | - // sorted list |
74 | | - list = AddListItem("UTF_Amplifier.ipf", list, ";", Inf) |
75 | | - list = AddListItem("UTF_AnalysisBrowserTest.ipf", list, ";", Inf) |
76 | | - list = AddListItem("UTF_AnalysisFunctionHelpers.ipf", list, ";", Inf) |
77 | | - list = AddListItem("UTF_AnalysisFunctionParameters.ipf", list, ";", Inf) |
78 | | - list = AddListItem("UTF_AnalysisFunctionPrototypes.ipf", list, ";", Inf) |
79 | | - list = AddListItem("UTF_AsynFrameworkTest.ipf", list, ";", Inf) |
80 | | - list = AddListItem("UTF_Debugging.ipf", list, ";", Inf) |
81 | | - list = AddListItem("UTF_Configuration.ipf", list, ";", Inf) |
82 | | - list = AddListItem("UTF_DAEphyswoHardware.ipf", list, ";", Inf) |
83 | | - list = AddListItem("UTF_EpochswoHardware.ipf", list, ";", Inf) |
84 | | - list = AddListItem("UTF_ForeignFunctionInterface.ipf", list, ";", Inf) |
85 | | - list = AddListItem("UTF_GuiUtilities.ipf", list, ";", Inf) |
86 | | - list = AddListItem("UTF_JSONWaveNotes.ipf", list, ";", Inf) |
87 | | - list = AddListItem("UTF_Labnotebook.ipf", list, ";", Inf) |
88 | | - list = AddListItem("UTF_Macros.ipf", list, ";", Inf) |
89 | | - list = AddListItem("UTF_oodDAQ.ipf", list, ";", Inf) |
90 | | - list = AddListItem("UTF_PGCSetAndActivateControl.ipf", list, ";", Inf) |
91 | | - list = AddListItem("UTF_StimsetAPI.ipf", list, ";", Inf) |
92 | | - list = AddListItem("UTF_SweepFormula.ipf", list, ";", Inf) |
93 | | - list = AddListItem("UTF_SweepFormula_Operations.ipf", list, ";", Inf) |
94 | | - list = AddListItem("UTF_SweepFormula_PSX.ipf", list, ";", Inf) |
95 | | - list = AddListItem("UTF_Testpulse.ipf", list, ";", Inf) |
96 | | - list = AddListItem("UTF_TraceUserData.ipf", list, ";", Inf) |
97 | | - list = AddListItem("UTF_ThreadsafeDataSharing.ipf", list, ";", Inf) |
98 | | - list = AddListItem("UTF_UpgradeDataFolderLocation.ipf", list, ";", Inf) |
99 | | - list = AddListItem("UTF_UpgradeWaveLocationAndGetIt.ipf", list, ";", Inf) |
100 | | - list = AddListItem("UTF_Utils_Algorithm.ipf", list, ";", Inf) |
101 | | - list = AddListItem("UTF_Utils_Checks.ipf", list, ";", Inf) |
102 | | - list = AddListItem("UTF_Utils_Conversions.ipf", list, ";", Inf) |
103 | | - list = AddListItem("UTF_Utils_DataFolder.ipf", list, ";", Inf) |
104 | | - list = AddListItem("UTF_Utils_File.ipf", list, ";", Inf) |
105 | | - list = AddListItem("UTF_Utils_GUI.ipf", list, ";", Inf) |
106 | | - list = AddListItem("UTF_Utils_List.ipf", list, ";", Inf) |
107 | | - list = AddListItem("UTF_Utils_Mies_Algorithm.ipf", list, ";", Inf) |
108 | | - list = AddListItem("UTF_Utils_Mies_BackupWaves.ipf", list, ";", Inf) |
109 | | - list = AddListItem("UTF_Utils_Mies_Config.ipf", list, ";", Inf) |
110 | | - list = AddListItem("UTF_Utils_Mies_Logging.ipf", list, ";", Inf) |
111 | | - list = AddListItem("UTF_Utils_Mies_Sweep.ipf", list, ";", Inf) |
112 | | - list = AddListItem("UTF_Utils_Numeric.ipf", list, ";", Inf) |
113 | | - list = AddListItem("UTF_Utils_ProgramFlow.ipf", list, ";", Inf) |
114 | | - list = AddListItem("UTF_Utils_Strings.ipf", list, ";", Inf) |
115 | | - list = AddListItem("UTF_Utils_Settings.ipf", list, ";", Inf) |
116 | | - list = AddListItem("UTF_Utils_System.ipf", list, ";", Inf) |
117 | | - list = AddListItem("UTF_Utils_Time.ipf", list, ";", Inf) |
118 | | - list = AddListItem("UTF_Utils_WaveHandling.ipf", list, ";", Inf) |
119 | | - list = AddListItem("UTF_UtilsChecks.ipf", list, ";", Inf) |
120 | | - list = AddListItem("UTF_WaveAveraging.ipf", list, ";", Inf) |
121 | | - list = AddListItem("UTF_WaveBuilder.ipf", list, ";", Inf) |
122 | | - list = AddListItem("UTF_WaveBuilderRegression.ipf", list, ";", Inf) |
123 | | - list = AddListItem("UTF_WaveVersioning.ipf", list, ";", Inf) |
124 | | - list = AddListItem("UTF_ZeroMQPublishing.ipf", list, ";", Inf) |
125 | | - |
126 | | - if(ParamIsDefault(testsuite)) |
127 | | - testsuite = list |
128 | | - else |
129 | | - // do nothing |
130 | | - endif |
131 | | - |
132 | | - if(IsEmpty(testcase)) |
133 | | - RunTest(testsuite, name = name, enableJU = enableJU, enableRegExp = enableRegExp, debugMode = debugMode, traceOptions = traceOptions, traceWinList = traceWinList, keepDataFolder = keepDataFolder, waveTrackingMode = waveTrackingMode) |
134 | | - else |
135 | | - RunTest(testsuite, name = name, enableJU = enableJU, enableRegExp = enableRegExp, debugMode = debugMode, testcase = testcase, traceOptions = traceOptions, traceWinList = traceWinList, keepDataFolder = keepDataFolder, waveTrackingMode = waveTrackingMode) |
136 | | - endif |
137 | | -End |
138 | | - |
139 | 8 | Function TEST_BEGIN_OVERRIDE(string name) |
140 | 9 |
|
141 | 10 | TestBeginCommon() |
|
0 commit comments