45int main(
int argc,
char* argv[])
49 #ifdef PWIZ_READER_ABI
50 const bool testAcceptOnly =
false;
52 const bool testAcceptOnly =
true;
57 #ifdef PWIZ_READER_ABI
61 using namespace pwiz::msdata::detail::ABI;
65 bool allInstrumentTestsPassed =
true;
66 for (
int i = 1; i < (int) InstrumentModel_Count; ++i)
68 InstrumentModel model = (InstrumentModel) i;
80 catch (runtime_error& e)
82 cerr <<
"Unit test failed for instrument model " << lexical_cast<string>(model) <<
":\n" << e.what() << endl;
83 allInstrumentTestsPassed =
false;
90 bool requireUnicodeSupport =
true;
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;.