From patchwork Fri Mar 22 13:56:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Singh Rawat X-Patchwork-Id: 15541 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 096F923E75 for ; Fri, 22 Mar 2013 13:57:18 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by fiordland.canonical.com (Postfix) with ESMTP id C6D3FA1827A for ; Fri, 22 Mar 2013 13:57:17 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ec20so7346517lab.37 for ; Fri, 22 Mar 2013 06:57:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=xGwB2pRNZLVk/xKW6mfw+NlYXpVcwDdjVumLn+KNyEU=; b=ewR6KuSKcVM6+ozjiTPKBYIrgNibnNjRs5rQFshBcLNt94oNOg1KZjJK2QQCk6fA3m Hnq3OPr05f4XiEjwTUU8s4f2ev1w2q36o8CuVQkwjR8g13DkwYUIRgTh9mVnbZRYwCVy vMISbPVhY7DE83VuVR4yAdPDd4GmxOwGymv4yRGoPbvPJXDbf1Vm585xMZSp9EbJlwiD LP+jGgSR+wl+wt6YvQKJloRUAaJh+2vFOo73JqlmQvwD6SJ+SvjwT4ETUQ/EXSwSVJV+ tKkw49MVUtrSutT39VsW61iW1kqCVdqG95qcDbFl99ybpJtooFmiKhIyTWZ5Ee8Vda66 sC4w== X-Received: by 10.112.79.1 with SMTP id f1mr1195953lbx.114.1363960637343; Fri, 22 Mar 2013 06:57:17 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.112.91.146 with SMTP id ce18csp110109lbb; Fri, 22 Mar 2013 06:57:16 -0700 (PDT) X-Received: by 10.204.169.144 with SMTP id z16mr1052734bky.109.1363960636460; Fri, 22 Mar 2013 06:57:16 -0700 (PDT) Received: from mail-bk0-x236.google.com (mail-bk0-x236.google.com [2a00:1450:4008:c01::236]) by mx.google.com with ESMTPS id rm5si540988bkb.66.2013.03.22.06.57.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Mar 2013 06:57:16 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4008:c01::236 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=2a00:1450:4008:c01::236; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:4008:c01::236 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) smtp.mail=sanjay.rawat@linaro.org Received: by mail-bk0-f54.google.com with SMTP id w5so1920918bku.27 for ; Fri, 22 Mar 2013 06:57:16 -0700 (PDT) X-Received: by 10.204.245.67 with SMTP id lt3mr1063343bkb.56.1363960636072; Fri, 22 Mar 2013 06:57:16 -0700 (PDT) Received: from srawat-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPS id x18sm530603bkw.4.2013.03.22.06.57.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Mar 2013 06:57:15 -0700 (PDT) From: Sanjay Singh Rawat To: linaro-dev@lists.linaro.org Cc: Sanjay Singh Rawat Subject: [PATCH pmqa] pm-qa: remove sched_mc test Date: Fri, 22 Mar 2013 19:26:28 +0530 Message-Id: <1363960588-8616-1-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQny22H/ScKte9gfz1kIIes7BLkmORZCDO3+AokolZYOcb7EcYe0CH4fnGgJKeO4Q+hhyb2V Remove the test as sched_mc is not longer supported Signed-off-by: Sanjay Singh Rawat --- Makefile | 2 -- README | 1 - sched_mc/Android.mk | 18 ------------ sched_mc/Makefile | 25 ---------------- sched_mc/sched_01.sh | 32 --------------------- sched_mc/sched_01.txt | 1 - sched_mc/sched_02.sh | 38 ------------------------ sched_mc/sched_02.txt | 1 - sched_mc/sched_03.sh | 33 --------------------- sched_mc/sched_03.txt | 1 - sched_mc/sched_04.sh | 70 --------------------------------------------- sched_mc/sched_04.txt | 1 - sched_mc/sched_sanity.sh | 35 ----------------------- sched_mc/sched_sanity.txt | 1 - 14 files changed, 259 deletions(-) delete mode 100644 sched_mc/Android.mk delete mode 100644 sched_mc/Makefile delete mode 100755 sched_mc/sched_01.sh delete mode 100644 sched_mc/sched_01.txt delete mode 100755 sched_mc/sched_02.sh delete mode 100644 sched_mc/sched_02.txt delete mode 100755 sched_mc/sched_03.sh delete mode 100644 sched_mc/sched_03.txt delete mode 100755 sched_mc/sched_04.sh delete mode 100644 sched_mc/sched_04.txt delete mode 100755 sched_mc/sched_sanity.sh delete mode 100644 sched_mc/sched_sanity.txt diff --git a/Makefile b/Makefile index fa979e0..52aa60d 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ check: @(cd cpufreq; $(MAKE) check) @(cd cpuhotplug; $(MAKE) check) @(cd cpuidle; $(MAKE) check) - @(cd sched_mc; $(MAKE) check) # @(cd suspend; $(MAKE) check) @(cd thermal; $(MAKE) check) # @(cd powertop; $(MAKE) check) @@ -39,7 +38,6 @@ uncheck: @(cd cpufreq; $(MAKE) uncheck) @(cd cpuhotplug; $(MAKE) uncheck) @(cd cpuidle; $(MAKE) uncheck) - @(cd sched_mc; $(MAKE) uncheck) # @(cd suspend; $(MAKE) uncheck) @(cd thermal; $(MAKE) uncheck) diff --git a/README b/README index a22a3c8..d689e11 100644 --- a/README +++ b/README @@ -8,5 +8,4 @@ If you want the test suite to continue when one error has been found, do: If you want to run a subset of the tests, do: - make -C sched_mc check make -C cpufreq check diff --git a/sched_mc/Android.mk b/sched_mc/Android.mk deleted file mode 100644 index f9f9d90..0000000 --- a/sched_mc/Android.mk +++ /dev/null @@ -1,18 +0,0 @@ -include $(call all-subdir-makefiles) -LOCAL_PATH:= $(call my-dir) - -module_name = sched - -define $(module_name)_add_executable - include $(CLEAR_VARS) - LOCAL_MODULE_TAGS := optional - LOCAL_MODULE_CLASS := tests - LOCAL_MODULE := $1.sh - systemtarball: $1.sh - LOCAL_SRC_FILES := $1.sh - LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/$(module_name)_mc - include $(BUILD_PREBUILT) -endef - -test_num := 01 02 03 04 -$(foreach item,$(test_num),$(eval $(call $(module_name)_add_executable, $(module_name)_$(item)))) diff --git a/sched_mc/Makefile b/sched_mc/Makefile deleted file mode 100644 index a90620c..0000000 --- a/sched_mc/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -include ../Test.mk \ No newline at end of file diff --git a/sched_mc/sched_01.sh b/sched_mc/sched_01.sh deleted file mode 100755 index d4414b6..0000000 --- a/sched_mc/sched_01.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_01 - -source ../include/functions.sh - -FILES="sched_mc_power_savings" - -check_sched_mc_files $FILES diff --git a/sched_mc/sched_01.txt b/sched_mc/sched_01.txt deleted file mode 100644 index 6783a3a..0000000 --- a/sched_mc/sched_01.txt +++ /dev/null @@ -1 +0,0 @@ -test the presence of the 'sched_mc_power_savings' file diff --git a/sched_mc/sched_02.sh b/sched_mc/sched_02.sh deleted file mode 100755 index c7cbc26..0000000 --- a/sched_mc/sched_02.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_02 - -source ../include/functions.sh - -check_physical_package_id() { - - local package_id=$CPU_PATH/$1/topology/physical_package_id - local val=$(cat $package_id) - - check "topology is enabled" "test \"$val\" != \"-1\"" -} - -for_each_cpu check_physical_package_id || exit 1 diff --git a/sched_mc/sched_02.txt b/sched_mc/sched_02.txt deleted file mode 100644 index 5493610..0000000 --- a/sched_mc/sched_02.txt +++ /dev/null @@ -1 +0,0 @@ -test the topology is implemented in the kernel diff --git a/sched_mc/sched_03.sh b/sched_mc/sched_03.sh deleted file mode 100755 index 6520ce5..0000000 --- a/sched_mc/sched_03.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_03 - -source ../include/functions.sh - -FILES="core_id core_siblings core_siblings_list physical_package_id \ -thread_siblings thread_siblings_list" - -for_each_cpu check_topology_files $FILES diff --git a/sched_mc/sched_03.txt b/sched_mc/sched_03.txt deleted file mode 100644 index b9e8d6f..0000000 --- a/sched_mc/sched_03.txt +++ /dev/null @@ -1 +0,0 @@ -test the topology files are present diff --git a/sched_mc/sched_04.sh b/sched_mc/sched_04.sh deleted file mode 100755 index f9266e8..0000000 --- a/sched_mc/sched_04.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_mc_04 - -source ../include/functions.sh - -check_change() { - local val=$1 - local path=$2 - - echo $val > $path -} - -check_invalid_change() { - - local val=$1 - local path=$2 - - echo $val > $path - if [ "$?" != "0" ]; then - return 0 - fi - - return 1 -} - -check_sched_mc_change() { - - local path=$CPU_PATH/sched_mc_power_savings - local oldval=$(cat $path) - - check "setting value to 0" check_change 0 $path - check "setting value to 1" check_change 1 $path - check "setting value to 2" check_change 2 $path - check "setting invalid value to 3" check_invalid_change 3 $path - check "setting invalid value to -1" check_invalid_change -1 $path - - echo $oldval > $path -} - -if [ $(id -u) != 0 ]; then - log_skip "run as non-root" - exit 0 -fi - -# check_sched_mc_files sched_mc_power_savings || exit 1 -check_sched_mc_change diff --git a/sched_mc/sched_04.txt b/sched_mc/sched_04.txt deleted file mode 100644 index 7f5ed4a..0000000 --- a/sched_mc/sched_04.txt +++ /dev/null @@ -1 +0,0 @@ -test the change are effective for the 'sched_mc_power_savings' file diff --git a/sched_mc/sched_sanity.sh b/sched_mc/sched_sanity.sh deleted file mode 100755 index 1b1b58b..0000000 --- a/sched_mc/sched_sanity.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# -# PM-QA validation test suite for the power management on Linux -# -# Copyright (C) 2011, Linaro Limited. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# Contributors: -# Daniel Lezcano (IBM Corporation) -# - initial API and implementation -# - -source ../include/functions.sh - -check_sched_mc_sysfs_entry() { - - local filepath=$CPU_PATH/sched_mc_power_savings - - test -f $filepath && return 1 || return 0 -} - -check_sched_mc_sysfs_entry diff --git a/sched_mc/sched_sanity.txt b/sched_mc/sched_sanity.txt deleted file mode 100644 index c79c23e..0000000 --- a/sched_mc/sched_sanity.txt +++ /dev/null @@ -1 +0,0 @@ -sched_mc is not enabled. Skipping all sched_mc tests...