Skip to content

Commit

Permalink
Add message(STATUS) to log cmake variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankyluk committed Mar 27, 2024
1 parent 00f65e8 commit 909cbff
Showing 1 changed file with 134 additions and 70 deletions.
204 changes: 134 additions & 70 deletions suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6204,74 +6204,138 @@ endif ()
# TODO i#6417: The switch to AMD VM's for GA CI has broken many of our tests.
# This includes timeouts which increases suite length.
# The following tests are excluded until they are fixed.
if (DR_HOST_X86 AND NOT DR_HOST_X64)
if (UNIX)
set_tests_properties(
code_api|api.detach
code_api|api.detach_spawn_quick_exit
code_api|api.ibl-stress
code_api|api.startstop
code_api|api.static_detach
code_api|api.static_prepop
code_api|api.static_signal
code_api|api.thread_churn
code_api|client.alloc
code_api|client.attach_blocking
code_api|client.attach_test
code_api|client.detach_test
code_api|client.drwrap-test-detach
code_api|client.flush
code_api|client.strace
code_api|common.decode-stress
code_api|linux.eintr
code_api|linux.eintr-noinline
code_api|tool.basic_counts
code_api|tool.drcacheoff.altbindir
code_api|tool.drcacheoff.burst_client
code_api|tool.drcacheoff.basic_counts
code_api|tool.drcacheoff.burst_futex
code_api|tool.drcacheoff.burst_malloc
code_api|tool.drcacheoff.burst_maps
code_api|tool.drcacheoff.burst_reattach
code_api|tool.drcacheoff.burst_replace
code_api|tool.drcacheoff.burst_replaceall
code_api|tool.drcacheoff.burst_static
code_api|tool.drcacheoff.burst_syscall_inject
code_api|tool.drcacheoff.burst_threadfilter
code_api|tool.drcacheoff.burst_threads
code_api|tool.drcacheoff.burst_threads_counts
code_api|tool.drcacheoff.burst_threadL0filter
code_api|tool.drcacheoff.func_view_noret
code_api|tool.drcacheoff.gencode
code_api|tool.drcacheoff.gencode_filtered
code_api|tool.drcacheoff.getretaddr_record_replace_retaddr
code_api|tool.drcacheoff.invariant_checker
code_api|tool.drcacheoff.invariant_checker_pthreads
code_api|tool.drcacheoff.legacy
code_api|tool.drcacheoff.max-global
code_api|tool.drcacheoff.sysnums
code_api|tool.drcacheoff.warmup-pthreads-2
code_api|tool.drcacheoff.warmup-pthreads-max-refs
code_api|tool.drcacheoff.warmup-pthreads-max-trace-size
code_api|tool.drcacheoff.warmup-pthreads-windows-split
code_api|tool.drcacheoff.windows-split
code_api|tool.drcacheoff.windows-timestamps
code_api|tool.drcachesim.coherence
code_api|tool.drcachesim.delay-global
code_api|tool.drcachesim.filter-d
code_api|tool.drcachesim.filter-no-d
code_api|tool.drcachesim.invariants
code_api|tool.drcachesim.miss_analyzer
code_api|tool.drcachesim.scattergather-x86
code_api|tool.drcachesim.threads
code_api|tool.drcachesim.threads-with-config-file
code_api|tool.drcachesim.windows-simple
code_api|tool.drcachesim.TLB-threads
code_api|tool.drcov.eintr
code_api|tool.histogram.offline
code_api|tool.record_filter
code_api|tool.record_filter_bycore_multi
code_api|tool.record_filter_bycore_uni
PROPERTIES LABELS X32_DENYLIST)
endif ()
if (X86)
message(STATUS "X86: true")
else ()
message(STATUS "X86: false")
endif ()
if (DR_HOST_X86)
message(STATUS "DR_HOST_X86: true")
endif ()
if (DR_HOST_X64)
message(STATUS "DR_HOST_X64: true")
else ()
message(STATUS "DR_HOST_X64: false")
endif ()
if (arg_32_only)
message(STATUS "arg_32_only: true")
else ()
message(STATUS "arg_32_only: false")
endif ()
if (arg_64_only)
message(STATUS "arg_64_only: true")
else ()
message(STATUS "arg_64_only: false")
endif ()
if (CPU_AMD)
message(STATUS "amd: true")
endif ()
if (CPU_INTEL)
message(STATUS "intel: true")
endif ()
if (X64)
message(STATUS "X64: true")
else ()
message(STATUS "X64: false")
endif ()
if (DR_HOST_NOT_TARGET)
message(STATUS "DR_HOST_NOT_TARGET: true")
else ()
message(STATUS "DR_HOST_NOT_TARGET: false")
endif ()
if (UNIX)
message(STATUS "UNIX: true")
else ()
message(STATUS "UNIX: false")
endif ()
if (LINUX)
message(STATUS "LINUX: true")
else ()
message(STATUS "LINUX: false")
endif ()

