Skip to content

Commit 07bdd4f

Browse files
committed
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.
1 parent 7d51b97 commit 07bdd4f

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

plans/local/basic.fmf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../pr-tests/basic.fmf

plans/local/main.fmf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/basic:
2+
summary+: ' (localhost)'
3+
discover+:
4+
filter: tag:local
5+
prepare:
6+
how: install
7+
package:
8+
- python3-gobject-base

tests/units/main.fmf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,15 @@ summary: Run unit tests
22
description: Run all unit tests for the Simpleline project.
33
contact: Jiri Konecny <[email protected]>
44
duration: 10m
5-
path: tests/
6-
test: ./units/run_test.sh
5+
6+
/source:
7+
summary+: ' (source)'
8+
path: /
9+
test: ./tests/units/run_test.sh
10+
tag: local
11+
12+
/system:
13+
summary+: ' (system)'
14+
path: tests/
15+
test: ./units/run_test.sh
16+
tag: sys-installed

0 commit comments

Comments
 (0)