Skip to content

Commit

Permalink
Refactor regression tests execution in workflow
Browse files Browse the repository at this point in the history
- Updated [scala.yml] to execute [NaxRiscvRegression] and [NaxRiscvRvls] tests separately using [sbt testOnly].
- Removed [test-regression] and [test-rvls] functions from [tools.sh], as they are now directly handled in the workflow.
- Added environment variables [NAXRISCV_REGRESSION_THREAD_COUNT] and [SBT_OPTS] in the workflow for better resource control and test isolation.
  • Loading branch information
bi262934 committed Jan 27, 2025
1 parent 36c107d commit 3d08804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ jobs:
run: sbt clean compile

- name: Regression Test SIMULATOR
run: source .github/workflows/tools.sh && test-regression
run: |
export NAXRISCV_REGRESSION_THREAD_COUNT=1
export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT"
sbt "testOnly *NaxRiscvRegression"
- name: Regression Test RVLS
run: source .github/workflows/tools.sh && test-rvls
run: |
export NAXRISCV_REGRESSION_THREAD_COUNT=1
export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT"
sbt "testOnly *NaxRiscvRvls"
8 changes: 0 additions & 8 deletions .github/workflows/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,3 @@ install_all(){
export NAXRISCV=${PWD}
make install
}

test-regression(){
make test-regression
}

test-rvls(){
make test-rvls
}

0 comments on commit 3d08804

Please sign in to comment.