Skip to content

Commit

Permalink
Add new TMT plan and split tests for local and pr-tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jkonecny12 committed Feb 22, 2021
1 parent 1a58988 commit 12eeab5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions plans/local/basic.fmf
8 changes: 8 additions & 0 deletions plans/local/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/basic:
summary+: ' (localhost)'
discover+:
filter: tag:local
prepare:
how: install
package:
- python3-gobject-base
14 changes: 12 additions & 2 deletions tests/units/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,15 @@ summary: Run unit tests
description: Run all unit tests for the Simpleline project.
contact: Jiri Konecny <[email protected]>
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

0 comments on commit 12eeab5

Please sign in to comment.