Skip to content

Commit e2b0dc3

Browse files
authored
Generate correct cbmc-batch.yaml locally (#1988)
Signed-off-by: Felipe R. Monteiro <felisous@amazon.com>
1 parent ade6c66 commit e2b0dc3

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

tests/cbmc/proofs/Makefile.cbmc_batch

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ define yaml_encode_options
5050
"$(shell echo $(1) | sed 's/ ,/ /g' | sed 's/ /;/g')"
5151
endef
5252

53-
$(ENTRY).yaml:
53+
$(ENTRY).yaml:
5454
echo 'batchpkg: $(BATCHPKG)' > $@
5555
echo 'build: true' >> $@
5656
echo 'cbmcflags: $(call yaml_encode_options,$(CHECKFLAGS) $(CBMCFLAGS))' >> $@
@@ -64,12 +64,18 @@ $(ENTRY).yaml:
6464

6565
batch-yaml: $(ENTRY).yaml Makefile
6666

67-
cbmc-batch.yaml:
67+
cbmc-batch.yaml:
6868
echo 'cbmcflags: $(strip $(call yaml_encode_options,$(CHECKFLAGS) $(CBMCFLAGS)))' > $@
6969
echo 'expected: "SUCCESSFUL"' >> $@
7070
echo 'goto: gotos/$(ENTRY).goto' >> $@
7171
echo 'jobos: ubuntu16' >> $@
7272

73+
empty-cbmc-batch.yaml:
74+
echo ':' > 'cbmc-batch.yaml'
75+
echo ' This file marks this directory as containing a CBMC proof. This file' >> 'cbmc-batch.yaml'
76+
echo ' is automatically clobbered in CI and replaced with parameters for' >> 'cbmc-batch.yaml'
77+
echo ' running the proof.' >> 'cbmc-batch.yaml'
78+
7379
ci-yaml: cbmc-batch.yaml Makefile
7480

7581
.PHONY: ci-yaml batch-yaml
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cbmcflags: "--bounds-check;--conversion-check;--div-by-zero-check;--enum-range-check;--float-overflow-check;--nan-check;--pointer-check;--pointer-overflow-check;--pointer-primitive-check;--signed-overflow-check;--undefined-shift-check;--unsigned-overflow-check;--unwind;1;--unwinding-assertions;--object-bits;8"
2-
expected: "SUCCESSFUL"
3-
goto: gotos/s2n_blob_init_harness.goto
4-
jobos: ubuntu16
1+
:
2+
This file marks this directory as containing a CBMC proof. This file
3+
is automatically clobbered in CI and replaced with parameters for
4+
running the proof.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cbmcflags: "--bounds-check;--conversion-check;--div-by-zero-check;--enum-range-check;--float-overflow-check;--nan-check;--pointer-check;--pointer-overflow-check;--pointer-primitive-check;--signed-overflow-check;--undefined-shift-check;--unsigned-overflow-check;--unwind;1;--unwinding-assertions;--object-bits;8"
2-
expected: "SUCCESSFUL"
3-
goto: gotos/s2n_blob_is_growable_harness.goto
4-
jobos: ubuntu16
1+
:
2+
This file marks this directory as containing a CBMC proof. This file
3+
is automatically clobbered in CI and replaced with parameters for
4+
running the proof.

0 commit comments

Comments
 (0)