File tree 12 files changed +20
-35
lines changed
12 files changed +20
-35
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ jobs:
162
162
- RUN_CBMC_TESTS="false"
163
163
- RUN_SECURITY_TESTS="true"
164
164
- CCACHE_CPP2=yes
165
- - EXTRA_CXXFLAGS="-DDEBUG"
166
165
167
166
168
167
allow_failures :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED true)
43
43
44
44
set (CMAKE_EXPORT_COMPILE_COMMANDS true )
45
45
46
- set (enable_security_tests off CACHE BOOL "Whether tests of the security analyser should be enabled." )
46
+ set (enable_security_tests on CACHE BOOL "Whether tests of the security analyser should be enabled." )
47
47
set (enable_cbmc_tests off CACHE BOOL "Whether CBMC tests should be enabled (the default is to enable just test-gen tests)" )
48
48
49
49
################################################################################
Original file line number Diff line number Diff line change 1
- # TODO: this script should only forwad its input to the driver script.
1
+ # TODO: this script should only forwrad its input to the driver script.
2
2
# Implement it! Until then, this script is bypassed by the evaluator.
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ macro(generic_includes name)
8
8
${SECURITY_ANALYSER_SOURCE_DIR}
9
9
${CMAKE_CURRENT_BINARY_DIR}
10
10
${CMAKE_CURRENT_SOURCE_DIR}
11
+ ${CBMC_SOURCE_DIR}
12
+ ${boost_include_include_dir}
11
13
)
12
14
endmacro (generic_includes)
13
15
14
- add_definitions (-DUSE_BOOST)
15
16
16
17
add_subdirectory (driver)
17
18
add_subdirectory (pointer-analysis)
Original file line number Diff line number Diff line change @@ -21,12 +21,7 @@ endif()
21
21
22
22
target_compile_definitions (security-analyzer
23
23
PRIVATE "-DSECURITY_ANALYSER_VERSION=\" ${git_repo_version} \" "
24
- )
25
-
26
- target_include_directories (security-analyzer
27
- PRIVATE
28
- ${CBMC_SOURCE_DIR}
29
- "${boost_include_include_dir} "
24
+ USE_BOOST=1
30
25
)
31
26
32
27
generic_includes(security-analyzer)
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ add_library(sec_pointer_analysis
5
5
${headers}
6
6
)
7
7
8
- target_include_directories (sec_pointer_analysis
9
- PRIVATE
10
- ${CBMC_SOURCE_DIR}
11
- "${boost_include_include_dir} "
8
+ target_compile_definitions (sec_pointer_analysis
9
+ PRIVATE USE_BOOST=1
12
10
)
13
11
14
12
generic_includes(sec_pointer_analysis)
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ add_library(sec_summaries
5
5
${headers}
6
6
)
7
7
8
- target_include_directories (sec_summaries
9
- PRIVATE
10
- ${CBMC_SOURCE_DIR}
11
- "${boost_include_include_dir} "
8
+ target_compile_definitions (sec_summaries
9
+ PRIVATE USE_BOOST=1
12
10
)
13
11
14
12
generic_includes(sec_summaries)
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ add_library(sec_taint_analysis
5
5
${headers}
6
6
)
7
7
8
- target_include_directories (sec_taint_analysis
9
- PRIVATE
10
- ${CBMC_SOURCE_DIR}
11
- "${boost_include_include_dir} "
8
+ target_compile_definitions (sec_taint_analysis
9
+ PRIVATE USE_BOOST=1
12
10
)
13
11
14
12
generic_includes(sec_taint_analysis)
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ add_library(sec_taint_slicer
5
5
${headers}
6
6
)
7
7
8
- target_include_directories (sec_taint_slicer
9
- PRIVATE
10
- ${CBMC_SOURCE_DIR}
11
- "${boost_include_include_dir} "
8
+ target_compile_definitions (sec_taint_slicer
9
+ PRIVATE USE_BOOST=1
12
10
)
13
11
14
12
generic_includes(sec_taint_slicer)
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ add_library(sec_util
5
5
${headers}
6
6
)
7
7
8
- target_include_directories (sec_util
9
- PRIVATE
10
- ${CBMC_SOURCE_DIR}
11
- "${boost_include_include_dir} "
8
+ target_compile_definitions (sec_util
9
+ PRIVATE USE_BOOST=1
12
10
)
13
11
14
12
generic_includes(sec_util)
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ file(GLOB_RECURSE headers "*.h")
3
3
add_executable (test -union
4
4
${sources}
5
5
${headers}
6
- ../test .cpp
7
- ../indentation.cpp
6
+ ../test .cpp
7
+ ../indentation.cpp
8
8
)
9
9
10
10
target_include_directories (test -union
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ file(GLOB_RECURSE headers "*.h")
3
3
add_executable (test -serializer
4
4
${sources}
5
5
${headers}
6
- ../test .cpp
7
- ../indentation.cpp
8
- taint-config.json
6
+ ../test .cpp
7
+ ../indentation.cpp
8
+ taint-config.json
9
9
)
10
10
11
11
target_include_directories (test -serializer
You can’t perform that action at this time.
0 commit comments