summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt
blob: 48759572de6f1e49e69f124485ac5d8bb2fd454d (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
48
49
50
51
52
53
54
55
56
57
58
59
# Generated from test.pro.

#####################################################################
## tst_qnetworkreply Test:
#####################################################################

# Collect test data
list(APPEND test_data "../empty")
list(APPEND test_data "../rfc3252.txt")
list(APPEND test_data "../resource")
list(APPEND test_data "../bigfile")
file(GLOB_RECURSE test_data_glob
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    ../*.jpg)
list(APPEND test_data ${test_data_glob})
list(APPEND test_data "../certs")
list(APPEND test_data "../index.html")
list(APPEND test_data "../smb-file.txt")

add_qt_test(tst_qnetworkreply
    SOURCES
        ../../../../../shared/emulationdetector.h
        ../tst_qnetworkreply.cpp
    INCLUDE_DIRECTORIES
        ../../../../../shared
    PUBLIC_LIBRARIES
        Qt::CorePrivate
        Qt::NetworkPrivate
    TESTDATA ${test_data}
)

# Resources:
set_source_files_properties("../resource"
    PROPERTIES QT_RESOURCE_ALIAS "resource"
)
set(qnetworkreply_resource_files
    "resource"
)

add_qt_resource(tst_qnetworkreply "qnetworkreply"
    PREFIX
        "/"
    BASE
        ".."
    FILES
        ${qnetworkreply_resource_files}
)


#### Keys ignored in scope 1:.:.:test.pro:<TRUE>:
# QT_FOR_CONFIG = "gui-private"
# QT_TEST_SERVER_LIST = "vsftpd" "apache2" "ftp-proxy" "danted" "squid"
# testcase.timeout = "600"

## Scopes:
#####################################################################

#### Keys ignored in scope 2:.:.:test.pro:NOT ANDROID AND NOT WINRT:
# TEST_HELPER_INSTALLS = "../echo/echo"