From e2a44d9f52b35245f972e23a32e879d4eb394a68 Mon Sep 17 00:00:00 2001
From: Robert Drab <robert.drab@huawei.com>
Date: Tue, 16 Feb 2021 12:20:38 +0100
Subject: [PATCH] openharmony-image-*: Add test variant for each image

openharmony-image-<variant>-tests images are based on the
openharmony-image-<variant> with addition of the packagegroup-openharmony-tests
package group that aggregates all OpenHarmony tests.

Signed-off-by: Robert Drab <robert.drab@huawei.com>
---
 .../recipes-core/images/openharmony-image-base-tests.bb   | 7 +++++++
 .../recipes-core/images/openharmony-image-extra-tests.bb  | 8 ++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 meta-ohos-core/recipes-core/images/openharmony-image-base-tests.bb
 create mode 100644 meta-ohos-core/recipes-core/images/openharmony-image-extra-tests.bb

diff --git a/meta-ohos-core/recipes-core/images/openharmony-image-base-tests.bb b/meta-ohos-core/recipes-core/images/openharmony-image-base-tests.bb
new file mode 100644
index 00000000..7b9653f4
--- /dev/null
+++ b/meta-ohos-core/recipes-core/images/openharmony-image-base-tests.bb
@@ -0,0 +1,7 @@
+require recipes-core/images/openharmony-image-base.bb
+
+SUMMARY = "OpenHarmony image including the base OS software stack and tests"
+
+IMAGE_INSTALL_append = "\
+    packagegroup-openharmony-tests \
+"
diff --git a/meta-ohos-core/recipes-core/images/openharmony-image-extra-tests.bb b/meta-ohos-core/recipes-core/images/openharmony-image-extra-tests.bb
new file mode 100644
index 00000000..9d746676
--- /dev/null
+++ b/meta-ohos-core/recipes-core/images/openharmony-image-extra-tests.bb
@@ -0,0 +1,8 @@
+require recipes-core/images/openharmony-image-extra.bb
+
+SUMMARY = "OpenHarmony Wayland image including the base OS \
+software stack and tests"
+
+IMAGE_INSTALL_append = "\
+    packagegroup-openharmony-tests \
+"
-- 
GitLab