summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx12
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