Skip to content

Commit ede99db

Browse files
authored
Merge pull request #1222 from diffblue/knowbug-ci
Add CI job that runs KNOWNBUG tests
2 parents a3787d6 + 8d9bfc0 commit ede99db

File tree

6 files changed

+70
-170
lines changed

6 files changed

+70
-170
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"

regression/ebmc/test.pl

Lines changed: 0 additions & 163 deletions
This file was deleted.

regression/hw-cbmc/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
default: tests.log
22

3+
TEST_PL = ../../lib/cbmc/regression/test.pl
4+
35
test:
4-
@../test.pl -e -p -c ../../../src/hw-cbmc/hw-cbmc
6+
@$(TEST_PL) -e -p -c ../../../src/hw-cbmc/hw-cbmc
57

68
tests.log:
7-
@../test.pl -e -p -c ../../../src/hw-cbmc/hw-cbmc
9+
@$(TEST_PL) -e -p -c ../../../src/hw-cbmc/hw-cbmc
810

911
show:
1012
@for dir in *; do \
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
KNOWNBUG
1+
CORE
22
enum_in_assert.sv
33

44
^EXIT=0$
55
^SIGNAL=0$
66
--
77
--
8-
This throws an exception.

regression/verilog/enums/enum_name_collision.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
enum_name_collision.sv
33

44
^EXIT=2$

regression/vhdl/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
default: tests.log
22

3+
TEST_PL = ../../lib/cbmc/regression/test.pl
4+
35
test:
4-
@../test.pl -e -p -c ../../../src/ebmc/ebmc
6+
@$(TEST_PL) -e -p -c ../../../src/ebmc/ebmc
57

68
tests.log:
7-
@../test.pl -e -p -c ../../../src/ebmc/ebmc
9+
@$(TEST_PL) -e -p -c ../../../src/ebmc/ebmc
810

911
show:
1012
@for dir in *; do \

0 commit comments

Comments
 (0)