00001 #ifndef EVENT_LOOP_UNIT_TEST_HH 00002 #define EVENT_LOOP_UNIT_TEST_HH 00003 00004 // Copyright Nils Krumnack 2011. 00005 // Distributed under the Boost Software License, Version 1.0. 00006 // (See accompanying file LICENSE_1_0.txt or copy at 00007 // http://www.boost.org/LICENSE_1_0.txt) 00008 00009 // Please feel free to contact me (krumnack@iastate.edu) for bug 00010 // reports, feature suggestions, praise and complaints. 00011 00012 00017 00018 00019 00020 #include <EventLoop/Global.h> 00021 00022 #include <string> 00023 #include <SampleHandler/SampleHandler.h> 00024 00025 namespace EL 00026 { 00027 struct UnitTest 00028 { 00030 std::string name; 00031 00033 SH::SampleHandler samples; 00034 00037 bool cleanup; 00038 00040 bool testOutput; 00041 00043 std::string location; 00044 00046 SH::DiskOutput *outputDisk; 00047 00049 bool testFileExecute; 00050 00051 00055 UnitTest (const std::string& val_name, std::string base_path = ""); 00056 00057 00063 int run (const Driver& driver) const; 00064 }; 00065 } 00066 00067 #endif