Commit a1f392c6 authored by Lukas Weber's avatar Lukas Weber Committed by Lukas Sommer

Added Testing and fixed typos; Closes #53

parent 856f4e2c
...@@ -123,7 +123,7 @@ object Tapasco { ...@@ -123,7 +123,7 @@ object Tapasco {
if (! ok) { if (! ok) {
logger.error("TaPaSCo finished with errors") logger.error("TaPaSCo finished with errors")
//sys.exit(1) sys.exit(1)
} else { } else {
logger.info("TaPaSCo finished successfully") logger.info("TaPaSCo finished successfully")
} }
......
...@@ -146,7 +146,7 @@ package object json { ...@@ -146,7 +146,7 @@ package object json {
(JsPath \ "Platforms").readNullable[Seq[String]] ~ (JsPath \ "Platforms").readNullable[Seq[String]] ~
(JsPath \ "Features").readNullable[Seq[Feature]] ~ (JsPath \ "Features").readNullable[Seq[Feature]] ~
(JsPath \ "DebugMode").readNullable[String] ~ (JsPath \ "DebugMode").readNullable[String] ~
(JsPath \ "DeleteÜrpkects").readNullable[Boolean] (JsPath \ "DeleteProjects").readNullable[Boolean]
) (DesignSpaceExplorationJob.apply _) ) (DesignSpaceExplorationJob.apply _)
implicit val dseJobWrites: Writes[DesignSpaceExplorationJob] = ( implicit val dseJobWrites: Writes[DesignSpaceExplorationJob] = (
......
...@@ -163,7 +163,7 @@ configuration via `tapasco -n config.json`. ...@@ -163,7 +163,7 @@ configuration via `tapasco -n config.json`.
"""default: "Vivado"""") & """default: "Vivado"""") &
Arg("--features FEATURES", "configures Features, see `tapasco -h features`" & Arg("--features FEATURES", "configures Features, see `tapasco -h features`" &
"syntax: FEATURE [, FEATURE]*") & "syntax: FEATURE [, FEATURE]*") &
Arg("--deleteProjects", "delete all generated Project-Files") & Arg("--deleteProjects (true | false)?", "Spefify whether project files are deleted or kept") &
Arg("--debugMode NAME", "dry run, no composition is executed; modes:") & Arg("--debugMode NAME", "dry run, no composition is executed; modes:") &
Indent(Arg(" r", "generate random result values") & Indent(Arg(" r", "generate random result values") &
Arg(" f", "generate only timing failures") & Arg(" f", "generate only timing failures") &
...@@ -318,7 +318,7 @@ configuration via `tapasco -n config.json`. ...@@ -318,7 +318,7 @@ configuration via `tapasco -n config.json`.
"default: number of CPUs") & "default: number of CPUs") &
Arg("--debugMode NAME", "dry run, no compositions are executed, see" ~ Arg("--debugMode NAME", "dry run, no compositions are executed, see" ~
"`tapasco -h compose`") & "`tapasco -h compose`") &
Arg("--deleteProjects", "Delete all generated Project-Files") & Arg("--deleteProjects ( true | false )?", "Spefify whether project files are deleted or kept") &
Arg("--features FEATURES", "configures Features, see `tapasco -h features`" & Arg("--features FEATURES", "configures Features, see `tapasco -h features`" &
"syntax: FEATURE [, FEATURE]*") & "syntax: FEATURE [, FEATURE]*") &
Arg("--heuristic NAME", "select heuristic function" & Arg("--heuristic NAME", "select heuristic function" &
......
...@@ -108,7 +108,9 @@ private object CommonArgParsersSpec { ...@@ -108,7 +108,9 @@ private object CommonArgParsersSpec {
qstringGen qstringGen
)) ))
val deleteProjectsGen: Gen[String] = join(Seq(genLongOption("deleteProjects"))) val booleanOrNoneGen: Gen[String] = Gen.oneOf("true", "false", "")
val deleteProjectsGen: Gen[String] = join(Seq(genLongOption("deleteProjects"), booleanOrNoneGen))
val implementationGen: Gen[String] = join(Seq( val implementationGen: Gen[String] = join(Seq(
genLongOption("implementation"), genLongOption("implementation"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment