add knob and constraint dumping
This commit is contained in:
parent
9769b2747c
commit
854feab08e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user