summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
blob: 64a9b4d2ef9a9b8f5237d12a47d82bc21d615e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include_directories(/opt/MESA/include/MESA/)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src/inc_internal)
include_directories(${PROJECT_SOURCE_DIR}/deps)
include_directories(${PROJECT_SOURCE_DIR}/scanner)
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher)
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher/adapter_hs)
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher/adapter_rs)
include_directories(${PROJECT_SOURCE_DIR}/scanner/ip_matcher)
include_directories(${PROJECT_SOURCE_DIR}/scanner/ipport_matcher)
include_directories(${PROJECT_SOURCE_DIR}/scanner/bool_matcher)

# add_executable(rcu_hash_gtest rcu_hash_gtest.cpp)
# target_link_libraries(rcu_hash_gtest maat_frame_static gtest_static)

# add_executable(maat_input_mode_gtest maat_input_mode_gtest.cpp test_utils.cpp)
# target_link_libraries(maat_input_mode_gtest maat_frame_static gtest_static)

add_executable(maat_framework_gtest maat_framework_gtest.cpp test_utils.cpp)
target_link_libraries(maat_framework_gtest maat_frame_static gtest_static)

# add_executable(maat_framework_perf_gtest maat_framework_perf_gtest.cpp test_utils.cpp)
# target_link_libraries(maat_framework_perf_gtest maat_frame_static gtest_static)

# add_executable(expr_matcher_gtest expr_matcher_gtest.cpp)
# target_link_libraries(expr_matcher_gtest maat_frame_static gtest_static)

# add_executable(ip_matcher_gtest ip_matcher_gtest.cpp)
# target_link_libraries(ip_matcher_gtest maat_frame_static gtest_static)

# add_executable(ipport_matcher_gtest ipport_matcher_gtest.cpp)
# target_link_libraries(ipport_matcher_gtest maat_frame_static gtest_static)

# add_executable(bool_matcher_gtest bool_matcher_gtest.cpp)
# target_link_libraries(bool_matcher_gtest maat_frame_static gtest_static)

# add_executable(maat_ex_data_gtest maat_ex_data_gtest.cpp)
# target_link_libraries(maat_ex_data_gtest maat_frame_static gtest_static)

# add_subdirectory(object_nesting)
# add_subdirectory(ipport_plugin)
#add_subdirectory(benchmark) //TODO: convert iris rule to json rule

configure_file(table_info.json table_info.json COPYONLY)
configure_file(tsg_table_info.json tsg_table_info.json COPYONLY)
configure_file(expr_matcher.json expr_matcher.json COPYONLY)
configure_file(maat_json.json maat_json.json COPYONLY)
configure_file(regex_expr.json regex_expr.json COPYONLY)

file(COPY tsgrule DESTINATION ./)
file(COPY testdata DESTINATION ./)
file(COPY test_streamfiles DESTINATION ./)
file(COPY json_update DESTINATION ./)
file(COPY object_nesting DESTINATION ./)
file(COPY ipport_plugin DESTINATION ./)
file(COPY benchmark DESTINATION ./)

include(GoogleTest)
gtest_discover_tests(maat_framework_gtest)