Skip to content

Commit 0422db3

Browse files
author
Oron Port
committed
add support to skip known failing tests for specific tools and dialects
1 parent ed4e102 commit 0422db3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

project/DFHDLCommands.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ object DFHDLCommands {
9797
val verilogTools = List("verilator", "iverilog", "questa", "vivado")
9898
val vhdlDialects = List("vhdl.v93", "vhdl.v2008")
9999
val verilogDialects = List("verilog.v95", "verilog.v2001", "verilog.sv2005")
100+
// Skip tests that are known to fail because of the tool
101+
val skip = Set(("iverilog", "verilog.sv2005"), ("vivado", "vhdl.v2008"))
100102

101103
val testApps = Command.command("testApps") { state =>
102104
var newState = Command.process("clearSandbox", state, _ => ())
@@ -124,12 +126,12 @@ object DFHDLCommands {
124126
val allTools = (vhdlTools ++ verilogTools).toSet
125127
allTools.filter(tool => helpStr.linesIterator.exists(line => line.contains(tool) && line.contains("Found version")))
126128
}
127-
for (tool <- vhdlTools if existingTools.contains(tool); dialect <- vhdlDialects) {
129+
for (tool <- vhdlTools if existingTools.contains(tool); dialect <- vhdlDialects if !skip.contains((tool, dialect))) {
128130
val arguments = s" AES.top_CipherSim simulate -b $dialect -t $tool --Werror-tool"
129131
val (updatedState, _) = extracted.runInputTask(runMainTask, arguments, newState)
130132
newState = updatedState
131133
}
132-
for (tool <- verilogTools if existingTools.contains(tool); dialect <- verilogDialects) {
134+
for (tool <- verilogTools if existingTools.contains(tool); dialect <- verilogDialects if !skip.contains((tool, dialect)) {
133135
val arguments = s" AES.top_CipherSim simulate -b $dialect -t $tool --Werror-tool"
134136
val (updatedState, _) = extracted.runInputTask(runMainTask, arguments, newState)
135137
newState = updatedState

0 commit comments

Comments
 (0)