ProteoWizard
Classes | Functions
Reader_ABI_Test.cpp File Reference
#include "pwiz/utility/misc/unit.hpp"
#include "Reader_ABI.hpp"
#include "pwiz/utility/misc/VendorReaderTestHarness.hpp"
#include "pwiz/utility/misc/Filesystem.hpp"
#include "pwiz/utility/misc/Std.hpp"

Go to the source code of this file.

Classes

struct  IsWiffFile
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 37 of file Reader_ABI_Test.cpp.

References TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and pwiz::util::testReader().

38 {
39  TEST_PROLOG(argc, argv)
40 
41  #ifdef PWIZ_READER_ABI
42  const bool testAcceptOnly = false;
43  #else
44  const bool testAcceptOnly = true;
45  #endif
46 
47  try
48  {
49  pwiz::util::testReader(pwiz::msdata::Reader_ABI(), testArgs, testAcceptOnly, IsWiffFile());
50  }
51  catch (exception& e)
52  {
53  TEST_FAILED(e.what())
54  }
55  catch (...)
56  {
57  TEST_FAILED("Caught unknown exception.")
58  }
59 
61 }
#define TEST_EPILOG
Definition: unit.hpp:173
PWIZ_API_DECL int testReader(const pwiz::msdata::Reader &reader, const std::vector< std::string > &args, bool testAcceptOnly, const TestPathPredicate &isPathTestable)
A common test harness for vendor readers;.
#define TEST_FAILED(x)
Definition: unit.hpp:167
#define TEST_PROLOG(argc, argv)
Definition: unit.hpp:165