diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-23 17:04:18 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-23 17:04:18 (GMT) |
commit | 1b578d3180ce60976e4cbe928fce988acfd0da39 (patch) | |
tree | cdefbf878667d466318aeabfa77cc7625cb4777e /Source/CTest/cmCTestTestCommand.h | |
parent | 5c68b61a9caab3f89031155d129b9498d840e502 (diff) | |
download | CMake-1b578d3180ce60976e4cbe928fce988acfd0da39.zip CMake-1b578d3180ce60976e4cbe928fce988acfd0da39.tar.gz CMake-1b578d3180ce60976e4cbe928fce988acfd0da39.tar.bz2 |
ENH: Several improvements with the way things are handled. Also, support multiple submited files
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.h')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/Source/CTest/cmCTestTestCommand.h b/Source/CTest/cmCTestTestCommand.h index c0e6bf3..d68de9f 100644 --- a/Source/CTest/cmCTestTestCommand.h +++ b/Source/CTest/cmCTestTestCommand.h @@ -17,18 +17,20 @@ #ifndef cmCTestTestCommand_h #define cmCTestTestCommand_h -#include "cmCTestCommand.h" +#include "cmCTestHandlerCommand.h" + +class cmCTestGenericHandler; /** \class cmCTestTest * \brief Run a ctest script * * cmCTestTestCommand defineds the command to test the project. */ -class cmCTestTestCommand : public cmCTestCommand +class cmCTestTestCommand : public cmCTestHandlerCommand { public: - cmCTestTestCommand() {} + cmCTestTestCommand(); /** * This is a virtual constructor for the command. @@ -42,12 +44,6 @@ public: } /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - virtual bool InitialPass(std::vector<std::string> const& args); - - /** * The name of the command as specified in CMakeList.txt. */ virtual const char* GetName() { return "CTEST_TEST";} @@ -71,8 +67,20 @@ public: "second argument is a variable that will hold value."; } - cmTypeMacro(cmCTestTestCommand, cmCTestCommand); + cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand); + +protected: + cmCTestGenericHandler* InitializeActualHandler(); + cmCTestGenericHandler* InitializeHandler(); + enum { + ctt_BUILD = ct_LAST, + ctt_RETURN_VALUE, + ctt_START, + ctt_END, + ctt_STRIDE, + ctt_LAST + }; }; |