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

Functions

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

Function Documentation

◆ main()

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

Definition at line 37 of file Reader_Agilent_Test.cpp.

38{
39 TEST_PROLOG(argc, argv)
40
41 #ifdef PWIZ_READER_AGILENT
42 const bool testAcceptOnly = false;
43 #else
44 const bool testAcceptOnly = true;
45 #endif
46
47 try
48 {
49 bool requireUnicodeSupport = true;
50 pwiz::util::testReader(pwiz::msdata::Reader_Agilent(), testArgs, testAcceptOnly, requireUnicodeSupport, IsDirectory());
51 }
52 catch (exception& e)
53 {
54 TEST_FAILED(e.what())
55 }
56 catch (...)
57 {
58 TEST_FAILED("Caught unknown exception.")
59 }
60
62}
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;.
#define TEST_EPILOG
Definition unit.hpp:183
#define TEST_FAILED(x)
Definition unit.hpp:177
#define TEST_PROLOG(argc, argv)
Definition unit.hpp:175

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