47 #if defined(PWIZ_READER_THERMO) && !defined(PWIZ_READER_THERMO_TEST_ACCEPT_ONLY) 48 const bool testAcceptOnly =
false;
50 const bool testAcceptOnly =
true;
55 #ifdef PWIZ_READER_THERMO 64 bool allInstrumentTestsPassed =
true;
65 for (
int i=0; i < (int) InstrumentModelType_Count; ++i)
67 InstrumentModelType model = (InstrumentModelType) i;
78 case InstrumentModelType_Tempus_TOF:
79 case InstrumentModelType_Element_2:
80 case InstrumentModelType_Element_XR:
81 case InstrumentModelType_Element_GD:
82 case InstrumentModelType_Delta_Plus_Advantage:
83 case InstrumentModelType_Delta_Plus_XP:
84 case InstrumentModelType_Neptune:
85 case InstrumentModelType_Triton:
95 vector<IonizationType> ionizationTypes = getIonSourcesForInstrumentModel(model);
99 case InstrumentModelType_Element_XR:
100 case InstrumentModelType_Element_2:
101 case InstrumentModelType_Delta_Plus_Advantage:
102 case InstrumentModelType_Delta_Plus_XP:
103 case InstrumentModelType_Neptune:
104 case InstrumentModelType_Tempus_TOF:
105 case InstrumentModelType_Triton:
106 case InstrumentModelType_MAT253:
107 case InstrumentModelType_MAT900XP:
108 case InstrumentModelType_MAT900XP_Trap:
109 case InstrumentModelType_MAT95XP:
110 case InstrumentModelType_MAT95XP_Trap:
111 case InstrumentModelType_Surveyor_PDA:
112 case InstrumentModelType_Accela_PDA:
122 vector<MassAnalyzerType> massAnalyzerTypes = getMassAnalyzersForInstrumentModel(model);
126 case InstrumentModelType_Element_XR:
127 case InstrumentModelType_Element_2:
128 case InstrumentModelType_Element_GD:
129 case InstrumentModelType_Delta_Plus_Advantage:
130 case InstrumentModelType_Delta_Plus_XP:
131 case InstrumentModelType_Neptune:
132 case InstrumentModelType_Triton:
133 case InstrumentModelType_Surveyor_PDA:
134 case InstrumentModelType_Accela_PDA:
144 vector<DetectorType> detectorTypes = getDetectorsForInstrumentModel(model);
148 case InstrumentModelType_Element_GD:
149 case InstrumentModelType_Element_XR:
150 case InstrumentModelType_Element_2:
151 case InstrumentModelType_Delta_Plus_Advantage:
152 case InstrumentModelType_Delta_Plus_XP:
153 case InstrumentModelType_Neptune:
154 case InstrumentModelType_Tempus_TOF:
155 case InstrumentModelType_Triton:
156 case InstrumentModelType_MAT253:
157 case InstrumentModelType_MAT900XP:
158 case InstrumentModelType_MAT900XP_Trap:
159 case InstrumentModelType_MAT95XP:
160 case InstrumentModelType_MAT95XP_Trap:
170 BOOST_FOREACH(MassAnalyzerType realType, massAnalyzerTypes)
172 bool hasCorrespondingScanFilterType =
false;
173 for (
int j=0; j < (int) ScanFilterMassAnalyzerType_Count; ++j)
174 if (convertScanFilterMassAnalyzer((ScanFilterMassAnalyzerType) j, model) == realType)
175 hasCorrespondingScanFilterType =
true;
179 catch (runtime_error& e)
181 cerr <<
"Unit test failed for instrument model " <<
lexical_cast<
string>(model) <<
":\n" << e.what() << endl;
182 allInstrumentTestsPassed =
false;
189 bool requireUnicodeSupport =
true;
197 #ifdef PWIZ_READER_THERMO 199 ::SetThreadLocale(LANG_TURKISH);
PWIZ_API_DECL std::vector< InstrumentConfiguration > createInstrumentConfigurations(RawFile &rawfile)
PWIZ_API_DECL CVID translateAsInstrumentModel(InstrumentModelType instrumentModelType)
A component of an instrument corresponding to a source (i.e. ion source), an analyzer (i...
toType lexical_cast(const std::string &str, bool &success)
PWIZ_API_DECL int testReader(const pwiz::msdata::Reader &reader, const std::vector< std::string > &args, bool testAcceptOnly, bool requireUnicodeSupport, const TestPathPredicate &isPathTestable, const ReaderTestConfig &config=ReaderTestConfig())
A common test harness for vendor readers;.
#define TEST_PROLOG(argc, argv)