diff --git a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/oniro-tests b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/oniro-tests new file mode 100644 index 0000000000000000000000000000000000000000..3a33ff220e76b401b10419c4c7932b2ec43109d1 --- /dev/null +++ b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng/oniro-tests @@ -0,0 +1,45 @@ +#!/usr/bin/env checkbox-cli +# +# SPDX-FileCopyrightText: Le Van Quach <levan.quach@kalpa.it> +# +# SPDX-License-Identifier: MIT + +[launcher] +launcher_version = 1 +stock_reports = text, certification + +[exporter:html] +unit = com.canonical.plainbox::html + +[exporter:tar] +unit = com.canonical.plainbox::tar + +[exporter:junit] +unit = com.canonical.plainbox::junit + +[transport:html_transport] +type = file +path = /run/mount/appdata/oniro-tests-report.html + +[transport:tar_transport] +type = file +path = /run/mount/appdata/oniro-tests-report.tar.xz + +[transport:junit_transport] +type = file +path = /run/mount/appdata/oniro-tests-report.junit + +[report:html_report] +transport = html_transport +exporter = html +forced = yes + +[report:tar_report] +transport = tar_transport +exporter = tar +forced = yes + +[report:junit_report] +transport = junit_transport +exporter = junit +forced = yes diff --git a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb index 217a097219103e068a3831532a21d464f4f440ca..3f4cd3873cccc9e7c59370b62a5a11a5e0abe328 100644 --- a/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb +++ b/meta-oniro-staging/recipes-extended/python3/python3-checkbox-ng_1.18.1.bb @@ -16,6 +16,7 @@ SRC_URI += "file://0001-Adjust-for-deprecated-jinja2.Markup-alias.patch \ file://checkbox-ng.service \ file://0001-Modify-restart-logic-in-order-to-run-checkbox-servic.patch \ file://0001-Adjust-autoescape-for-Jinja2.patch \ + file://oniro-tests \ " inherit pypi setuptools3 @@ -42,6 +43,7 @@ SYSTEMD_SERVICE:${PN}-service = "checkbox-ng.service" do_install:append() { install -D -m 0644 ${WORKDIR}/checkbox-ng.service -t ${D}${systemd_unitdir}/system/ + install -D -m 0755 ${WORKDIR}/oniro-tests -t ${D}${bindir} } RDEPENDS:${PN}-service += " \