ProteoWizard
Classes | Functions
Reader_Waters_Test.cpp File Reference
#include "pwiz/utility/misc/unit.hpp"
#include "Reader_Waters.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  IsRawData
 

Functions

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

Function Documentation

§ main()

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

Definition at line 38 of file Reader_Waters_Test.cpp.

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

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