From c8ef888fd7a82565f5a978eeb6adcd61c6195267 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Tue, 11 Aug 2020 14:33:09 +0200 Subject: [PATCH] Add new TMT plan and split tests for local and pr-tests PR-testing and Gating have to test unit-tests based on the installed package, however, when we are running these tests in local then we want to start the tests on source and not the installed package. Create two plans to solve this issue. --- plans/local/basic.fmf | 1 + plans/local/main.fmf | 8 ++++++++ tests/units/main.fmf | 14 ++++++++++++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 120000 plans/local/basic.fmf create mode 100644 plans/local/main.fmf diff --git a/plans/local/basic.fmf b/plans/local/basic.fmf new file mode 120000 index 0000000..a00dd90 --- /dev/null +++ b/plans/local/basic.fmf @@ -0,0 +1 @@ +../pr-tests/basic.fmf \ No newline at end of file diff --git a/plans/local/main.fmf b/plans/local/main.fmf new file mode 100644 index 0000000..dd50a59 --- /dev/null +++ b/plans/local/main.fmf @@ -0,0 +1,8 @@ +/basic: + summary+: ' (localhost)' + discover+: + filter: tag:local + prepare: + how: install + package: + - python3-gobject-base diff --git a/tests/units/main.fmf b/tests/units/main.fmf index 2f5323a..ba95450 100644 --- a/tests/units/main.fmf +++ b/tests/units/main.fmf @@ -2,5 +2,15 @@ summary: Run unit tests description: Run all unit tests for the Simpleline project. contact: Jiri Konecny duration: 10m -path: tests/ -test: ./units/run_test.sh + +/source: + summary+: ' (source)' + path: / + test: ./tests/units/run_test.sh + tag: local + +/system: + summary+: ' (system)' + path: tests/ + test: ./units/run_test.sh + tag: sys-installed