cmCTestBatchTestHandler.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <cmConfigure.h>
  13. #include <cmCTestMultiProcessHandler.h>
  14. #include <cmsys/FStream.hxx>
  15. #include <string>
  16. /** \class cmCTestBatchTestHandler
  17. * \brief run parallel ctest
  18. *
  19. * cmCTestBatchTestHandler
  20. */
  21. class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler
  22. {
  23. public:
  24. ~cmCTestBatchTestHandler() CM_OVERRIDE;
  25. void RunTests() CM_OVERRIDE;
  26. protected:
  27. void WriteBatchScript();
  28. void WriteSrunArgs(int test, std::ostream& fout);
  29. void WriteTestCommand(int test, std::ostream& fout);
  30. void SubmitBatchScript();
  31. std::string Script;
  32. };
  33. #endif