summaryrefslogtreecommitdiffstats
path: root/src/testlib/configure.cmake
blob: 3490c64874897e0d77b07cbfb8bdca1a92f6cc1b (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause



#### Inputs



#### Libraries



#### Tests



#### Features

qt_feature("testlib_selfcover" PUBLIC
    LABEL "Coverage testing of testlib itself"
    PURPOSE "Gauges how thoroughly testlib's selftest exercises testlib's code"
    AUTODETECT OFF
)
qt_feature("itemmodeltester" PUBLIC
    LABEL "Tester for item models"
    PURPOSE "Provides a utility to test item models."
    CONDITION QT_FEATURE_itemmodel
)
qt_feature("valgrind" PUBLIC
    LABEL "Valgrind"
    PURPOSE "Profiling support with callgrind."
    CONDITION ( LINUX OR APPLE ) AND QT_FEATURE_process AND QT_FEATURE_regularexpression
)
qt_feature("batch_test_support" PUBLIC
    LABEL "Batch tests"
    PURPOSE "Allows merging of all tests into a single executable on demand"
    AUTODETECT QT_BUILD_TESTS_BATCHED
    ENABLE INPUT_batch_tests STREQUAL 'yes'
)
qt_configure_add_summary_section(NAME "Qt Testlib")
qt_configure_add_summary_entry(ARGS "itemmodeltester")
qt_configure_add_summary_entry(ARGS "batch_test_support")
qt_configure_end_summary_section() # end of "Qt Testlib" section