29 #include "boost/foreach_field.hpp"
40 void test(
const string& filepath,
const ReaderList& readerList,
int& testCount)
43 const double EPSILON = 1e-4;
44 ostringstream failedTests;
52 if (bal::ends_with(filepath,
"ImsSynth_Chrom.d"))
75 else if (bal::ends_with(filepath,
"HDMSe_Short_noLM.raw"))
92 else if (bal::ends_with(filepath,
"MSe_Short.raw"))
97 else if (bal::ends_with(filepath,
"HDMSe_Short_noLM.mzML"))
108 throw runtime_error(
"Unhandled test file: " + filepath);
110 if (!failedTests.str().empty())
111 throw runtime_error(failedTests.str());
117 void parseArgs(
const vector<string>& args, vector<string>& rawpaths)
119 for (
size_t i = 1; i < args.size(); ++i)
121 if (args[i] ==
"-v")
os_ = &cout;
122 else if (bal::starts_with(args[i],
"--"))
continue;
123 else rawpaths.push_back(args[i]);
128 int main(
int argc,
char* argv[])
134 vector<string> args(argv, argv+argc);
135 vector<string> rawpaths;
141 for (
const string& filepath : rawpaths)
143 test(filepath, readerList, testCount);