summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-12-02 00:25:51 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-12-02 00:25:51 (GMT)
commita442f1715ee6c3800973fb2b8b21f353fc89a42f (patch)
tree7aa166bb46ac6bf0b5d942d317af4a1e62c216a0 /Source/ctest.cxx
parent81be61b15358a337ff00ccf57558b77d54004022 (diff)
downloadCMake-a442f1715ee6c3800973fb2b8b21f353fc89a42f.zip
CMake-a442f1715ee6c3800973fb2b8b21f353fc89a42f.tar.gz
CMake-a442f1715ee6c3800973fb2b8b21f353fc89a42f.tar.bz2
a start on the dashboard driver
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx28
1 files changed, 24 insertions, 4 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index 090b535..ef7a5c7 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -73,6 +73,12 @@ static const cmDocumentationEntry cmDocumentationOptions[] =
"a dashboard test. All tests are ModeTest, where Mode can be Experimental, "
"Nightly, and Continuous, and Test can be Start, Update, Configure, "
"Build, Test, Coverage, and Submit."},
+ {"-S <ConfigScript>", "Execute a dashboard for a configuration",
+ "This option tells ctest to load in a configuration script which sets "
+ "a number of parameters such as the binary and source directories. Then "
+ "ctest will do what is required to create and run a dashboard. This "
+ "option basically sets up a dashboard and then runs ctest -D with the "
+ "appropriate options."},
{0,0,0}
};
@@ -146,6 +152,12 @@ int main (int argc, char *argv[])
inst.m_ShowOnly = true;
}
+ if( arg.find("-S",0) == 0 && i < args.size() - 1 )
+ {
+ inst.m_RunConfigurationScript = true;
+ inst.m_ConfigurationScript = args[i+1];
+ }
+
if( arg.find("-D",0) == 0 && i < args.size() - 1 )
{
inst.m_DartMode = true;
@@ -367,10 +379,18 @@ int main (int argc, char *argv[])
}
// call process directory
- inst.Initialize();
- int res = inst.ProcessTests();
- inst.Finalize();
-
+ int res;
+ if (inst.m_RunConfigurationScript)
+ {
+ res = inst.RunConfigurationScript();
+ }
+ else
+ {
+ inst.Initialize();
+ res = inst.ProcessTests();
+ inst.Finalize();
+ }
+
return res;
}