aboutsummaryrefslogtreecommitdiffstats
path: root/vespamalloc/src/tests/allocfree/CMakeLists.txt
blob: 6c9b4a01e593f50db48827cee15ecd9057798e2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
vespa_add_executable(vespamalloc_creatingmanythreads_test_app
    SOURCES
    creatingmanythreads.cpp
)
vespa_add_executable(vespamalloc_allocfree_shared_test_app
    SOURCES
    allocfree.cpp
    producerconsumer.cpp
)
vespa_add_executable(vespamalloc_linklist_test_app
    SOURCES
    linklist.cpp
    producerconsumer.cpp
    ../../vespamalloc/malloc/allocchunk.cpp
    ../../vespamalloc/malloc/common.cpp
    $<TARGET_OBJECTS:vespamalloc_util>
    EXTERNAL_DEPENDS
    dl
    ${VESPA_ATOMIC_LIB}
)
vespa_add_test(NAME vespamalloc_allocfree_shared_test_app NO_VALGRIND COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/allocfree_test.sh BENCHMARK
               DEPENDS vespamalloc_allocfree_shared_test_app vespamalloc_linklist_test_app
                       vespamalloc vespamallocd)