From patchwork Wed Oct 9 09:34:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ludovic.desroches@atmel.com X-Patchwork-Id: 281767 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 733972C00B3 for ; Wed, 9 Oct 2013 20:35:00 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B447F89D86; Wed, 9 Oct 2013 09:34:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xd38Gwzp5-VL; Wed, 9 Oct 2013 09:34:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 12AB089C94; Wed, 9 Oct 2013 09:34:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0FC3A1BF952 for ; Wed, 9 Oct 2013 09:34:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E215D3298E for ; Wed, 9 Oct 2013 09:34:57 +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 rQ8j7Ai4uPbi for ; Wed, 9 Oct 2013 09:34:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.242]) by silver.osuosl.org (Postfix) with ESMTPS id 15477329FA for ; Wed, 9 Oct 2013 09:34:56 +0000 (UTC) Received: from ibiza.corp.atmel.com (10.161.101.13) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server id 14.2.347.0; Wed, 9 Oct 2013 11:34:47 +0200 From: To: Date: Wed, 9 Oct 2013 11:34:43 +0200 Message-ID: <1381311283-3534-1-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <20131008151729.GB3599@ludovic.desroches@atmel.com> References: <20131008151729.GB3599@ludovic.desroches@atmel.com> MIME-Version: 1.0 Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH] New: add lava-test package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- I have the same issues with latest release of Buildroot. I have added python path replacement in install target instead of doing it in the post-build script. I have added license stuff too and bump to latest version. package/Config.in | 1 + package/lava-test/Config.in | 8 ++++++++ package/lava-test/lava-test.mk | 13 +++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 package/lava-test/Config.in create mode 100644 package/lava-test/lava-test.mk diff --git a/package/Config.in b/package/Config.in index 97cd7da..2bf8313 100644 --- a/package/Config.in +++ b/package/Config.in @@ -27,6 +27,7 @@ source "package/gdb/Config.in" source "package/iozone/Config.in" source "package/kexec/Config.in" source "package/latencytop/Config.in" +source "package/lava-test/Config.in" source "package/lmbench/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/lsof/Config.in" diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in new file mode 100644 index 0000000..336ca42 --- /dev/null +++ b/package/lava-test/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_LAVA_TEST + bool "lava-test" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + LAVA Test is a test execution framework designed to make it easy to + install and run supported tests. Results from testing can be + optionally uploaded to a dashboard running lava-dashboard. diff --git a/package/lava-test/lava-test.mk b/package/lava-test/lava-test.mk new file mode 100644 index 0000000..bb32b29 --- /dev/null +++ b/package/lava-test/lava-test.mk @@ -0,0 +1,13 @@ +LAVA_TEST_VERSION = 0.14 +LAVA_TEST_SOURCE = lava-test-$(LAVA_TEST_VERSION)-2013.01.tar.gz +LAVA_TEST_SITE = https://launchpad.net/lava-test/trunk/2013.01/+download/ +LAVA_TEST_DEPENDENCIES = python host-python-setuptools +LAVA_TEST_LICENSE = GPLv3 +LAVA_TEST_LICENSE_FILES = COPYING + +define LAVA_TEST_INSTALL_TARGET_CMDS + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=/usr --root=$(TARGET_DIR)) + sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{lava,lava-dashboard-tool,lava-test,lava-tool} +endef + +$(eval $(generic-package))