diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-09-10 15:18:05 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-09-10 15:18:05 (GMT) |
commit | c57fb18920be6b17e82eca3399df083b811ebe13 (patch) | |
tree | 2ad1594e0735dbcdc2f3ca305984c73bcbf0dc6f /Source/CTest/cmCTestBatchTestHandler.h | |
parent | 4b4e801eba8efe6da7407ec3364b3fd04eb59e81 (diff) | |
download | CMake-c57fb18920be6b17e82eca3399df083b811ebe13.zip CMake-c57fb18920be6b17e82eca3399df083b811ebe13.tar.gz CMake-c57fb18920be6b17e82eca3399df083b811ebe13.tar.bz2 |
Added some ctest batch capabilities
Diffstat (limited to 'Source/CTest/cmCTestBatchTestHandler.h')
-rw-r--r-- | Source/CTest/cmCTestBatchTestHandler.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestBatchTestHandler.h b/Source/CTest/cmCTestBatchTestHandler.h new file mode 100644 index 0000000..f0c5c1f --- /dev/null +++ b/Source/CTest/cmCTestBatchTestHandler.h @@ -0,0 +1,29 @@ +#ifndef cmCTestBatchTestHandler_h +#define cmCTestBatchTestHandler_h + +#include <cmStandardIncludes.h> +#include <cmCTestTestHandler.h> +#include <cmCTestMultiProcessHandler.h> +#include <cmCTestRunTest.h> + +/** \class cmCTestBatchTestHandler + * \brief run parallel ctest + * + * cmCTestBatchTestHandler + */ +class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler +{ +public: + ~cmCTestBatchTestHandler(); + virtual void RunTests(); +protected: + void WriteBatchScript(); + void WriteSrunArgs(int test, std::fstream& fout); + void WriteTestCommand(int test, std::fstream& fout); + + void SubmitBatchScript(); + + std::string Script; +}; + +#endif |