From patchwork Mon Oct 21 08:16:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 21197 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F5C220356 for ; Mon, 21 Oct 2013 08:17:08 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 8sf12105141qea.9 for ; Mon, 21 Oct 2013 01:17:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=01T9BoUfT4YY4U4UarYig+Nzk5Vz7A1cIvrH8SmJ9r8=; b=HNV0Rv/S8nsg72dy+HFd/DlAlkUkpkUmDlP+o9Qn1rKgUk5bieNlykPjGretcIQIns z3YCBMj6zYLVmcerWQ2+NM4RqFSRiIEtLrPoC5ZFoRfBg4adXFhuCtnIbCpCgBejoL/d YVJBm1icoafsarf0bP5frmU8TJpx2qmyRuGMUSubJOlfN6QErjkR/dt362NAYzGCFy4B OTmrDZcyhuwEwDSIhjYbG9vbp70+ByadvLS3i9bJD3CQj2ta2O8JAS9HHo5F/kqMiLeH Wv1AFU722OG6d4yq6qgNRi3ccM/a8iBtItDEsY+KF3zEzjEAjcXE5I4173xTBp1OddD3 qm2w== X-Received: by 10.236.73.164 with SMTP id v24mr14261875yhd.24.1382343427935; Mon, 21 Oct 2013 01:17:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.166 with SMTP id kv6ls2082573qeb.10.gmail; Mon, 21 Oct 2013 01:17:07 -0700 (PDT) X-Received: by 10.52.33.44 with SMTP id o12mr8836922vdi.7.1382343427809; Mon, 21 Oct 2013 01:17:07 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id oy1si1147090veb.105.2013.10.21.01.17.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Oct 2013 01:17:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id db12so3635938veb.25 for ; Mon, 21 Oct 2013 01:17:06 -0700 (PDT) X-Gm-Message-State: ALoCoQk9+qOedhSl9deDCYmXBPRpKCKiBInYemKPA/TWhtSD2UaltvkoUVT+TNfC6kGebqhrA20D X-Received: by 10.220.1.203 with SMTP id 11mr10405943vcg.15.1382343426687; Mon, 21 Oct 2013 01:17:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp134017vcz; Mon, 21 Oct 2013 01:17:06 -0700 (PDT) X-Received: by 10.194.192.131 with SMTP id hg3mr406046wjc.78.1382343425947; Mon, 21 Oct 2013 01:17:05 -0700 (PDT) Received: from afflict.kos.to (afflict.kos.to. [92.243.29.197]) by mx.google.com with ESMTPS id ea10si7813924wib.63.2013.10.21.01.17.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 21 Oct 2013 01:17:05 -0700 (PDT) Received-SPF: neutral (google.com: 92.243.29.197 is neither permitted nor denied by best guess record for domain of riku.voipio@linaro.org) client-ip=92.243.29.197; Received: from localhost.localdomain (91-157-208-114.elisa-laajakaista.fi [91.157.208.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 19A7F26554; Mon, 21 Oct 2013 10:17:04 +0200 (CEST) From: Riku Voipio To: openembedded-core@lists.openembedded.org Cc: patches@linaro.org, Riku Voipio Subject: [PATCH 3/3] ltp: enable power management and realtime tests Date: Mon, 21 Oct 2013 11:16:55 +0300 Message-Id: <1382343415-30035-3-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1382343415-30035-1-git-send-email-riku.voipio@linaro.org> References: <1382343415-30035-1-git-send-email-riku.voipio@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ltp includes realtime and power management tests, that are somewhat experimental and not enabled by default. Add the configuration options to enable them, and a backported patch that allows compilation with more pedantic toolchains. You will still need to run the realtime tests explicitly, so this should have no impact on people not interested in testing realtime features. --- meta/recipes-extended/ltp/files/fix-pm-tests.patch | 30 ++++++++++++++++++++++ meta/recipes-extended/ltp/ltp_20130904.bb | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-extended/ltp/files/fix-pm-tests.patch diff --git a/meta/recipes-extended/ltp/files/fix-pm-tests.patch b/meta/recipes-extended/ltp/files/fix-pm-tests.patch new file mode 100644 index 0000000..e8f80de --- /dev/null +++ b/meta/recipes-extended/ltp/files/fix-pm-tests.patch @@ -0,0 +1,30 @@ +Upstream-Status: Backport + +commit 6f3147f01229f3bb953202cde828d35e0d2bcb8a +Author: Riku Voipio +Date: Mon Oct 14 11:50:28 2013 +0300 + + power_management: add TCID + + get_sched_values.c uses interfaces provided by -lltp which need + TCID defined. Not sure how this built successfully before. + + [v2] correct TCID to an unique one + + Cc: Wanlong Gao + Signed-off-by: Riku Voipio + Reviewed-by: Wanlong Gao + +Index: ltp-full-20130904/testcases/kernel/power_management/get_sched_values.c +=================================================================== +--- ltp-full-20130904.orig/testcases/kernel/power_management/get_sched_values.c 2013-09-04 10:18:22.000000000 +0300 ++++ ltp-full-20130904/testcases/kernel/power_management/get_sched_values.c 2013-10-11 14:57:40.890551214 +0300 +@@ -17,6 +17,8 @@ + #include + #include "test.h" + ++const char *TCID = "Power_Management"; ++ + int get_supp_sched_mc(void) + { + if (tst_kvercmp(2, 6, 29) < 0) diff --git a/meta/recipes-extended/ltp/ltp_20130904.bb b/meta/recipes-extended/ltp/ltp_20130904.bb index cf016f9..be553df 100644 --- a/meta/recipes-extended/ltp/ltp_20130904.bb +++ b/meta/recipes-extended/ltp/ltp_20130904.bb @@ -23,6 +23,7 @@ DEPENDS = "attr libaio libcap acl openssl" SRC_URI = "${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \ file://fix-arm64.patch \ + file://fix-pm-tests.patch \ " SRC_URI[md5sum] = "0cf2ccb7199f8318d413c62a085629f0" @@ -36,6 +37,7 @@ inherit autotools S = "${WORKDIR}/ltp-full-${PV}" TARGET_CC_ARCH += "${LDFLAGS}" +EXTRA_OECONF = " --with-power-management-testsuite --with-realtime-testsuite " do_install(){ install -d ${D}/opt/ltp/