aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/autotest-with-dependencies/autotest-with-dependencies.qbs
blob: 7ae6cef733d91ed83edf5978a2fa200b7b99dabb (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
import qbs.FileInfo

Project {
    CppApplication {
        name: "helper-app"
        type: ["application", "test-helper"]
        consoleApplication: true
        install: true
        files: "helper-main.cpp"
        cpp.executableSuffix: ".exe"
        Group {
            fileTagsFilter: "application"
            fileTags: "test-helper"
        }
    }
    CppApplication {
        name: "test-app"
        type: ["application", "autotest"]
        Depends { name: "autotest" }
        files: "test-main.cpp"
    }

    AutotestRunner {
        Depends {
            name: "cpp" // Make sure build environment is set up properly.
            condition: qbs.hostOS.contains("windows") && qbs.toolchain.contains("gcc")
        }
        arguments: FileInfo.joinPaths(qbs.installRoot, qbs.installPrefix, "bin")
        auxiliaryInputs: "test-helper"
    }
}