message(STATUS "target: ${target}")
message(STATUS "TARGET_ARCH: ${TARGET_ARCH}")
message(STATUS "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS "ARCH_CFLAGS: ${ARCH_CFLAGS}")

if (${ARCH_CFLAGS} STREQUAL "-m32")
message(STATUS "ARCH_CFLAGS == -m32")
else ()
message(STATUS "ARCH_CFLAGS != -m32")
endif ()
if ("${ARCH_CFLAGS}" STREQUAL "-m32")
message(STATUS "'ARCH_CFLAGS' == -m32")
else ()
message(STATUS "'ARCH_CFLAGS' != -m32")
endif ()

if (UNIX AND X86 AND "${ARCH_CFLAGS}" STREQUAL "-m32")
set_tests_properties(
code_api|api.detach
code_api|api.detach_spawn_quick_exit
code_api|api.ibl-stress
code_api|api.startstop
code_api|api.static_detach
code_api|api.static_prepop
code_api|api.static_signal
code_api|api.thread_churn
code_api|client.alloc
code_api|client.attach_blocking
code_api|client.attach_test
code_api|client.detach_test
code_api|client.drwrap-test-detach
code_api|client.flush
code_api|client.strace
code_api|common.decode-stress
code_api|linux.eintr
code_api|linux.eintr-noinline
code_api|tool.basic_counts
code_api|tool.drcacheoff.altbindir
code_api|tool.drcacheoff.burst_client
code_api|tool.drcacheoff.basic_counts
code_api|tool.drcacheoff.burst_futex
code_api|tool.drcacheoff.burst_malloc
code_api|tool.drcacheoff.burst_maps
code_api|tool.drcacheoff.burst_reattach
code_api|tool.drcacheoff.burst_replace
code_api|tool.drcacheoff.burst_replaceall
code_api|tool.drcacheoff.burst_static
code_api|tool.drcacheoff.burst_syscall_inject
code_api|tool.drcacheoff.burst_threadfilter
code_api|tool.drcacheoff.burst_threads
code_api|tool.drcacheoff.burst_threads_counts
code_api|tool.drcacheoff.burst_threadL0filter
code_api|tool.drcacheoff.func_view_noret
code_api|tool.drcacheoff.gencode
code_api|tool.drcacheoff.gencode_filtered
code_api|tool.drcacheoff.getretaddr_record_replace_retaddr
code_api|tool.drcacheoff.invariant_checker
code_api|tool.drcacheoff.invariant_checker_pthreads
code_api|tool.drcacheoff.legacy
code_api|tool.drcacheoff.max-global
code_api|tool.drcacheoff.sysnums
code_api|tool.drcacheoff.warmup-pthreads-2
code_api|tool.drcacheoff.warmup-pthreads-max-refs
code_api|tool.drcacheoff.warmup-pthreads-max-trace-size
code_api|tool.drcacheoff.warmup-pthreads-windows-split
code_api|tool.drcacheoff.windows-split
code_api|tool.drcacheoff.windows-timestamps
code_api|tool.drcachesim.coherence
code_api|tool.drcachesim.delay-global
code_api|tool.drcachesim.filter-d
code_api|tool.drcachesim.filter-no-d
code_api|tool.drcachesim.invariants
code_api|tool.drcachesim.miss_analyzer
code_api|tool.drcachesim.scattergather-x86
code_api|tool.drcachesim.threads
code_api|tool.drcachesim.threads-with-config-file
code_api|tool.drcachesim.windows-simple
code_api|tool.drcachesim.TLB-threads
code_api|tool.drcov.eintr
code_api|tool.histogram.offline
code_api|tool.record_filter
code_api|tool.record_filter_bycore_multi
code_api|tool.record_filter_bycore_uni
PROPERTIES LABELS X32_DENYLIST)
endif ()

0 comments on commit 909cbff

Please sign in to comment.