diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-26 20:02:26 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-26 20:02:26 (GMT) |
commit | 2f2596c213c5be33ec653ed2d4662dc3bbafc60f (patch) | |
tree | 9c23692c9fe48d0d9bc348d21aa58170a2dbcf6e /Source/ctest.cxx | |
parent | 32accc160762ca80f1138d4e9c710d9edb72479c (diff) | |
download | CMake-2f2596c213c5be33ec653ed2d4662dc3bbafc60f.zip CMake-2f2596c213c5be33ec653ed2d4662dc3bbafc60f.tar.gz CMake-2f2596c213c5be33ec653ed2d4662dc3bbafc60f.tar.bz2 |
ENH: Add option to submit notes. Implements Bug #465 - Add notes support to CTest
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 902955d..1c037b2 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -79,6 +79,8 @@ static const cmDocumentationEntry cmDocumentationOptions[] = "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."}, + {"-A <Notes file>", "Add a notes file with submission", + "This option tells ctest to include a notes file when submitting dashboard. "}, {0,0,0} }; @@ -376,6 +378,16 @@ int main (int argc, char *argv[]) inst.m_ExcludeRegExp = args[i+1]; inst.m_UseExcludeRegExpFirst = inst.m_UseIncludeRegExp ? false : true; } + + if(arg.find("-A",0) == 0 && i < args.size() - 1) + { + inst.m_DartMode = true; + inst.SetTest("Notes"); + inst.Initialize(); + int ires = inst.GenerateNotesFile(args[i+1].c_str()); + inst.Finalize(); + return ires; + } } // call process directory |