aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/timeout-process/timeout.qbs
diff options
context:
space:
mode:
authorJochen Ulrich <jochenulrich@t-online.de>2019-07-08 00:10:04 +0200
committerJochen Ulrich <jochenulrich@t-online.de>2019-08-01 19:35:31 +0000
commit923f98062b4297970f382da91256c21d47b01a5e (patch)
treeef825940015e78e81acc1897339913f017af1d3b /tests/auto/api/testdata/timeout-process/timeout.qbs
parent6a672fe58fe18b2f2e74c41048d4c15b8395440a (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.qbs24
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;
+ }
+ }
+ }
+}