public bool SaveTestBenchManifest(string designName, string configurationName, CyPhy.TestBenchType expandedTestBenchType, string outputDir, CyPhy.TestBenchType origialTestBenchType, DateTime analysisStartTime)
{
if (expandedTestBenchType == null)
{
throw new ArgumentNullException("expandedTestBenchType");
}
if (outputDir == null)
{
throw new ArgumentNullException("outputDirectory");
}
if (origialTestBenchType == null)
{
expandedTestBenchType = origialTestBenchType;
}
try
{
AVM.DDP.MetaTBManifest manifest = new AVM.DDP.MetaTBManifest();
manifest.MakeManifest(expandedTestBenchType, outputDir);
// design name fixture
manifest.DesignName = designName;
// test bench name fixture
manifest.TestBench = origialTestBenchType.Name;
manifest.CfgID = configurationName;
manifest.Serialize(outputDir);
this.UpdateResultsJson(expandedTestBenchType.Impl as MgaFCO, outputDir);
return true;
}
catch (Exception)
{
// TODO: log exception/store last exception
return false;
}
}