33 return bfs::is_directory(rawpath) &&
34 bal::iends_with(rawpath,
".raw");
42 return bfs::is_directory(rawpath) &&
43 bal::iends_with(rawpath,
".raw") &&
44 (bal::istarts_with(bfs::path(rawpath).filename().
string(),
"HD") || bal::istarts_with(bfs::path(rawpath).filename().
string(),
"SONAR"));
48int main(
int argc,
char* argv[])
52 #ifdef PWIZ_READER_WATERS
53 const bool testAcceptOnly =
false;
55 const bool testAcceptOnly =
true;
60 bool requireUnicodeSupport =
false;
int main(int argc, char *argv[])
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;.
bool operator()(const string &rawpath) const
returns true iff the given rawpath is a real path to test/generate
bool operator()(const string &rawpath) const
returns true iff the given rawpath is a real path to test/generate
bool combineIonMobilitySpectra
when true, all drift bins/scans in a frame/block are written in combined form instead of as individua...
test implementations derive from this to define which paths should be tested
#define TEST_PROLOG(argc, argv)