From patchwork Fri Oct 11 11:58:53 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: 282730 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 744532C00DE for ; Fri, 11 Oct 2013 23:35:44 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 668CB32E84; Fri, 11 Oct 2013 12:35:43 +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 wf3aamTbdosy; Fri, 11 Oct 2013 12:35:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9B74232E80; Fri, 11 Oct 2013 12:35:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C439C1BF9B8 for ; Fri, 11 Oct 2013 12:35:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BD6C78D300 for ; Fri, 11 Oct 2013 12:35:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id etZOXez5ABds for ; Fri, 11 Oct 2013 12:35:13 +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 whitealder.osuosl.org (Postfix) with ESMTPS id D61C08D2C4 for ; Fri, 11 Oct 2013 12:35:12 +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; Fri, 11 Oct 2013 14:01:41 +0200 From: To: Date: Fri, 11 Oct 2013 13:58:53 +0200 Message-ID: <1381492733-24280-8-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1381492733-24280-1-git-send-email-ludovic.desroches@atmel.com> References: <1381492733-24280-1-git-send-email-ludovic.desroches@atmel.com> MIME-Version: 1.0 Cc: nicolas.ferre@atmel.com Subject: [Buildroot] [RFC PATCH 7/7] lava-test: new 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 --- package/Config.in | 1 + package/lava-test/Config.in | 11 +++++++++++ package/lava-test/lava-test.mk | 21 +++++++++++++++++++++ 3 files changed, 33 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 e6150d0..cc7ee49 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/lava-tool/Config.in" source "package/lmbench/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS diff --git a/package/lava-test/Config.in b/package/lava-test/Config.in new file mode 100644 index 0000000..37b82b0 --- /dev/null +++ b/package/lava-test/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LAVA_TEST + bool "lava-test" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_LAVA_TOOL + select BR2_PACKAGE_PYTHON_LINARO_DASHBOARD_BUNDLE + select BR2_PACKAGE_PYTHON_SETUPTOOLS + select BR2_PACKAGE_PYTHON_VERSIONTOOLS + 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..424f615 --- /dev/null +++ b/package/lava-test/lava-test.mk @@ -0,0 +1,21 @@ +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_LICENSE = GPLv3 +LAVA_TEST_LICENSE_FILES = COPYING +LAVA_TEST_DEPENDENCIES = lava-tool python python-linaro-dashboard-bundle python-setuptools python-versiontools + +define LAVA_TEST_BUILD_CMDS + (cd $(@D); \ + PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ + $(HOST_DIR)/usr/bin/python setup.py build) +endef + +define LAVA_TEST_INSTALL_TARGET_CMDS + (cd $(@D); \ + PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) + sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{lava,lava-test,lava-tool} +endef + +$(eval $(generic-package))