From 60a3f54a13a589c46a2cddfcf5e9211d0030bd5f Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Tue, 7 Nov 2023 09:20:11 +0100 Subject: [PATCH] Include unit tests in tmt Signed-off-by: Cristian Le --- .distro/plans/unit-tests.fmf | 8 ++++++++ test/main.fmf | 9 +++++++++ test/package/main.fmf | 11 ++--------- test/{package => }/test.sh | 0 test/unit/main.fmf | 3 +++ 5 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .distro/plans/unit-tests.fmf create mode 100644 test/main.fmf rename test/{package => }/test.sh (100%) create mode 100644 test/unit/main.fmf diff --git a/.distro/plans/unit-tests.fmf b/.distro/plans/unit-tests.fmf new file mode 100644 index 0000000..8fbdb27 --- /dev/null +++ b/.distro/plans/unit-tests.fmf @@ -0,0 +1,8 @@ +summary: + Bundled unit-tests +discover+: + how: fmf + filter: "tag: unit" + path: test +execute: + how: tmt diff --git a/test/main.fmf b/test/main.fmf new file mode 100644 index 0000000..979b2c6 --- /dev/null +++ b/test/main.fmf @@ -0,0 +1,9 @@ +tag: [ cmake, package ] +require: + - cmake + - rsync + - tree + - gcc-c++ +framework: beakerlib +path: / +test: ./test.sh diff --git a/test/package/main.fmf b/test/package/main.fmf index a9c86d5..d4dadf9 100644 --- a/test/package/main.fmf +++ b/test/package/main.fmf @@ -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 diff --git a/test/package/test.sh b/test/test.sh similarity index 100% rename from test/package/test.sh rename to test/test.sh diff --git a/test/unit/main.fmf b/test/unit/main.fmf new file mode 100644 index 0000000..496fd29 --- /dev/null +++ b/test/unit/main.fmf @@ -0,0 +1,3 @@ +summary: + Bundled unit tests +tag+: [ unit ]