ENH: add new feature to ctest so that it can cmake, build and run a test executable

This commit is contained in:
Bill Hoffman
2004-01-07 11:24:22 -05:00
parent a8620773f3
commit 2c2291bbe0
8 changed files with 1192 additions and 458 deletions

View File

@@ -81,6 +81,12 @@ public:
*/
static void Message(const char* m, const char* title=0);
///! Send a string to stdout
static void Stdout(const char* s);
static void Stdout(const char* s, int length);
typedef void (*StdoutCallback)(const char*, int length, void*);
static void SetStdoutCallback(StdoutCallback, void* clientData=0);
///! Return true if there was an error at any point.
static bool GetErrorOccuredFlag()
{
@@ -258,7 +264,9 @@ private:
static bool s_DisableMessages;
static bool s_DisableRunCommandOutput;
static ErrorCallback s_ErrorCallback;
static StdoutCallback s_StdoutCallback;
static void* s_ErrorCallbackClientData;
static void* s_StdoutCallbackClientData;
static std::string s_Windows9xComspecSubstitute;
};