1
0

add knob and constraint dumping

This commit is contained in:
Colin Schmidt 2015-10-22 17:25:38 -07:00
parent 9769b2747c
commit 854feab08e

View File

@ -139,7 +139,8 @@ object TestGenerator extends App with FileSystemUtilities {
throwException(s"Could not find the cde.Config subclass you asked for " +
"(i.e. \"$configClassName\"), did you misspell it?", e)
}
val paramsFromConfig: Parameters = Parameters.root(config.toInstance)
val world = config.toInstance
val paramsFromConfig: Parameters = Parameters.root(world)
val gen = () =>
Class.forName(s"$projectName.$topModuleName")
@ -155,4 +156,10 @@ object TestGenerator extends App with FileSystemUtilities {
val pdFile = createOutputFile(s"$topModuleName.$configClassName.prm")
pdFile.write(ParameterDump.getDump)
pdFile.close
val v = createOutputFile(configClassName + ".knb")
v.write(world.getKnobs)
v.close
val w = createOutputFile(configClassName + ".cst")
w.write(world.getConstraints)
w.close
}