#  Copyright (C) GridGain Systems. All Rights Reserved.
#  _________        _____ __________________        _____
#  __  ____/___________(_)______  /__  ____/______ ____(_)_______
#  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
#  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
#  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/

set(TARGET gridgain-extension-test)

set(SOURCES
    main.cpp
    binary_tuple_cursor_test.cpp
    key_value_view_test.cpp
    record_view_test.cpp
    catalog_schemas_test.cpp
    catalog_transaction_test.cpp
    client_indexes_test.cpp
    extension_index_composite_test.cpp
    extension_index_edge_cases_test.cpp
    extension_index_null_bound_test.cpp
    extension_index_pagination_test.cpp
    extension_index_rw_get_race_test.cpp
    extension_index_schema_evolution_test.cpp
    extension_index_test.cpp
    extension_index_uuid_test.cpp
    extension_indexes_test.cpp
    extension_table_test.cpp
    full_scan_test.cpp
    index_test.cpp
    extension_index_typed_test.cpp
    schema_test.cpp
    tx_batch_mutations_test.cpp
    typed_cursor_test.cpp
    typed_decimal_test.cpp
)

ignite_test(${TARGET} SOURCES ${SOURCES} LIBS gridgain-test-common gridgain9-extension)

# Pure unit tests — no live node required. Kept out of the integration target above (whose
# main.cpp starts/awaits a cluster) so they run node-free via the default gtest main.
set(UNIT_SOURCES
    binary_tuple_traits_test.cpp
    packed_tuple_test.cpp
)

ignite_test(gridgain-extension-unit-test DISCOVER SOURCES ${UNIT_SOURCES}
    LIBS gridgain-test-common gridgain9-extension)
