File tree Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ add_subdirectory(test-script)
56
56
add_subdirectory (goto-analyzer-taint )
57
57
add_subdirectory (goto-bmc/goto-bmc-symex-ready-goto )
58
58
add_subdirectory (goto-bmc/goto-bmc-non-symex-ready-goto )
59
+ add_subdirectory (goto-bmc )
59
60
if (NOT WIN32 )
60
61
add_subdirectory (goto-gcc )
61
62
else ()
Original file line number Diff line number Diff line change
1
+ add_test_pl_tests (
2
+ "$<TARGET_FILE:goto-bmc>"
3
+ )
Original file line number Diff line number Diff line change
1
+ CORE
2
+ not-goto-no-header.goto
3
+
4
+ ^EXIT=6$
5
+ ^SIGNAL=0$
6
+ Please give exactly one binary file
7
+ --
8
+ not a goto binary
9
+ Unable to read goto-binary from file not-goto-no-header\.goto
10
+ --
11
+ This test confirms that an appropriate error message is displayed in the case
12
+ where a single input file is specified which does not pass the header check.
Original file line number Diff line number Diff line change
1
+ This is not a goto binary. A header would be required to pass the
2
+ `is_goto_binary` check.
Original file line number Diff line number Diff line change
1
+ CORE
2
+ not-goto-with-header.goto
3
+
4
+ ^EXIT=2$
5
+ ^SIGNAL=0$
6
+ Unable to read goto-binary from file not-goto-with-header\.goto
7
+ --
8
+ Please give exactly one binary file
9
+ not a goto binary
10
+ --
11
+ This test confirms that an appropriate error message is displayed in the case
12
+ where an input file is specified which passed the header check used to
13
+ determine if the file is a goto binary or not, but which is not followed by
14
+ data of a valid goto binary file. Note that the `is_goto_binary` check works
15
+ based on checking if the first four bytes of the file are the byte 7F followed
16
+ by the characters "GBF".
Original file line number Diff line number Diff line change
1
+ GBF
2
+ This is not a valid goto binary. It does have a header which should pass the
3
+ `is_goto_binary` check though.
You can’t perform that action at this time.
0 commit comments