From 323b4e0b5ce616459434f19205262a8729e9673f Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 11 Aug 2024 09:45:14 +0100 Subject: [PATCH] Enable more VUnit tests --- .github/workflows/build-test.yml | 34 +++++++++++--------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 331f7f355..05d39595e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -341,40 +341,30 @@ jobs: sudo apt-get install ./nvc_*.deb - name: Check --version output run: nvc --version + - name: Set environment variables + run: | + echo "VUNIT_SIMULATOR=nvc" >> $GITHUB_ENV + echo "PYTHONPATH=$(pwd)/vunit" >> $GITHUB_ENV - name: Run uart example run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit - cd vunit/examples/vhdl/uart - python3 run.py + python3 vunit/examples/vhdl/uart/run.py - name: Run axi_dma example run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit - cd vunit/examples/vhdl/axi_dma - python3 run.py + python3 vunit/examples/vhdl/axi_dma/run.py - name: Run com example run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit - cd vunit/examples/vhdl/com - python3 run.py + python3 vunit/examples/vhdl/com/run.py - name: Run com tests run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit - cd vunit/vunit/vhdl/com - python3 run.py + python3 vunit/vunit/vhdl/com/run.py + - name: Run data_types tests + run: | + python3 vunit/vunit/vhdl/data_types/run.py - name: Run verification_components tests run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit - cd vunit/vunit/vhdl/verification_components - python3 run.py + python3 vunit/vunit/vhdl/verification_components/run.py - name: Run Microwatt tests run: | - export VUNIT_SIMULATOR=nvc - export PYTHONPATH=$(pwd)/vunit cd microwatt make git.vhdl python3 run.py