-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
47 lines (38 loc) · 1.07 KB
/
CMakeLists.txt
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
# BOLT large testsuite
# These tests run BOLT using large binaries captured from an opensource
# environment
find_package(Python3 COMPONENTS Interpreter)
set(BOLTTESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(BOLTTESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(BOLTTESTS_DEPS
count
FileCheck
llvm-bat-dump
llvm-bolt
llvm-config
llvm-dwarfdump
llvm-nm
llvm-objdump
llvm-strip
llvm-readelf
not
)
if (NOT DEFINED Python3_EXECUTABLE)
message(FATAL_ERROR "Cannot run bolt-tests without python 3")
endif()
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
MAIN_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
)
# This may easily OOM the machine, so we limit jobs to 4
add_lit_testsuite(check-large-bolt "Running bolt large bins testsuite"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${BOLTTESTS_DEPS}
ARGS "-j4"
)
add_lit_testsuites(BOLTTESTS ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${BOLTTESTS_DEPS}
)
set_target_properties(check-large-bolt PROPERTIES FOLDER "bolt large bins testsuite")