Skip to content

Commit

Permalink
compile and test also while running test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Readon committed Nov 3, 2023
1 parent bef7ed0 commit a3f265e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ do_test(){
sed -i "s/\(val spinalVersion = \)\(\".*\"\)/\1\"${_spinal_version}\"/" build.sbt
sed -i "s/\(scalaVersion := \)\(\".*\"\)/\1\"${_scala_full_version}\"/" build.sbt

${SBT_CMD} -Dsbt.offline=true "compile" || exit
${SBT_CMD} -Dsbt.offline=true "runMain projectname.MyTopLevelVerilog" || exit
${SBT_CMD} -Dsbt.offline=true "runMain projectname.MyTopLevelVhdl" || exit
${SBT_CMD} -Dsbt.offline=true "runMain projectname.MyTopLevelSim" || exit
${SBT_CMD} -Dsbt.offline=true "runMain projectname.MyTopLevelFormal" || exit
${SBT_CMD} -Dsbt.offline=true "test" || exit

cd ..
}
Expand Down

0 comments on commit a3f265e

Please sign in to comment.