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 @@ -78,4 +78,5 @@ add_subdirectory(cpp-linter)
78
78
if (WITH_MEMORY_ANALYZER)
79
79
add_subdirectory (snapshot-harness)
80
80
add_subdirectory (memory-analyzer)
81
+ add_subdirectory (extract_type_header)
81
82
endif ()
Original file line number Diff line number Diff line change 64
64
65
65
ifeq ($(WITH_MEMORY_ANALYZER ) ,1)
66
66
DIRS += snapshot-harness \
67
- memory-analyzer
67
+ memory-analyzer \
68
+ extract_type_header
68
69
endif
69
70
70
71
# 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