From 3fde05fef717d2bd88d7f454a17975336926dc77 Mon Sep 17 00:00:00 2001 From: Moritz Scherer Date: Thu, 25 Jul 2024 17:02:42 +0200 Subject: [PATCH] CI: Extend setup to support multiple tests --- .gitignore | 3 ++- .gitlab-ci.yml | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3f59698..4f8ee0f 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ target/sim/vsim/trace* modelsim.ini compile.tcl logs -vsim.wlf \ No newline at end of file +vsim.wlf +*.transcript \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index beb9969..a6bbff6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,11 +72,15 @@ vsim-test: extends: .base stage: test needs: [ vsim-build ] + parallel: + matrix: + - TESTNAME: [testCluster, testClusterOffload] script: - cd target/sim/vsim - - $VSIM -c -do 'source setup.chimera_soc.tcl; source start.chimera_soc.tcl; run -all' - - ../../../scripts/vsim_ret_error.sh transcript + - $VSIM -c -l $TESTNAME.transcript -do "set BINARY ../../../sw/tests/$TESTNAME.memisl.elf; source start.chimera_soc.tcl; run -all" + - ../../../scripts/vsim_ret_error.sh $TESTNAME.transcript dependencies: - vsim-build artifacts: - paths: [ ".venv", "hw", "sw", "target/sim" ] + paths: [ ".venv", "hw", "sw", "target/sim", "$TESTNAME.transcript" ] + expire_in: 4 weeks