From dea8520bf145e1650a537861900e7abd439d1c0c Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 25 Jun 2019 11:00:01 +0200 Subject: Run tests using ctest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Liang Qi --- coin/module_config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'coin') 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. -- cgit v1.2.3