From 632f3880b6189a05b1092a35aea40c3ec97f1987 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 12 Sep 2024 11:04:00 +0200 Subject: [PATCH] Enable functional tests on public CI --- .github/actions/setup-build-env/action.yml | 2 ++ .github/workflows/test-build.yml | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-build-env/action.yml b/.github/actions/setup-build-env/action.yml index c5a0d14abdf..c5df5e79444 100644 --- a/.github/actions/setup-build-env/action.yml +++ b/.github/actions/setup-build-env/action.yml @@ -9,12 +9,14 @@ runs: run: | sudo apt-get update sudo apt-get install gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev + pip3 install pytest - name: Install macOS Dependencies if: runner.os == 'macOS' shell: bash run: | HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf llvm + pip3 install -U pytest --break-system-packages - name: Linux runtime environment if: runner.os == 'Linux' diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 0eb2c65c51c..9faf4e8af8d 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -100,6 +100,16 @@ jobs: cd iverilog echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV + - name: Get vcd2fst + shell: bash + run: | + git clone https://github.com/mmicko/libwave.git + mkdir -p ${{ github.workspace }}/.local/ + cd libwave + cmake . -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/.local + make -j$procs + make install + - name: Cache iverilog id: cache-iverilog uses: actions/cache@v4 @@ -135,7 +145,7 @@ jobs: - name: Run tests shell: bash run: | - make -j$procs test TARGETS= EXTRA_TARGETS= CONFIG=$CC + make -j$procs test TARGETS= EXTRA_TARGETS= CONFIG=$CC ENABLE_FUNCTIONAL_TESTS=1 - name: Report errors if: ${{ failure() }}