From 4c64d076fcc33c270cc158bea9bd276b8cfe91d3 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sun, 24 Mar 2024 15:58:38 +0100 Subject: [PATCH] adds tests for all backends --- .gitea/workflows/interp_act.yaml | 24 --------------------- .gitea/workflows/run_act.yaml | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 24 deletions(-) delete mode 100644 .gitea/workflows/interp_act.yaml create mode 100644 .gitea/workflows/run_act.yaml diff --git a/.gitea/workflows/interp_act.yaml b/.gitea/workflows/interp_act.yaml deleted file mode 100644 index 81d44a4..0000000 --- a/.gitea/workflows/interp_act.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: Interp architectural test suite -on: push -jobs: - Build and test interp backend: - runs-on: ubuntu-latest - container: - image: git.minres.com/tooling/riscof_sail:latest - steps: - - name: Check out repository code - run: git clone --recursive -b ${{gitea.ref_name}} https://git.minres.com/TGFS/TGC-ISS.git - - - name: Checkout TGC-COMPLIANCE - run: | - echo "${{ secrets.ACTRUNNER_PRIVATE_SSHKEY }}" > ssh_key - chmod 600 ssh_key - git clone --recursive -c core.sshCommand="/usr/bin/ssh -i ssh_key -o StrictHostKeyChecking=accept-new" ssh://git@git.minres.com:2221/TGFS/TGC-COMPLIANCE.git - - - name: Build tgc-sim executable - run: | - cmake -S TGC-ISS -B TGC-ISS/build -DCMAKE_BUILD_TYPE=Debug -DWITH_ASMJIT=OFF -DWITH_TCC=OFF -DWITH_LLVM=OFF - cmake --build TGC-ISS/build -j24 - - - name: run tests - run: python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim TGC-ISS/build/dbt-rise-tgc/tgc-sim -w . --dockerless --backend interp \ No newline at end of file diff --git a/.gitea/workflows/run_act.yaml b/.gitea/workflows/run_act.yaml new file mode 100644 index 0000000..061b27c --- /dev/null +++ b/.gitea/workflows/run_act.yaml @@ -0,0 +1,37 @@ +name: Interp architectural test suite +on: push +jobs: + Setup and build ISS: + runs-on: ubuntu-latest + container: + image: git.minres.com/tooling/riscof_sail:latest + steps: + - name: Check out repository code + run: git clone --recursive -b ${{gitea.ref_name}} https://git.minres.com/TGFS/TGC-ISS.git + + - name: Checkout TGC-COMPLIANCE + run: | + echo "${{ secrets.ACTRUNNER_PRIVATE_SSHKEY }}" > ssh_key + chmod 600 ssh_key + git clone --recursive -c core.sshCommand="/usr/bin/ssh -i ssh_key -o StrictHostKeyChecking=accept-new" ssh://git@git.minres.com:2221/TGFS/TGC-COMPLIANCE.git + + - name: Build tgc-sim executable + run: | + cmake -S TGC-ISS -B TGC-ISS/build -DCMAKE_BUILD_TYPE=Debug -DWITH_ASMJIT=ON -DWITH_TCC=ON -DWITH_LLVM=ON + cmake --build TGC-ISS/build -j24 + Test interp backend: + - name: run tests + needs: Setup and build ISS + run: python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim TGC-ISS/build/dbt-rise-tgc/tgc-sim -w . --dockerless --backend interp + Test llvm backend: + - name: run tests + needs: Setup and build ISS + run: python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim TGC-ISS/build/dbt-rise-tgc/tgc-sim -w . --dockerless --backend llvm + Test tcc backend: + - name: run tests + needs: Setup and build ISS + run: python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim TGC-ISS/build/dbt-rise-tgc/tgc-sim -w . --dockerless --backend tcc + Test asmjit backend: + - name: run tests + needs: Setup and build ISS + run: python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim TGC-ISS/build/dbt-rise-tgc/tgc-sim -w . --dockerless --backend asmjit \ No newline at end of file