Skip to content

Commit

Permalink
Include unit tests in tmt
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Nov 7, 2023
1 parent 9e0e314 commit 60a3f54
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .distro/plans/unit-tests.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary:
Bundled unit-tests
discover+:
how: fmf
filter: "tag: unit"
path: test
execute:
how: tmt
9 changes: 9 additions & 0 deletions test/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tag: [ cmake, package ]
require:
- cmake
- rsync
- tree
- gcc-c++
framework: beakerlib
path: /
test: ./test.sh
11 changes: 2 additions & 9 deletions test/package/main.fmf
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
tag: [ cmake, package ]
require:
- cmake
- rsync
- tree
- gcc-c++
framework: beakerlib
path: /
test: ./package/test.sh
tag+: [ package ]
test: ./test.sh
File renamed without changes.
3 changes: 3 additions & 0 deletions test/unit/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
summary:
Bundled unit tests
tag+: [ unit ]

0 comments on commit 60a3f54

Please sign in to comment.