From patchwork Tue Nov 20 15:17:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 151598 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp725403ljp; Tue, 20 Nov 2018 07:18:06 -0800 (PST) X-Google-Smtp-Source: AJdET5cNtNl6pjdQwhUeFar4wPXxhsZQEhzroarrWq6WjOCWHQCpXM2qGO7PHmQUIdJ8YGxHND6x X-Received: by 2002:a62:6c89:: with SMTP id h131-v6mr2616298pfc.12.1542727086158; Tue, 20 Nov 2018 07:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542727086; cv=none; d=google.com; s=arc-20160816; b=K/BbQS4b6RcFQ7JoskNcIUcGDGaMyK/KFr3GtGic/ii5lx1fQ6ycV0HtCCbt9F4SGb ffRDxqkc67x0nCKNmIboAtjVp/1Tpau3N+CFr0GpCv0GQqKw64eO1jP206s28n9sabnn VLSPwbIomAin70bO2ccJkvzuKeLV90Ozl7GWfni3slJ1wmFjLk0MGg0YXnT9wu0Texjn WCdVJThpqVFJ366SjHSc4e4y8utK0WAp7hTYie0ktvsqZuysdpidDDuyNtICZ/PjXgVc jt3BHRUCuN1PLo0k9W6BZvCAPeDFWdS2tAx0yz71wJGNATWkttgejN3ScfyiW65Yld+I oxCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=aUuA7MF7FyCiQsBf8ALwQwcSjjCoiaNM1cj5Rztz7TY=; b=ICKmbIB7okmd0pZl46epd1GGXWSWPWifcWF5/45esyLhZyIYIsOFCc69msLse4tJUe TVAbKTKZhaq9+SVOITZK/TkhQ2IlCn+tCJ9rRpuB0UyKXMpV4VIeyROIEW2AxP8qy1/f ZMnprWPAi1MYj9+fcs1NkO6MQU4iVZ78x/m5uvdICMOicg4OTDbpoBrY65rmsRzdSjfl wBB7yPEtOY2CTHMnC9KBV4v8d3kUIBrEzS5y8iDGWrkkEdHwNyO1tbhpuUTwpwNUrJtP 5ilNoRCWX3LtL9dCXbbTfayAaaLUw7YeDGnvVupy0AKrL79ohFgcVTFyFPU6OO2uLWSb jm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=b37SaTF3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g7-v6si11318417plp.130.2018.11.20.07.17.51; Tue, 20 Nov 2018 07:18:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=b37SaTF3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 49B106C497; Tue, 20 Nov 2018 15:17:49 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mail.openembedded.org (Postfix) with ESMTP id 41B4C6C489 for ; Tue, 20 Nov 2018 15:17:48 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id s11so2659043wmh.1 for ; Tue, 20 Nov 2018 07:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=ghWdPGGsiMTdG1t9ORnVD2v47R7kwDUE182Ezr6Rj04=; b=b37SaTF3+01mZyivDZEXXdSzJDyWZ4qhIzfaNkW5eVJQNQl55MOgYhiVhPV62UMS2i FU2E255TbjAsVt9+u2JmSkH3E81Axac4zD2sKY4EjPG/YQhHATIqgRS3rU7VcR4gRa8K xfuH3H3jA0bdKOq0/jMrhA9WK46lVE/Ziz5Puz4cpmCeke7CRW9VdK4jM/YjEJQBGd5Y ebVl5dQNG9A4BFFq4HaJ+JsiduLwX+g2FsH99vR1Z10YcyJZLkk4i/fNePuW6BVz3Z12 v9MBnJ1394W5JI/rqfc7kbf5hsBPoeKTW8CKLQAPYZTPMjRGdGYZE2ytnzAT5K9wcYOd bMLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=ghWdPGGsiMTdG1t9ORnVD2v47R7kwDUE182Ezr6Rj04=; b=YWKqk9BlDWetSEYdXpywWDsyjAgkPfKJmeZnjYmJkZRs5A/2NLnzrYcIsmgipZDCS9 kJ1tr3QZaVHxdK9J2g6+lTO5IpV126aJa0iYysdCBVzupYDr73Ya+XV2vP24eGmT+P41 RZd61dKuEAqlOKvTazIL5QYy3WRE4YiMdT3GNftINaXPY8a59G7FJplaDlhuv6p8iSl1 klIIjXjG16O4XQEaC3LoWiUAXvgfFqZIVPPEYH8Lhor2CWW7eiQaOn8321992Jz06ymK tYn2qkEdeWOFgCpms2xk3xAEP1doXaZcLIkWfT+6Y3zhTqKQz3Qf7GDtxxzer4w0twJv /+qA== X-Gm-Message-State: AGRZ1gLAwS06uYb7RN/eZOBPns1+myuv1l3FVyJvwQx2yqHWZCdAS194 BxYYvsR3vfDVapcs151mbj+lfXLur/c= X-Received: by 2002:a1c:e701:: with SMTP id e1mr2471007wmh.21.1542727068623; Tue, 20 Nov 2018 07:17:48 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id z83sm9147518wmc.7.2018.11.20.07.17.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 07:17:47 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 20 Nov 2018 15:17:45 +0000 Message-Id: <20181120151745.13553-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] json-glib: add ptest X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/recipes-gnome/json-glib/json-glib/run-ptest | 3 +++ meta/recipes-gnome/json-glib/json-glib_1.4.2.bb | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-gnome/json-glib/json-glib/run-ptest -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-gnome/json-glib/json-glib/run-ptest b/meta/recipes-gnome/json-glib/json-glib/run-ptest new file mode 100644 index 00000000000..0c6398a177d --- /dev/null +++ b/meta/recipes-gnome/json-glib/json-glib/run-ptest @@ -0,0 +1,3 @@ +#! /bin/sh + +gnome-desktop-testing-runner json-glib diff --git a/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb b/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb index 19fe3cc4427..b4a6a6f2b63 100644 --- a/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb +++ b/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb @@ -10,12 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" DEPENDS = "glib-2.0" +GNOMEBASEBUILDCLASS = "meson" +inherit gnomebase lib_package gobject-introspection gtk-doc gettext ptest-gnome + +SRC_URI += "file://run-ptest" SRC_URI[archive.md5sum] = "35107e23a7bbbc70f31c34f7b9adf1c3" SRC_URI[archive.sha256sum] = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8" -GNOMEBASEBUILDCLASS = "meson" -inherit gnomebase lib_package gobject-introspection gtk-doc gettext - # This builds both API docs (via gtk-doc) and manpages GTKDOC_ENABLE_FLAG = "-Ddocs=true" GTKDOC_DISABLE_FLAG = "-Ddocs=false" @@ -29,8 +30,9 @@ EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'T '${GI_DISABLE_FLAG}', d)} " do_install_append() { - # FIXME: these need to be provided via ptest - rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir} + if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then + rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir} + fi } BBCLASSEXTEND = "native nativesdk"