File tree 3 files changed +36
-0
lines changed 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -349,3 +349,24 @@ jobs:
349
349
- uses : actions/checkout@v2
350
350
- name : Check for unused irep ids
351
351
run : ./scripts/string_table_check.sh
352
+
353
+ check-docker-image :
354
+ runs-on : ubuntu-20.04
355
+ steps :
356
+ - uses : actions/checkout@v2
357
+ with :
358
+ submodules : recursive
359
+ - name : Download test dependencies
360
+ run : sudo apt install openjdk-11-jdk-headless
361
+ - name : Build docker image
362
+ run : docker build -t cbmc .
363
+ - name : Smoke test goto-cc
364
+ run : docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc goto-cc -o /mnt/smoke/test.goto /mnt/smoke/test.c
365
+ - name : Smoke test cbmc
366
+ run : docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc cbmc /mnt/smoke/test.goto
367
+ - name : Smoke test jbmc
368
+ run : |
369
+ javac .github/workflows/smoke_test_assets/Test.java
370
+ docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc jbmc --classpath /mnt/smoke Test
371
+ - name : Smoke test goto-analyzer
372
+ run : docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc goto-analyzer /mnt/smoke/test.goto --unreachable-functions
Original file line number Diff line number Diff line change
1
+ public class Test {
2
+ public static void main (String [] args ) {
3
+ System .out .println ("Hi" );
4
+ assert (1 == 1 );
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ #include <assert.h>
2
+
3
+ #define return_val 0;
4
+
5
+ int main (void )
6
+ {
7
+ assert (1 == 1 );
8
+ return return_val ;
9
+ }
You can’t perform that action at this time.
0 commit comments