Skip to content

Commit 8d9bfc0

Browse files
committed
Add CI job that runs KNOWNBUG tests
This is to make sure that we do not spuriously keep tests marked as "KNOWNBUG" when a source change fixes the problem.
1 parent a46bcf9 commit 8d9bfc0

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ jobs:
125125
name: ebmc-binary
126126
retention-days: 5
127127
path: src/ebmc/ebmc
128+
- name: Upload the hw-cbmc binary
129+
uses: actions/upload-artifact@v4
130+
with:
131+
name: hw-cbmc-binary
132+
retention-days: 5
133+
path: src/hw-cbmc/hw-cbmc
128134
- name: Upload the vlindex binary
129135
uses: actions/upload-artifact@v4
130136
with:
@@ -457,3 +463,57 @@ jobs:
457463
run: make CXX=clcache BUILD_ENV=MSVC -j4 -C unit
458464
- name: Print ccache stats
459465
run: clcache -s
466+
467+
# This job takes approximately 2 minutes
468+
check-ubuntu-24_04-make-clang-KNOWNBUG:
469+
runs-on: ubuntu-24.04
470+
needs: check-ubuntu-24_04-make-clang
471+
steps:
472+
- uses: actions/checkout@v4
473+
with:
474+
submodules: recursive
475+
- name: Fetch dependencies
476+
env:
477+
# This is needed in addition to -yq to prevent apt-get from asking for
478+
# user input
479+
DEBIAN_FRONTEND: noninteractive
480+
run: |
481+
sudo apt-get update
482+
sudo apt-get install --no-install-recommends -yq z3
483+
- name: Confirm z3 solver is available and log the version installed
484+
run: z3 --version
485+
- name: Get the ebmc binary
486+
uses: actions/download-artifact@v4
487+
with:
488+
name: ebmc-binary
489+
path: bin
490+
- name: Get the hw-cbmc binary
491+
uses: actions/download-artifact@v4
492+
with:
493+
name: hw-cbmc-binary
494+
path: bin
495+
- name: Get the vlindex binary
496+
uses: actions/download-artifact@v4
497+
with:
498+
name: vlindex-binary
499+
path: bin
500+
- name: Try the binaries
501+
run: |
502+
chmod a+x ./bin/ebmc ; ./bin/ebmc --version
503+
chmod a+x ./bin/hw-cbmc ; ./bin/hw-cbmc --version
504+
chmod a+x ./bin/vlindex ; ./bin/vlindex --version
505+
echo "PATH=$PATH:$PWD/bin" >> $GITHUB_ENV
506+
- name: Run the ebmc tests with SAT
507+
run: make -C regression/ebmc test TEST_PL="../../lib/cbmc/regression/test.pl -K"
508+
- name: Run the ebmc tests with Z3
509+
run: make -C regression/ebmc test-z3 TEST_PL="../../lib/cbmc/regression/test.pl -K"
510+
- name: Run the verilog tests
511+
run: make -C regression/verilog test TEST_PL="../../lib/cbmc/regression/test.pl -K"
512+
- name: Run the verilog tests with Z3
513+
run: make -C regression/verilog test-z3 TEST_PL="../../lib/cbmc/regression/test.pl -K"
514+
- name: Run the smv tests
515+
run: make -C regression/smv test TEST_PL="../../lib/cbmc/regression/test.pl -K"
516+
- name: Run the smv tests with Z3
517+
run: make -C regression/smv test-z3 TEST_PL="../../lib/cbmc/regression/test.pl -K"
518+
- name: Run the vlindex tests
519+
run: make -C regression/vlindex test TEST_PL="../../lib/cbmc/regression/test.pl -K"

0 commit comments

Comments
 (0)