summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-06-25 11:00:01 +0200
committerJędrzej Nowacki <jedrzej.nowacki@qt.io>2019-07-01 11:29:45 +0000
commitdea8520bf145e1650a537861900e7abd439d1c0c (patch)
tree74661919f7bab5c851e14a6bf42a3ba207d00965 /coin
parentccc581c9fd20484e01e08a2feb35b2c8eebd1dbd (diff)
Run tests using ctest
As an initial way this allows running tests. Coin does not yet collect the results and the logic for re-running is inside ctest. Change-Id: Ieab619d5f8f4ebdd8cd1293489db36d0bbd7c74a Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/module_config.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
index ea6600f88d..8d864085ac 100644
--- a/coin/module_config.yaml
+++ b/coin/module_config.yaml
@@ -261,3 +261,14 @@ build_instructions:
archiveDirectory: "{{.SourceDir}}/tests"
maxTimeInSeconds: 1200
maxTimeBetweenOutput: 1200
+
+test_instructions:
+ - type: ChangeDirectory
+ directory: "{{.SourceDir}}/tests"
+ - type: ExecuteCommand
+ command: "ctest -V --rerun-failed"
+ ignoreExitCode: true
+ maxTimeInSeconds: 7200
+ maxTimeBetweenOutput: 900
+ userMessageOnFailure: >
+ Failed to run tests.