Skip to content

Commit 150f03a

Browse files
authored
Merge pull request #871 from diffblue/vlindex-in-CI
Vlindex in CI
2 parents 2c01450 + f13ce62 commit 150f03a

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

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

Lines changed: 17 additions & 2 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 vlindex binary
129+
uses: actions/upload-artifact@v4
130+
with:
131+
name: vlindex-binary
132+
retention-days: 5
133+
path: src/vlindex/vlindex
128134

129135
# This job takes approximately 4 minutes
130136
benchmarking:
@@ -167,8 +173,17 @@ jobs:
167173
path: ebmc
168174
- name: Try the ebmc binary
169175
run: chmod a+x ./ebmc/ebmc ; ./ebmc/ebmc --version
170-
- name: Hazard3
171-
run: PATH=$PATH:$PWD/ebmc examples/Hazard3/Hazard3.sh
176+
- name: ebmc on Hazard3
177+
run: PATH=$PATH:$PWD/ebmc examples/Hazard3/Hazard3-ebmc.sh
178+
- name: Get the vlindex binary
179+
uses: actions/download-artifact@v4
180+
with:
181+
name: vlindex-binary
182+
path: vlindex
183+
- name: Try the vlindex binary
184+
run: chmod a+x ./vlindex/vlindex ; ./vlindex/vlindex --version
185+
- name: vlindex on Hazard3
186+
run: PATH=$PATH:$PWD/vlindex examples/Hazard3/Hazard3-vlindex.sh
172187

173188
# This job takes approximately 15 minutes
174189
check-centos8-make-gcc:
File renamed without changes.

examples/Hazard3/Hazard3-vlindex.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/sh
2+
3+
# abort on error
4+
set -e
5+
6+
# clone Hazard3 repo if not done yet
7+
if [ ! -e Hazard3/.git ] ; then
8+
git clone https://github.com/Wren6991/Hazard3 --branch v1.0 --depth 1
9+
fi
10+
11+
cd Hazard3
12+
13+
vlindex -I hdl | tee vlindex-output
14+
15+
grep "Number of" vlindex-output > vlindex-output-filtered
16+
17+
# This errors when there's a diff
18+
diff vlindex-output-filtered - << EOM
19+
Number of files...........: 46
20+
Number of symlinked files.: 0
21+
Number of lines...........: 12093
22+
Number of modules.........: 46
23+
Number of UDPs............: 0
24+
Number of checkers........: 0
25+
Number of classes.........: 0
26+
Number of packages........: 0
27+
Number of interfaces......: 0
28+
Number of functions.......: 7
29+
Number of tasks...........: 0
30+
Number of properties......: 0
31+
Number of sequences.......: 0
32+
Number of module instances: 71
33+
Number of configurations..: 0
34+
EOM

src/vlindex/vlindex_parse_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class vlindex_parse_optionst : public parse_options_baset
2222

2323
vlindex_parse_optionst(int argc, const char **argv)
2424
: parse_options_baset(
25+
"(version)"
2526
"(top)"
2627
"(hierarchy)"
2728
"(modules)"

0 commit comments

Comments
 (0)