From c7419f7ef64090d438bdd5bd310a896337c85f1f 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 | 7 +++++++ tests/units/source.fmf | 3 +++ tests/units/sys-installed.fmf | 1 + 4 files changed, 12 insertions(+) create mode 120000 plans/local/basic.fmf create mode 100644 plans/local/main.fmf create mode 100644 tests/units/source.fmf create mode 100644 tests/units/sys-installed.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..1267de0 --- /dev/null +++ b/plans/local/main.fmf @@ -0,0 +1,7 @@ +/basic: + discover+: + filter: tag:local + prepare: + - name: Install missing dependencies + how: install + package: python3-gobject-base diff --git a/tests/units/source.fmf b/tests/units/source.fmf new file mode 100644 index 0000000..ec983bd --- /dev/null +++ b/tests/units/source.fmf @@ -0,0 +1,3 @@ +path: / +test: ./tests/units/run_test.sh +tag: local diff --git a/tests/units/sys-installed.fmf b/tests/units/sys-installed.fmf new file mode 100644 index 0000000..9ffbd64 --- /dev/null +++ b/tests/units/sys-installed.fmf @@ -0,0 +1 @@ +tag: sys-installed