From patchwork Wed Feb 19 08:58:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 11390767 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BBC28159A for ; Wed, 19 Feb 2020 08:58:37 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 960D02176D for ; Wed, 19 Feb 2020 08:58:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 960D02176D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=siemens.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cip-dev-bounces@lists.cip-project.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 90CFF204A6; Wed, 19 Feb 2020 08:58:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sd0lPYi22-hq; Wed, 19 Feb 2020 08:58:35 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id A338620343; Wed, 19 Feb 2020 08:58:35 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8C94EC013E; Wed, 19 Feb 2020 08:58:35 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3B662C013E for ; Wed, 19 Feb 2020 08:58:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3757B2048C for ; Wed, 19 Feb 2020 08:58:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pRWMpxD0p4Y6 for ; Wed, 19 Feb 2020 08:58:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by silver.osuosl.org (Postfix) with ESMTPS id BA33320343 for ; Wed, 19 Feb 2020 08:58:32 +0000 (UTC) Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id 01J8wUPu019807 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 19 Feb 2020 09:58:30 +0100 Received: from md2dvrtc.ad001.siemens.net ([139.25.68.236]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 01J8wUwY011787; Wed, 19 Feb 2020 09:58:30 +0100 From: "Q. Gylstorff" To: cip-dev@lists.cip-project.org Date: Wed, 19 Feb 2020 09:58:23 +0100 Message-Id: <20200219085823.21768-1-Quirin.Gylstorff@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [cip-dev] [isar-cip-core PATCH] recipes-core: Add Linux Testing Projects Package X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cip-dev-bounces@lists.cip-project.org Sender: "cip-dev" From: Quirin Gylstorff Add a package for the LTP(Linux Testing Porject) to execute the LTP testcases from cip-testing Signed-off-by: Quirin Gylstorff --- recipes-core/images/cip-core-image.bb | 2 ++ recipes-core/ltp/files/debian/control | 18 ++++++++++++++++++ recipes-core/ltp/files/debian/rules | 5 +++++ recipes-core/ltp/ltp-full_20190930.bb | 27 +++++++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 recipes-core/ltp/files/debian/control create mode 100755 recipes-core/ltp/files/debian/rules create mode 100644 recipes-core/ltp/ltp-full_20190930.bb diff --git a/recipes-core/images/cip-core-image.bb b/recipes-core/images/cip-core-image.bb index 179016c..9ee4b25 100644 --- a/recipes-core/images/cip-core-image.bb +++ b/recipes-core/images/cip-core-image.bb @@ -15,3 +15,5 @@ ISAR_RELEASE_CMD = "git -C ${LAYERDIR_cip-core} describe --tags --dirty --always DESCRIPTION = "CIP Core image" IMAGE_INSTALL += "customizations" +# for cip-testing +IMAGE_INSTALL += "ltp-full" diff --git a/recipes-core/ltp/files/debian/control b/recipes-core/ltp/files/debian/control new file mode 100644 index 0000000..5ec4b9d --- /dev/null +++ b/recipes-core/ltp/files/debian/control @@ -0,0 +1,18 @@ +Source: ltp-full +Section: embedded +Priority: optional +Maintainer: Gylstorff Quirin +Build-Depends: debhelper (>= 11), autotools-dev +Standards-Version: 4.1.3 +Homepage: https://linux-test-project.github.io/ + +Package: ltp-full +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A collection of tools for testing the Linux kernel + The Linux Test Project is a joint project started by SGI, + developed and maintained by IBM, Cisco, Fujitsu, SUSE, + Red Hat and others, that has a goal to deliver test suites to the + open source community that validate the reliability, robustness, + and stability of Linux. The LTP testsuite contains a collection + of tools for testing the Linux kernel and related features. diff --git a/recipes-core/ltp/files/debian/rules b/recipes-core/ltp/files/debian/rules new file mode 100755 index 0000000..48d3b83 --- /dev/null +++ b/recipes-core/ltp/files/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-format-security +%: + dh $@ --with autoreconf + diff --git a/recipes-core/ltp/ltp-full_20190930.bb b/recipes-core/ltp/ltp-full_20190930.bb new file mode 100644 index 0000000..fc35f5e --- /dev/null +++ b/recipes-core/ltp/ltp-full_20190930.bb @@ -0,0 +1,27 @@ +# +# CIP Core, generic profile +# +# Copyright (c) Siemens AG, 2020 +# +# Authors: +# Quirin Gylstorff +# +# SPDX-License-Identifier: MIT +# + +inherit dpkg + +DESCRIPTION = "Linux Test project for CIP" + +SRC_URI = " \ + https://github.com/linux-test-project/ltp/releases/download/20190930/ltp-full-${PV}.tar.xz \ + file://debian \ + " +SRC_URI[sha256sum] = "c7049590df2da3135030db5ef4c0076b76c789724a752b1102b4a01db0189f9a" + + +do_prepare_build() { + cp -R ${WORKDIR}/debian ${S} + deb_create_compat + deb_add_changelog +}