summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/test/CMakeLists.txt
blob: f3cf9637fc7fd9ec2f8a6fb6a8468995e3ddfb23 (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
45
46
47
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## tst_qprocess Test:
#####################################################################

qt_internal_add_test(tst_qprocess
    OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../"
    SOURCES
        ../tst_qprocess.cpp
    LIBRARIES
        Qt::CorePrivate
        Qt::Network
        Qt::TestPrivate
)

## Build assorted sub-programs called from the test:
add_dependencies(tst_qprocess
    testProcessCrash
    testProcessEcho
    testProcessEcho2
    testProcessEcho3
    testProcessEnvironment
    testProcessHang
    testProcessNormal
    testProcessOutput
    testProcessDeadWhileReading
    testProcessEOF
    testExitCodes
    testForwarding
    testDetached
    fileWriterProcess
    testSetWorkingDirectory
    testSoftExit
    nospace onespace twospaces
    testSpaceInName
)
if(TARGET Qt::Widgets)
    add_dependencies(tst_qprocess testGuiProcess)
endif()
if(WIN32)
    add_dependencies(tst_qprocess testProcessEchoGui testSetNamedPipeHandleState)
endif()

#### Keys ignored in scope 2:.:.:test.pro:WIN32:
# TESTDATA = "../testBatFiles/*"