diff options
author | Jochen Ulrich <jochenulrich@t-online.de> | 2019-07-08 00:10:04 +0200 |
---|---|---|
committer | Jochen Ulrich <jochenulrich@t-online.de> | 2019-08-01 19:35:31 +0000 |
commit | 923f98062b4297970f382da91256c21d47b01a5e (patch) | |
tree | ef825940015e78e81acc1897339913f017af1d3b /tests/auto/api/testdata/timeout-process/timeout.qbs | |
parent | 6a672fe58fe18b2f2e74c41048d4c15b8395440a (diff) |
Add command and AutotestRunner timeout
Task-number: QBS-1454
Change-Id: I6e2514d10cca0cba0a14456ecd2abfb495539ee4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'tests/auto/api/testdata/timeout-process/timeout.qbs')
-rw-r--r-- | tests/auto/api/testdata/timeout-process/timeout.qbs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/timeout-process/timeout.qbs b/tests/auto/api/testdata/timeout-process/timeout.qbs new file mode 100644 index 000000000..9f1491ff4 --- /dev/null +++ b/tests/auto/api/testdata/timeout-process/timeout.qbs @@ -0,0 +1,24 @@ +Project { + CppApplication { + type: "application" + consoleApplication: true // suppress bundle generation + files: "main.cpp" + name: "infinite-loop" + } + + Product { + type: "product-under-test" + name: "caller" + Depends { name: "infinite-loop" } + Rule { + inputsFromDependencies: "application" + outputFileTags: "product-under-test" + prepare: { + var cmd = new Command(inputs["application"][0].filePath); + cmd.description = "Calling application that runs forever"; + cmd.timeout = 3; + return cmd; + } + } + } +} |