Skip to content

Commit 91a432a

Browse files
committed
ci: Add tethered binary tests
1 parent 5b7cbf5 commit 91a432a

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ jobs:
134134
source env.sh
135135
source /ecad/tools/vlsi.bashrc
136136
cd sims/vcs
137-
make debug SUB_PROJECT=muon CONFIG=MuonBackendTestConfig
137+
make debug CONFIG=RadianceTapeoutSimTraceConfig
138+
make debug CONFIG=TetheredRadianceTapeoutConfig
138139
make debug SUB_PROJECT=muon CONFIG=MuonCoreTestConfig
139140
make debug CONFIG=RadianceCyclotronConfig
140-
make debug CONFIG=RadianceTapeoutSimTraceConfig
141+
make debug SUB_PROJECT=muon CONFIG=MuonBackendTestConfig
141142
142143
run-unit-tests:
143144
name: Run Unit-tests
@@ -244,6 +245,34 @@ jobs:
244245
"${CHIPYARD_RUN_LOG_DIR}/cosim/results.json" \
245246
--github-step-summary
246247
248+
run-tethered-binary-tests:
249+
name: Run Host-launch binary tests
250+
runs-on: as4
251+
needs: build
252+
steps:
253+
- name: Run binary tests on host-launch config
254+
run: |
255+
cd "${CHIPYARD_DIR}"
256+
source env.sh
257+
source /ecad/tools/vlsi.bashrc
258+
cd generators/radiance
259+
python3 test/run_binary_tests.py -j "$(nproc)" -c hostlaunch \
260+
--log-dir "${CHIPYARD_RUN_LOG_DIR}" \
261+
--elf-dir cyclotron/test/host-launch \
262+
--json-out "${CHIPYARD_RUN_LOG_DIR}/hostlaunch/results.json"
263+
- name: Run bindiff tests on host-launch config
264+
if: always()
265+
run: |
266+
cd "${CHIPYARD_DIR}/generators/radiance"
267+
python3 test/run_bindiff_tests.py "${CHIPYARD_RUN_LOG_DIR}/hostlaunch/results.json"
268+
- name: Render binary test report
269+
if: always()
270+
run: |
271+
cd "${CHIPYARD_DIR}/generators/radiance"
272+
python3 test/render_binary_test_report.py \
273+
"${CHIPYARD_RUN_LOG_DIR}/hostlaunch/results.json" \
274+
--github-step-summary
275+
247276
# run-backend-cosim-binary-tests:
248277
# name: Run Backend Co-sim binary tests
249278
# runs-on: as4
@@ -269,7 +298,7 @@ jobs:
269298
clean:
270299
name: Clean
271300
runs-on: as4
272-
needs: [build, run-unit-tests, run-soc-binary-tests, run-core-binary-tests, run-cosim-binary-tests]
301+
needs: [build, run-unit-tests, run-soc-binary-tests, run-core-binary-tests, run-cosim-binary-tests, run-tethered-binary-tests]
273302
if: always()
274303
steps:
275304
- name: Cleanup workspace, chipyard and conda

0 commit comments

Comments
 (0)