2016-10-30 18:24:19 +01:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2009-10-04 10:30:41 +03:00
|
|
|
#ifndef cmCTestBatchTestHandler_h
|
|
|
|
#define cmCTestBatchTestHandler_h
|
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
#include <cmConfigure.h>
|
2016-07-09 11:21:54 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
#include <cmCTestMultiProcessHandler.h>
|
2015-04-27 22:25:09 +02:00
|
|
|
#include <cmsys/FStream.hxx>
|
2016-10-30 18:24:19 +01:00
|
|
|
#include <string>
|
2009-10-04 10:30:41 +03:00
|
|
|
|
|
|
|
/** \class cmCTestBatchTestHandler
|
|
|
|
* \brief run parallel ctest
|
|
|
|
*
|
2013-03-16 19:13:01 +02:00
|
|
|
* cmCTestBatchTestHandler
|
2009-10-04 10:30:41 +03:00
|
|
|
*/
|
|
|
|
class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler
|
|
|
|
{
|
|
|
|
public:
|
2016-10-30 18:24:19 +01:00
|
|
|
~cmCTestBatchTestHandler() CM_OVERRIDE;
|
|
|
|
void RunTests() CM_OVERRIDE;
|
2016-07-09 11:21:54 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
protected:
|
|
|
|
void WriteBatchScript();
|
2016-10-30 18:24:19 +01:00
|
|
|
void WriteSrunArgs(int test, std::ostream& fout);
|
|
|
|
void WriteTestCommand(int test, std::ostream& fout);
|
2009-10-04 10:30:41 +03:00
|
|
|
|
|
|
|
void SubmitBatchScript();
|
|
|
|
|
|
|
|
std::string Script;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|