File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -72,4 +72,5 @@ add_subdirectory(cbmc-sequentialization)
72
72
if (WITH_MEMORY_ANALYZER)
73
73
add_subdirectory (snapshot-harness)
74
74
add_subdirectory (memory-analyzer)
75
+ add_subdirectory (extract_type_header)
75
76
endif ()
Original file line number Diff line number Diff line change 58
58
59
59
ifeq ($(WITH_MEMORY_ANALYZER ) ,1)
60
60
DIRS += snapshot-harness \
61
- memory-analyzer
61
+ memory-analyzer \
62
+ extract_type_header
62
63
endif
63
64
64
65
# Run all test directories in sequence
Original file line number Diff line number Diff line change
1
+ if (WIN32 )
2
+ set (is_windows true )
3
+ else ()
4
+ set (is_windows false )
5
+ endif ()
6
+
7
+ add_test_pl_tests(
8
+ "${CMAKE_CURRENT_SOURCE_DIR} /chain.sh $<TARGET_FILE:goto-cc> $<TARGET_FILE:goto-instrument> $<TARGET_FILE:cbmc> ../../../scripts/extract_type_header.py ${is_windows} "
9
+ )
Original file line number Diff line number Diff line change @@ -14,13 +14,12 @@ name=${name%.c}
14
14
args=${*: 6: $# -6}
15
15
16
16
if [[ " ${is_windows} " == " true" ]]; then
17
- $goto_cc " ${name} .c"
18
- mv " ${name} .exe" " ${name} .gb"
17
+ $goto_cc " ${name} .c" " /Fe${name} .gb"
19
18
else
20
19
$goto_cc -o " ${name} .gb" " ${name} .c"
21
20
fi
22
21
23
- export PATH=$PATH :" $( pwd) ../../../src/goto-instrument/ "
22
+ export PATH=$PATH :" $( cd $( dirname $goto_instrument ) && pwd) "
24
23
$python_script " ${name} .gb" " ${name} .c" " header.h"
25
24
cat " header.h"
26
25
rm -f " header.h"
You can’t perform that action at this time.
0 commit comments