cmCTestBatchTestHandler.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestBatchTestHandler_h
  11. #define cmCTestBatchTestHandler_h
  12. #include <cmStandardIncludes.h>
  13. #include <cmCTestTestHandler.h>
  14. #include <cmCTestMultiProcessHandler.h>
  15. #include <cmCTestRunTest.h>
  16. #include <cmsys/FStream.hxx>
  17. /** \class cmCTestBatchTestHandler
  18. * \brief run parallel ctest
  19. *
  20. * cmCTestBatchTestHandler
  21. */
  22. class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler
  23. {
  24. public:
  25. ~cmCTestBatchTestHandler();
  26. virtual void RunTests();
  27. protected:
  28. void WriteBatchScript();
  29. void WriteSrunArgs(int test, cmsys::ofstream& fout);
  30. void WriteTestCommand(int test, cmsys::ofstream& fout);
  31. void SubmitBatchScript();
  32. std::string Script;
  33. };
  34. #endif