From a3f265edf80b294d2615355292d220c39b572689 Mon Sep 17 00:00:00 2001 From: Yindong Date: Fri, 3 Nov 2023 15:22:07 +0800 Subject: [PATCH] compile and test also while running test. --- test_template.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_template.sh b/test_template.sh index da9577b..cdd9fcd 100644 --- a/test_template.sh +++ b/test_template.sh @@ -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 .. }