Skip to content

Commit

Permalink
Enable functional tests on public CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Sep 12, 2024
1 parent 6937241 commit 632f388
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() }}
Expand Down

0 comments on commit 632f388

Please sign in to comment.