From: Cyril H. <su...@li...> - 2013-10-17 12:51:11
|
The branch, master, has been updated via c793aee5f06b46bdc8171814df71df3c90d47c7d (commit) via 08dcfbb5a4ebad9319c54935a600ab936708c6da (commit) via 7fab4c4d439c9ed108d70c663e50cf4bd99f4254 (commit) via 8bd901edaac6ce1b4edaef835e46b30bec495aee (commit) via d266efb30fd17c290de5bbdf55afcfbbcce3315a (commit) via 836c1f2982c2b1f17a0925987b36565327371ed9 (commit) via 9d466859928d3b811032d0cfd9eea99677f9942a (commit) via e44edbaf213f3e3a5499aa123f86e60e633617a1 (commit) from 8e0f8b158aa3015bfccc6e1b16dd2baee5d03e45 (commit) - Log ----------------------------------------------------------------- commit c793aee5f06b46bdc8171814df71df3c90d47c7d Author: Cyril Hrubis <ch...@su...> Date: Thu Oct 17 12:46:33 2013 +0200 controllers/cpuset: Fix cleanup. On some systems (found on SLES10) cpuset mounts aren't listed in the output from mount (they are not in /etc/mtab at all), so we switch to the /proc/mounts instead. Also fix a race in the loop that kills processes that are left in the currently mounted cpuset. The problem is that if you kill a LTP test, the cleanup is still executed and the test takes some time to finish which results in EBUSY in the umount that is executed right after the loop. The fix is to kill the processes with -9 (SIGKILL) which makes them exit immediately. Signed-off-by: Cyril Hrubis <ch...@su...> commit 08dcfbb5a4ebad9319c54935a600ab936708c6da Author: Cyril Hrubis <ch...@su...> Date: Thu Oct 17 12:20:16 2013 +0200 controllers/cpuset: Fix check for root. The $USER == root check may fail (for example if you did su and the user stayed set to whatever was there before). Moreover rest of the LTP uses euid == 0 to check if you have root privileges, so let's stick to it. Signed-off-by: Cyril Hrubis <ch...@su...> commit 7fab4c4d439c9ed108d70c663e50cf4bd99f4254 Author: Cyril Hrubis <ch...@su...> Date: Thu Oct 17 12:18:53 2013 +0200 controllers/cpuset: Remove unused file. Remove unused copy of cpuset_funcs.sh from the cpuset_lib directory. Signed-off-by: Cyril Hrubis <ch...@su...> commit 8bd901edaac6ce1b4edaef835e46b30bec495aee Author: Stanislav Kholmanskikh <sta...@or...> Date: Fri Oct 4 14:09:02 2013 +0400 cpuset_base_ops_test: using tst_kvercmp2 RHEL6 kernel backported a fix to not produce an error in case of writing '0-' to cpuset/N/{cpus,mems} file. Signed-off-by: Stanislav Kholmanskikh <sta...@or...> commit d266efb30fd17c290de5bbdf55afcfbbcce3315a Author: Stanislav Kholmanskikh <sta...@or...> Date: Fri Oct 4 14:09:01 2013 +0400 controllers/cpuset: required number of nodes Initially these testcases required a host with 4 CPUs and 3 memory nodes minumum. This prevented to run the testcases on widely used 2-memory-nodes configuration. And in fact the testcases only need 2 memory nodes, and a few needs 4 CPUs. Modified the checks accordingly. Now "ideal" minumum configuration of a host is 4 CPUs and 2 memory nodes. Signed-off-by: Stanislav Kholmanskikh <sta...@or...> commit 836c1f2982c2b1f17a0925987b36565327371ed9 Author: Stanislav Kholmanskikh <sta...@or...> Date: Fri Oct 4 14:09:00 2013 +0400 controllers/cpuset: fix for old grep It seems that '\s' does not work with old version of grep (2.6.3). Therefore several testcases fail on some distributions using this version. For example - RHEL5-based. Signed-off-by: Stanislav Kholmanskikh <sta...@or...> commit 9d466859928d3b811032d0cfd9eea99677f9942a Author: Stanislav Kholmanskikh <sta...@or...> Date: Fri Oct 4 14:08:59 2013 +0400 controllers/cpuset: removed './' next to binaries In the testcases removed './' next to binaries. Signed-off-by: Stanislav Kholmanskikh <sta...@or...> commit e44edbaf213f3e3a5499aa123f86e60e633617a1 Author: Stanislav Kholmanskikh <sta...@or...> Date: Fri Oct 4 14:08:58 2013 +0400 controllers/cpuset: reorganization A separate name is assigned to each cpuset shell testcase (which was invoked earlier by run_cpuset_test.sh). This will simplify results analysis. Signed-off-by: Stanislav Kholmanskikh <sta...@or...> ----------------------------------------------------------------------- Summary of changes: runtest/controllers | 13 + .../cpuset_base_ops_testset.sh | 26 ++- .../cpuset_exclusive_test/cpuset_exclusive_test.sh | 8 +- .../kernel/controllers/cpuset/cpuset_funcs.sh | 46 ++-- .../cpuset_hierarchy_test/cpuset_hierarchy_test.sh | 8 +- .../cpuset_hotplug_test/cpuset_hotplug_test.sh | 14 +- .../cpuset_inherit_test/cpuset_inherit_testset.sh | 8 +- .../controllers/cpuset/cpuset_lib/cpuset_funcs.sh | 265 -------------------- .../cpuset_load_balance_test.sh | 13 +- .../cpuset_sched_domains_test.sh | 15 +- .../cpuset_memory_pressure_testset.sh | 18 +- .../cpuset_memory_spread_testset.sh | 19 +- .../cpuset_memory_test/cpuset_memory_testset.sh | 45 ++-- .../cpuset_syscall_test/cpuset_syscall_testset.sh | 30 ++- .../kernel/controllers/cpuset/run_cpuset_test.sh | 183 -------------- testcases/kernel/controllers/test_controllers.sh | 20 -- 16 files changed, 149 insertions(+), 582 deletions(-) delete mode 100755 testcases/kernel/controllers/cpuset/cpuset_lib/cpuset_funcs.sh delete mode 100755 testcases/kernel/controllers/cpuset/run_cpuset_test.sh diff --git a/runtest/controllers b/runtest/controllers index 94fc185..81a9a10 100644 --- a/runtest/controllers +++ b/runtest/controllers @@ -12,4 +12,17 @@ memcg_stress memcg_stress_test.sh memcg_control PAGESIZE=$(mem_process -p);memcg_control_test.sh $PAGESIZE $PAGESIZE $((PAGESIZE * 2)) cgroup_fj run_cgroup_test_fj.sh controllers test_controllers.sh + +cpuset_base_ops cpuset_base_ops_testset.sh +cpuset_inherit cpuset_inherit_testset.sh +cpuset_exclusive cpuset_exclusive_test.sh +cpuset_hierarchy cpuset_hierarchy_test.sh +cpuset_syscall cpuset_syscall_testset.sh +cpuset_sched_domains cpuset_sched_domains_test.sh +cpuset_load_balance cpuset_load_balance_test.sh +cpuset_hotplug cpuset_hotplug_test.sh +cpuset_memory cpuset_memory_testset.sh +cpuset_memory_pressure cpuset_memory_pressure_testset.sh +cpuset_memory_spread cpuset_memory_spread_testset.sh + cgroup_xattr cgroup_xattr diff --git a/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh index 126eec5..63a9dc5 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset01" +export TCID="cpuset_base_ops" export TST_TOTAL=97 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check nr_cpus=$NR_CPUS nr_mems=$N_NODES @@ -118,14 +118,17 @@ test_cpus() -1 WRITE_ERROR 0-$nr_cpus WRITE_ERROR 0--$((nr_cpus-1)) WRITE_ERROR - 0,1-$((nr_cpus-2)),$((nr_cpus-1)) 0-$((nr_cpus-1)) - 0,1-$((nr_cpus-2)), 0-$((nr_cpus-2)) 0AAA WRITE_ERROR AAA WRITE_ERROR EOF # while read cpus result - tst_kvercmp 3 0 0 + if [ $nr_cpus -ge 3 ]; then + base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2)),$((nr_cpus-1))" "0-$((nr_cpus-1))" + base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2))," "0-$((nr_cpus-2))" + fi + + tst_kvercmp2 3 0 0 "RHEL6:2.6.32" if [ $? -eq 0 ]; then base_op_test "$CPUSET/1/cpus" "0-" "WRITE_ERROR" else @@ -151,14 +154,17 @@ test_mems() -1 WRITE_ERROR 0-$nr_mems WRITE_ERROR 0--$((nr_mems-1)) WRITE_ERROR - 0,1-$((nr_mems-2)),$((nr_mems-1)) 0-$((nr_mems-1)) - 0,1-$((nr_mems-2)), 0-$((nr_mems-2)) 0AAA WRITE_ERROR AAA WRITE_ERROR EOF # while read mems result - tst_kvercmp 3 0 0 + if [ $nr_mems -ge 3 ]; then + base_op_test "$CPUSET/1/mems" "0,1-$((nr_mems-2)),$((nr_mems-1))" "0-$((nr_mems-1))" + base_op_test "$CPUSET/1/mems" "0,1-$((nr_mems-2))," "0-$((nr_mems-2))" + fi + + tst_kvercmp2 3 0 0 "RHEL6:2.6.32" if [ $? -eq 0 ]; then base_op_test "$CPUSET/1/mems" "0-" "WRITE_ERROR" else diff --git a/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/cpuset_exclusive_test.sh b/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/cpuset_exclusive_test.sh index 0ad31e7..2188ab6 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/cpuset_exclusive_test.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/cpuset_exclusive_test.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset03" +export TCID="cpuset_exclusive" export TST_TOTAL=18 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh index a83845c..79ecdad 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh @@ -65,23 +65,23 @@ version_check() ncpus_check() { - if [ $NR_CPUS -lt 4 ]; then - tst_brkm TCONF ignored "The total of CPUs is less than 4" + if [ $NR_CPUS -lt $1 ]; then + tst_brkm TCONF ignored "The total of CPUs is less than $1" return 1 fi } nnodes_check() { - if [ $N_NODES -lt 3 ]; then - tst_brkm TCONF ignored "The total of nodes is less than 3" + if [ $N_NODES -lt $1 ]; then + tst_brkm TCONF ignored "The total of nodes is less than $1" return 1 fi } user_check() { - if [ "$USER" != root ]; then + if [ $(id -u) != 0 ]; then tst_brkm TCONF ignored "Test must be run as root" return 1 fi @@ -89,38 +89,48 @@ user_check() cpuset_check() { - grep cpuset /proc/cgroups > /dev/null 2>&1 - if [ $? -ne 0 ]; then - tst_brkm TCONF ignored "Cpuset is not supported" - return 1 + if [ -f /proc/cgroups ]; then + CPUSET_CONTROLLER=`grep -w cpuset /proc/cgroups | cut -f1` + CPUSET_CONTROLLER_VALUE=`grep -w cpuset /proc/cgroups | cut -f4` + + if [ "$CPUSET_CONTROLLER" = "cpuset" ] && [ "$CPUSET_CONTROLLER_VALUE" = "1" ] + then + return 0 + fi fi + + tst_brkm TCONF ignored "Cpuset is not supported" + return 1 } +# optional parameters (pass both or none of them): +# $1 - required number of cpus (default 2) +# $2 - required number of memory nodes (default 2) check() { user_check if [ $? -ne 0 ]; then - return 1 + exit 0 fi cpuset_check if [ $? -ne 0 ]; then - return 1 + exit 0 fi version_check if [ $? -ne 0 ]; then - return 1 + exit 0 fi - ncpus_check + ncpus_check ${1:-2} if [ $? -ne 0 ]; then - return 1 + exit 0 fi - nnodes_check + nnodes_check ${2:-2} if [ $? -ne 0 ]; then - return 1 + exit 0 fi } @@ -152,7 +162,7 @@ setup() # Write the cleanup function cleanup() { - mount | grep "$CPUSET" >/dev/null 2>&1 || { + grep "$CPUSET" /proc/mounts >/dev/null 2>&1 || { rm -rf "$CPUSET" >/dev/null 2>&1 return 0 } @@ -161,7 +171,7 @@ cleanup() do while read pid do - /bin/kill $pid > /dev/null 2>&1 + /bin/kill -9 $pid > /dev/null 2>&1 if [ $? -ne 0 ]; then tst_brkm TFAIL ignored "Couldn't kill task - "\ "$pid in the cpuset" diff --git a/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/cpuset_hierarchy_test.sh b/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/cpuset_hierarchy_test.sh index 5804aa4..61f58fc 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/cpuset_hierarchy_test.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/cpuset_hierarchy_test.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset04" +export TCID="cpuset_hierarchy" export TST_TOTAL=32 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check nr_cpus=$NR_CPUS nr_mems=$N_NODES diff --git a/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/cpuset_hotplug_test.sh b/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/cpuset_hotplug_test.sh index 2bfe0f5..611ea62 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/cpuset_hotplug_test.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/cpuset_hotplug_test.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset08" +export TCID="cpuset_hotplug" export TST_TOTAL=13 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 @@ -36,7 +36,7 @@ nr_cpus=$NR_CPUS nr_mems=$N_NODES cpus_all="$(seq -s, 0 $((nr_cpus-1)))" -cpus_all="`./cpuset_list_compute $cpus_all`" +cpus_all="`cpuset_list_compute $cpus_all`" mems_all="$(seq -s, 0 $((nr_mems-1)))" # check_result <result> <expect> @@ -224,7 +224,7 @@ base_test() # Test Case 1-2 test_root_cpu_hotplug() { - local tmp_cpus="`./cpuset_list_compute -s $cpus_all $HOTPLUG_CPU`" + local tmp_cpus="`cpuset_list_compute -s $cpus_all $HOTPLUG_CPU`" test_function="root_cpu_hotplug_test" while read hotplug cpus_expect task_expect @@ -240,7 +240,7 @@ test_root_cpu_hotplug() # Test Case 3-6 test_general_cpu_hotplug() { - local tmp_cpus="`./cpuset_list_compute -s $cpus_all $HOTPLUG_CPU`" + local tmp_cpus="`cpuset_list_compute -s $cpus_all $HOTPLUG_CPU`" test_function="general_cpu_hotplug_test" while read hotplug cpus cpus_expect task_expect diff --git a/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh index 780b7eb..f9d524e 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_inherit_test/cpuset_inherit_testset.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset02" +export TCID="cpuset_inherit" export TST_TOTAL=27 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check nr_cpus=$NR_CPUS nr_mems=$N_NODES diff --git a/testcases/kernel/controllers/cpuset/cpuset_lib/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_lib/cpuset_funcs.sh deleted file mode 100755 index b996461..0000000 --- a/testcases/kernel/controllers/cpuset/cpuset_lib/cpuset_funcs.sh +++ /dev/null @@ -1,265 +0,0 @@ -#!/bin/sh -# usage: . cpuset_funcs.sh -# functions for cpuset test - -################################################################################ -## ## -## Copyright (c) 2009 FUJITSU 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 ## -## ## -## Author: Miao Xie <mi...@cn...> ## -## ## -################################################################################ - -NR_CPUS=`tst_ncpus` -if [ -f "/sys/devices/system/node/has_high_memory" ]; then - N_NODES="`cat /sys/devices/system/node/has_high_memory`" -else - N_NODES="`cat /sys/devices/system/node/has_normal_memory`" -fi -N_NODES=${N_NODES#*-*} -: $((N_NODES++)) - -CPUSET="/dev/cpuset" -CPUSET_TMP="/tmp/cpuset_tmp" - -HOTPLUG_CPU="1" - -cpuset_log() -{ - tst_resm TINFO "$*" -} - -# cpuset_log_error <error_file> -cpuset_log_error() -{ - local error_message= - - while read error_message - do - cpuset_log "$error_message" - done < "$1" -} - -version_check() -{ - tst_kvercmp 2 6 28 - if [ $? -eq 0 ]; then - tst_brkm TCONF ignored "kernel is below 2.6.28" - return 1 - fi -} - -ncpus_check() -{ - if [ $NR_CPUS -lt 4 ]; then - tst_brkm TCONF ignored "The total of CPUs is less than 4" - return 1 - fi -} - -nnodes_check() -{ - if [ $N_NODES -lt 3 ]; then - tst_brkm TCONF ignored "The total of nodes is less than 3" - return 1 - fi -} - -user_check() -{ - if [ "$USER" != root ]; then - tst_brkm TCONF ignored "Test must be run as root" - return 1 - fi -} - -cpuset_check() -{ - grep cpuset /proc/cgroups > /dev/null 2>&1 - if [ $? -ne 0 ]; then - tst_brkm TCONF ignored "Cpuset is not supported" - return 1 - fi -} - -check() -{ - user_check - if [ $? -ne 0 ]; then - return 1 - fi - - cpuset_check - if [ $? -ne 0 ]; then - return 1 - fi - - version_check - if [ $? -ne 0 ]; then - return 1 - fi - - ncpus_check - if [ $? -ne 0 ]; then - return 1 - fi - - nnodes_check - if [ $? -ne 0 ]; then - return 1 - fi - -} - -# Create /dev/cpuset & mount the cgroup file system with cpuset -# clean any group created eralier (if any) -setup() -{ - if [ -e "$CPUSET" ] - then - tst_resm TWARN "$CPUSET already exist.. overwriting" - cleanup || { - tst_brkm TFAIL ignored "Can't cleanup... Exiting" - return 1 - } - fi - - mkdir -p "$CPUSET_TMP" - mkdir "$CPUSET" - mount -t cpuset cpuset "$CPUSET" 2> /dev/null - if [ $? -ne 0 ]; then - tst_brkm TFAIL ignored "Could not mount cgroup filesystem with"\ - " cpuset on $CPUSET..Exiting test" - cleanup - return 1 - fi -} - -# Write the cleanup function -cleanup() -{ - mount | grep "$CPUSET" >/dev/null 2>&1 || { - rm -rf "$CPUSET" >/dev/null 2>&1 - return 0 - } - - find "$CPUSET" -type d | sort | sed -n '2,$p' | tac | while read subdir - do - while read pid - do - /bin/kill $pid > /dev/null 2>&1 - if [ $? -ne 0 ]; then - tst_brkm TFAIL ignored "Couldn't kill task - "\ - "$pid in the cpuset" - return 1 - fi - done < "$subdir/tasks" - rmdir "$subdir" - if [ $? -ne 0 ]; then - tst_brkm TFAIL ignored "Couldn't remove subdir - " - "$subdir in the cpuset" - return 1 - fi - done - - umount "$CPUSET" - if [ $? -ne 0 ]; then - tst_brkm TFAIL ignored "Couldn't umount cgroup filesystem with"\ - " cpuset on $CPUSET..Exiting test" - return 1 - fi - rmdir "$CPUSET" > /dev/null 2>&1 - rm -rf "$CPUSET_TMP" > /dev/null 2>&1 -} - -# set the cpuset's parameter -# cpuset_set <cpusetpath> <cpus> <mems> <load_balance> -cpuset_set() -{ - local path="$1" - mkdir -p "$path" - if [ $? -ne 0 ]; then - return 1 - fi - - local cpus="$2" - local mems="$3" - local load_balance="$4" - - if [ "$path" != "$CPUSET" ]; then - if [ "$cpus" != "-" ]; then - /bin/echo $cpus > $path/cpus - if [ $? -ne 0 ]; then - return 1 - fi - fi - - /bin/echo $mems > $path/mems - if [ $? -ne 0 ]; then - return 1 - fi - fi - - /bin/echo $load_balance > $path/sched_load_balance - if [ $? -ne 0 ]; then - return 1 - fi -} - -# cpu_hotplug cpu_id offline/online -cpu_hotplug() -{ - if [ "$2" = "online" ]; then - /bin/echo 1 > "/sys/devices/system/cpu/cpu$1/online" - if [ $? -ne 0 ]; then - return 1 - fi - elif [ "$2" = "offline" ]; then - /bin/echo 0 > "/sys/devices/system/cpu/cpu$1/online" - if [ $? -ne 0 ]; then - return 1 - fi - fi -} - -# setup_test_environment <online | offline> -# online - online a CPU in testing, so we must offline a CPU first -# offline - offline a CPU in testing, we needn't do anything -setup_test_environment() -{ - if [ "$1" = "online" ]; then - cpu_hotplug $HOTPLUG_CPU offline - if [ $? -ne 0 ]; then - return 1 - fi - fi -} - -cpu_hotplug_cleanup() -{ - local cpus_array="$(seq -s' ' 1 $((NR_CPUS-1)))" - local cpuid= - for cpuid in $cpus_array - do - local file="/sys/devices/system/cpu/cpu$cpuid/online" - local offline="$(cat $file)" - if [ $offline -eq 0 ]; then - cpu_hotplug $cpuid "online" - fi - done -} - diff --git a/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_load_balance_test.sh b/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_load_balance_test.sh index 55f533a..7123019 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_load_balance_test.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_load_balance_test.sh @@ -22,17 +22,16 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset07" +export TCID="cpuset_load_balance" export TST_TOTAL=13 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check 4 2 exit_status=0 -# must >= 3 for: 1-$((nr_mems-2)) nr_cpus=$NR_CPUS nr_mems=$N_NODES @@ -84,7 +83,7 @@ general_load_balance_test1() return 1 fi - ./cpuset_cpu_hog 2> $CPUSET_TMP/cpu-hog_stderr & + cpuset_cpu_hog 2> $CPUSET_TMP/cpu-hog_stderr & pid=$! read fifo < ./myfifo @@ -209,7 +208,7 @@ general_load_balance_test2() return 1 fi - ./cpuset_cpu_hog 2> $CPUSET_TMP/cpu-hog_stderr & + cpuset_cpu_hog 2> $CPUSET_TMP/cpu-hog_stderr & pid=$! # wait for the parent to do prepare diff --git a/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_sched_domains_test.sh b/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_sched_domains_test.sh index 3ca70df..014bc74 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_sched_domains_test.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/cpuset_sched_domains_test.sh @@ -22,17 +22,16 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset06" +export TCID="cpuset_sched_domains" export TST_TOTAL=19 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check 4 2 exit_status=0 -# must >= 3 for: 1-$((nr_mems-2)) nr_cpus=$NR_CPUS nr_mems=$N_NODES @@ -76,7 +75,7 @@ root_load_balance_test() # check sched domains of every CPU sleep 1 - ./cpuset_sched_domains_check 2> $CPUSET_TMP/stderr + cpuset_sched_domains_check 2> $CPUSET_TMP/stderr ret=$? if [ $ret -ne 0 ]; then cpuset_log_error $CPUSET_TMP/stderr @@ -119,7 +118,7 @@ general_load_balance_test1() # check sched domains of every CPU sleep 1 - ./cpuset_sched_domains_check 2> $CPUSET_TMP/stderr + cpuset_sched_domains_check 2> $CPUSET_TMP/stderr if [ $? -ne 0 ]; then cpuset_log_error $CPUSET_TMP/stderr tst_resm TFAIL "partition sched domains failed." @@ -195,7 +194,7 @@ general_load_balance_test2() # check sched domains of every CPU sleep 1 - ./cpuset_sched_domains_check > $CPUSET_TMP/stdout + cpuset_sched_domains_check > $CPUSET_TMP/stdout if [ $? -ne 0 ]; then cpuset_log_error $CPUSET_TMP/stdout tst_resm TFAIL "partition sched domains failed." diff --git a/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/cpuset_memory_pressure_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/cpuset_memory_pressure_testset.sh index f342e6c..fcf00d4 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/cpuset_memory_pressure_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/cpuset_memory_pressure_testset.sh @@ -22,13 +22,13 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset10" +export TCID="cpuset_memory_pressure" export TST_TOTAL=6 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 @@ -69,7 +69,7 @@ test2() return 1 fi - ./cpuset_memory_pressure $usemem + cpuset_memory_pressure $usemem local i for i in $(seq 0 9) @@ -135,7 +135,7 @@ test4() return 1 fi - ./cpuset_memory_pressure $usemem + cpuset_memory_pressure $usemem echo $$ > "$CPUSET/tasks" 2> $CPUSET_TMP/stderr if [ $? -ne 0 ]; then @@ -174,7 +174,7 @@ test5() return 1 fi - ./cpuset_memory_pressure $usemem + cpuset_memory_pressure $usemem local i for i in $(seq 0 9) do @@ -211,7 +211,7 @@ test6() tst_resm TFAIL "attaching self to sub group failed" return 1 fi - ./cpuset_memory_pressure $usemem + cpuset_memory_pressure $usemem echo $$ > "$CPUSET/tasks" 2> $CPUSET_TMP/stderr if [ $? -ne 0 ]; then @@ -220,7 +220,7 @@ test6() return 1 fi - ./cpuset_memory_pressure $usemem + cpuset_memory_pressure $usemem local i for i in $(seq 0 9) do diff --git a/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh index ffce419..ad989f3 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/cpuset_memory_spread_testset.sh @@ -22,16 +22,15 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset11" +export TCID="cpuset_memory_spread" export TST_TOTAL=6 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 -# must >= 3 for: 1-$((nr_mems-2)) nr_cpus=$NR_CPUS nr_mems=$N_NODES @@ -61,7 +60,7 @@ set_memsinfo_val() local nl=' ' # clearing existent value (if present) - memsinfo=`echo "$memsinfo" | sed -r "/^\_$1\:\s/d"` + memsinfo=`echo "$memsinfo" | sed -r "/^\_$1\: /d"` if [ -z "$memsinfo" ]; then memsinfo="_$1: $2" @@ -74,8 +73,8 @@ set_memsinfo_val() get_memsinfo_val() { local value= - value=`echo "$memsinfo" | grep -e "^\_$1\:\s"` - value=`echo "$value" | sed -r "s/^.*\:\s(.*)$/\1/"` + value=`echo "$memsinfo" | grep -e "^\_$1\: "` + value=`echo "$value" | sed -r "s/^.*\: (.*)$/\1/"` echo "$value" } @@ -256,7 +255,7 @@ base_test() if [ $? -ne 0 ]; then exit_status=1 else - ./cpuset_mem_hog & + cpuset_mem_hog & pid=$! general_memory_spread_test "$@" "$pid" result_num=$? @@ -303,7 +302,7 @@ test_spread_page2() if [ $? -ne 0 ]; then exit_status=1 else - ./cpuset_mem_hog & + cpuset_mem_hog & pid=$! general_memory_spread_test "1" "$cpus_all" "0" "0" "$pid" result_num=$? diff --git a/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh index 2a9f7e3..e8ef6bf 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh @@ -22,17 +22,16 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset09" +export TCID="cpuset_memory" export TST_TOTAL=18 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 -# must >= 3 for: 1-$((nr_mems-2)) nr_cpus=$NR_CPUS nr_mems=$N_NODES @@ -71,7 +70,7 @@ test1() return 1 fi - ./cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -88,7 +87,7 @@ test2() return 1 fi - ./cpuset_memory_test --mmap-file >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-file >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -105,7 +104,7 @@ test3() return 1 fi - ./cpuset_memory_test --shm >"$MEMORY_RESULT" & + cpuset_memory_test --shm >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -122,7 +121,7 @@ test4() return 1 fi - ./cpuset_memory_test --mmap-lock1 >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-lock1 >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -139,7 +138,7 @@ test5() return 1 fi - ./cpuset_memory_test --mmap-lock2 >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-lock2 >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -182,7 +181,7 @@ test6() save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages) echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages - ./cpuset_memory_test --mmap-file --hugepage -s $HUGEPAGESIZE >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-file --hugepage -s $HUGEPAGESIZE >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" umount /hugetlb @@ -221,7 +220,7 @@ test7() save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages) echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages - ./cpuset_memory_test --shm --hugepage -s $HUGEPAGESIZE --key=7 >"$MEMORY_RESULT" & + cpuset_memory_test --shm --hugepage -s $HUGEPAGESIZE --key=7 >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" umount /hugetlb @@ -248,7 +247,7 @@ test8() return 1 fi - ./cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "0" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." @@ -265,7 +264,7 @@ test9() return 1 fi - ./cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & simple_getresult $! "$CPUSET/0" if [ "$node" != "1" ]; then tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#1)." @@ -308,7 +307,7 @@ test10() return 1 fi - ./cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & talk2memory_test_for_case_10_11 $! "$CPUSET/1" "$CPUSET/2" { read node0 @@ -353,7 +352,7 @@ test11() return 1 fi - ./cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & talk2memory_test_for_case_10_11 $! "$CPUSET/1" "$CPUSET/2" { read node0 @@ -405,7 +404,7 @@ test12() return 1 fi - ./cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon >"$MEMORY_RESULT" & talk2memory_test_for_case_12_13 $! "$CPUSET/0" { @@ -441,7 +440,7 @@ test13() fi - ./cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & + cpuset_memory_test --mmap-anon --check >"$MEMORY_RESULT" & talk2memory_test_for_case_12_13 $! "$CPUSET/0" { @@ -496,7 +495,7 @@ test14() return 1 fi - ./cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & { local testpid=$! sleep 1 @@ -552,7 +551,7 @@ test15() fi - ./cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & { local testpid=$! sleep 1 @@ -608,7 +607,7 @@ test16() fi - ./cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & { local testpid=$! sleep 1 @@ -674,7 +673,7 @@ test17() return 1 fi - ./cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & { local testpid=$! sleep 1 @@ -756,7 +755,7 @@ test18() return 1 fi - ./cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & + cpuset_memory_test --thread --mmap-anon >"$MEMORY_RESULT" & { local testpid=$! sleep 1 diff --git a/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_testset.sh index af92373..561c3b9 100755 --- a/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_testset.sh +++ b/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_testset.sh @@ -22,25 +22,27 @@ # # ################################################################################ -cd $LTPROOT/testcases/bin - -export TCID="cpuset05" +export TCID="cpuset_syscall" export TST_TOTAL=16 export TST_COUNT=1 -. ./cpuset_funcs.sh +. cpuset_funcs.sh + +check exit_status=0 +nr_mems=$N_NODES + TEST_CPUSET="$CPUSET/0" TEST_OUTPUT="$CPUSET_TMP/result" TEST_PROCSTATUS="$CPUSET_TMP/status" TEST_PROCNUMA="$CPUSET_TMP/numa_maps" -# do_syscall_test - call ./syscall_test +# do_syscall_test - call syscall_test # $1 - cpus # $2 - mems -# $3 - ./syscall_test's args +# $3 - syscall_test's args # $4 - expect return value of test task do_syscall_test() @@ -63,7 +65,7 @@ do_syscall_test() tst_resm TFAIL "set $TEST_CPUSET/mems as $2 fail." return 1 fi - ./cpuset_syscall_test $3 >"$TEST_OUTPUT" & + cpuset_syscall_test $3 >"$TEST_OUTPUT" & testpid=$! echo $testpid > "$TEST_CPUSET/tasks" if [ $? -ne 0 ]; then @@ -231,7 +233,7 @@ test10() awk '{print $2}') allowed_list="$(echo $allowed_list | sed -e s/bind://)" - task_policy=$(cat $TEST_PROCNUMA | grep -e "\s\+stack\s\+anon" | \ + task_policy=$(cat $TEST_PROCNUMA | grep -e " *stack *anon" | \ awk '{print $2}') test "$allowed_list" = "$task_policy" @@ -276,14 +278,22 @@ test12() test13() { - do_syscall_test 0 0-1 --set_mempolicy=6 0 || return 1 + if [ $nr_mems -ge 3 ]; then + do_syscall_test 0 0-1 --set_mempolicy=6 0 || return 1 + else + do_syscall_test 0 0-1 --set_mempolicy=2 0 || return 1 + fi check_result "1" return $? } test14() { - do_syscall_test 0 0 --set_mempolicy=6 1 || return 1 + if [ $nr_mems -ge 3 ]; then + do_syscall_test 0 0 --set_mempolicy=6 1 || return 1 + else + do_syscall_test 0 0 --set_mempolicy=2 1 || return 1 + fi return 0 } diff --git a/testcases/kernel/controllers/cpuset/run_cpuset_test.sh b/testcases/kernel/controllers/cpuset/run_cpuset_test.sh deleted file mode 100755 index abdc885..0000000 --- a/testcases/kernel/controllers/cpuset/run_cpuset_test.sh +++ /dev/null @@ -1,183 +0,0 @@ -#!/bin/sh -# usage ./run_cpuset_test.sh test_num - -################################################################################ -# # -# Copyright (c) 2009 FUJITSU 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 # -# # -################################################################################ -# Name Of File: run_cpuset_test.sh # -# # -# Description: This file runs the setup for testing different cpuset resource # -# controller features. After setup it runs diff test cases in # -# diff setup. # -# # -# Test 01: Tests basal operation of control file # -# # -# Precaution: Avoid system use by other applications/users to get fair and # -# appropriate results (avoid unnecessary killing of applicatio) # -# # -# Author: Miao Xie <mi...@cn...> # -# # -# History: # -# # -# DATE NAME EMAIL DESC # -# # -# 02/03/09 Miao Xie <mi...@cn...> Created this test # -# # -################################################################################ - -export TCID="cpuset_test"; -export TST_TOTAL=1; -export TST_COUNT=1; - -. cpuset_funcs.sh; - -TEST_NUM=$1; -SCRIPT_PID=$$; -RC=0; -PWD=`pwd`; - -check -if [ $? -ne 0 ]; then - exit 0 -fi - -# The usage of the script file -usage() -{ - echo "Could not start cpuset controller test"; - echo "usage: run_cpuset_test.sh test_num"; - echo "Skipping the cpuset controller test..."; -} - -cd $LTPROOT/testcases/bin/ - -echo "TEST $TEST_NUM: CPUSET CONTROLLER TESTING"; - -echo "TEST STARTED: Please avoid using system while this test executes"; -#Check if C source file has been compiled and then run it in different groups - -case $TEST_NUM in -"1" ) - if [ -f cpuset_base_ops_testset.sh ]; then - ./cpuset_base_ops_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"2" ) - if [ -f cpuset_inherit_testset.sh ]; then - ./cpuset_inherit_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"3" ) - if [ -f cpuset_exclusive_test.sh ]; then - ./cpuset_exclusive_test.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"4" ) - if [ -f cpuset_hierarchy_test.sh ]; then - ./cpuset_hierarchy_test.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"5" ) - if [ -f cpuset_syscall_testset.sh ]; then - ./cpuset_syscall_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"6" ) - if [ -f cpuset_sched_domains_test.sh ]; then - ./cpuset_sched_domains_test.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"7" ) - if [ -f cpuset_load_balance_test.sh ]; then - ./cpuset_load_balance_test.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"8" ) - if [ -f cpuset_hotplug_test.sh ]; then - ./cpuset_hotplug_test.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"9" ) - if [ -f cpuset_memory_testset.sh ]; then - ./cpuset_memory_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"10" ) - if [ -f cpuset_memory_pressure_testset.sh ]; then - ./cpuset_memory_pressure_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"11" ) - if [ -f cpuset_memory_spread_testset.sh ]; then - ./cpuset_memory_spread_testset.sh - exit $?; - else - echo "Shell file not installed..Please check Makefile...Exiting" - exit -1; - fi; - ;; -"*" ) - usage; - exit -1; - ;; -esac - -echo "Cpuset Resource Controller test executed successfully."; -cd $PWD -exit 0; #to let PAN reprt success of test diff --git a/testcases/kernel/controllers/test_controllers.sh b/testcases/kernel/controllers/test_controllers.sh index d3c3362..7aa974f 100755 --- a/testcases/kernel/controllers/test_controllers.sh +++ b/testcases/kernel/controllers/test_controllers.sh @@ -47,8 +47,6 @@ then IOTHROTTLE_CONTROLLER_VALUE=`grep -w blockio /proc/cgroups | cut -f4`; FREEZER=`grep -w freezer /proc/cgroups | cut -f1`; FREEZER_VALUE=`grep -w freezer /proc/cgroups | cut -f4`; - CPUSET_CONTROLLER=`grep -w cpuset /proc/cgroups | cut -f1` - CPUSET_CONTROLLER_VALUE=`grep -w cpuset /proc/cgroups | cut -f4` CPUACCOUNT_CONTROLLER=`grep -w cpuacct /proc/cgroups | cut -f1` CPUACCOUNT_CONTROLLER_VALUE=`grep -w cpuacct /proc/cgroups | cut -f4` @@ -102,24 +100,6 @@ then echo "Kernel does not support freezer controller"; echo "Skipping all freezer testcases...."; fi - if [ "$CPUSET_CONTROLLER" = "cpuset" ] && [ "$CPUSET_CONTROLLER_VALUE" = "1" ] - then - $LTPROOT/testcases/bin/run_cpuset_test.sh 1; - $LTPROOT/testcases/bin/run_cpuset_test.sh 2; - $LTPROOT/testcases/bin/run_cpuset_test.sh 3; - $LTPROOT/testcases/bin/run_cpuset_test.sh 4; - $LTPROOT/testcases/bin/run_cpuset_test.sh 5; - $LTPROOT/testcases/bin/run_cpuset_test.sh 6; - $LTPROOT/testcases/bin/run_cpuset_test.sh 7; - $LTPROOT/testcases/bin/run_cpuset_test.sh 8; - $LTPROOT/testcases/bin/run_cpuset_test.sh 9; - $LTPROOT/testcases/bin/run_cpuset_test.sh 10; - $LTPROOT/testcases/bin/run_cpuset_test.sh 11; - else - echo "CONTROLLERS TESTCASES: WARNING"; - echo "Either Kernel does not support for cpuset controller or functionality is not enabled"; - echo "Skipping all cpuset controller testcases...."; - fi if [ "$CPUACCOUNT_CONTROLLER" = "cpuacct" ] && [ "$CPUACCOUNT_CONTROLLER_VALUE" = "1" ] then $LTPROOT/testcases/bin/run_cpuacct_test.sh 1; hooks/post-receive -- ltp |