alaffin | 802d3e3 | 2000-08-23 20:04:23 +0000 | [diff] [blame] | 1 | #!/bin/sh |
iyermanoj | 1d9a963 | 2003-10-07 17:17:00 +0000 | [diff] [blame] | 2 | ################################################################################ |
| 3 | ## ## |
| 4 | ## Copyright (c) International Business Machines Corp., 2001 ## |
| 5 | ## ## |
| 6 | ## This program is free software; you can redistribute it and#or modify ## |
| 7 | ## it under the terms of the GNU General Public License as published by ## |
| 8 | ## the Free Software Foundation; either version 2 of the License, or ## |
| 9 | ## (at your option) any later version. ## |
| 10 | ## ## |
| 11 | ## This program is distributed in the hope that it will be useful, but ## |
| 12 | ## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## |
| 13 | ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## |
| 14 | ## for more details. ## |
| 15 | ## ## |
| 16 | ## You should have received a copy of the GNU General Public License ## |
| 17 | ## along with this program; if not, write to the Free Software ## |
| 18 | ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## |
| 19 | ## ## |
| 20 | ################################################################################ |
subrata_modak | 7214c77 | 2008-09-08 11:56:11 +0000 | [diff] [blame] | 21 | ## File: runalltests.sh ## |
| 22 | ## ## |
| 23 | ## Description: This script just calls runltp now, and is being phased out. ## |
| 24 | ## If you rely on this script for automation reasons, please ## |
| 25 | ## ## |
| 26 | ## History Subrata Modak <subrata@linuc.vnet.ibm.com> changed the code ## |
| 27 | ## to include testing other testcases which are not run by ## |
| 28 | ## default, 08/09/2008 ## |
| 29 | ## ## |
| 30 | ################################################################################ |
robbiew | 2379611 | 2003-02-05 16:28:37 +0000 | [diff] [blame] | 31 | |
yaberauneya | c869a5d | 2009-11-12 20:55:25 +0000 | [diff] [blame] | 32 | export LTPROOT=${0%/*} |
| 33 | RUNLTP="$LTPROOT/runltp" |
| 34 | |
subrata_modak | 6d56107 | 2009-07-08 17:53:47 +0000 | [diff] [blame] | 35 | echo "*******************************************************************" |
| 36 | echo "*******************************************************************" |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 37 | echo "** **" |
| 38 | echo "** This script is being re-written to cover all aspects of **" |
| 39 | echo "** testing LTP, which includes running all those tests which **" |
| 40 | echo "** are not run by default with ${RUNLTP##*/} script. Special setup **" |
| 41 | echo "** in system environment will be done to run all those tests **" |
| 42 | echo "** like the File System tests, SELinuxtest, etc **" |
| 43 | echo "** **" |
subrata_modak | 6d56107 | 2009-07-08 17:53:47 +0000 | [diff] [blame] | 44 | echo "*******************************************************************" |
| 45 | echo "*******************************************************************" |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 46 | |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 47 | export RUN_BALLISTA=0 |
| 48 | export RUN_OPENPOSIX=0 |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 49 | ## Set this to 1 if mm-1.4.2.tar.gz is already installed in your system |
| 50 | ## from ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 51 | export RUN_MM_CORE_APIS=0 |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 52 | export LIBMM_INSTALLED=0 |
| 53 | ## This is required if already not set to /usr/local/lib/ as |
| 54 | ## mm-1.4.2.tar.gz gets installed at /usr/local/lib/ |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 55 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/:/lib/ |
| 56 | export PATH=$PATH:/sbin/ |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 57 | |
subrata_modak | 6c4981e | 2008-10-30 09:42:34 +0000 | [diff] [blame] | 58 | ## Set this to 1 if libaio-0.3.92.tar.gz is already installed in your system |
| 59 | ## from http://www.kernel.org/pub/linux/kernel/people/bcrl/aio/libaio-0.3.92.tar.gz |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 60 | export RUN_AIOTESTS=0 |
subrata_modak | 6c4981e | 2008-10-30 09:42:34 +0000 | [diff] [blame] | 61 | export LIBAIO_INSTALLED=0 |
| 62 | |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 63 | ## Set this to 1 if libcaps-2.11 or newer is already installed in your system |
| 64 | ## from ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2, as well as, |
| 65 | ## the libattr is available in the system. The kernel should also have been built |
| 66 | ## with the following option: CONFIG_SECURITY_FILE_CAPABILITIES=y |
| 67 | export RUN_FILECAPS=0 |
| 68 | export LIBCAPS_INSTALLED=0 |
| 69 | export LIBATTR_INSTALLED=0 |
| 70 | |
subrata_modak | 5975351 | 2008-12-29 11:00:00 +0000 | [diff] [blame] | 71 | ## Set this to 1 if you wish to execute the stress_cd tests |
| 72 | ## Make sure you have FLOPPY inserted, be warned that you |
| 73 | ## will loose all data on it after the tests, |
| 74 | export RUN_STRESS_FLOPPY=0 |
| 75 | |
| 76 | ## Set this to 1 if you wish to execute the stress_floppy tests |
| 77 | ## Make sure you have CD inserted in your CD-ROM drive, |
| 78 | export RUN_STRESS_CD=0 |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 79 | |
subrata_modak | 773c40c | 2008-12-31 04:36:19 +0000 | [diff] [blame] | 80 | ##Set this to 1 if you wish to run the CPUHOTPLUG tests |
subrata_modak | 6111aa8 | 2008-12-29 11:04:15 +0000 | [diff] [blame] | 81 | export RUN_CPU_HOTPLUG=0 |
| 82 | |
subrata_modak | 773c40c | 2008-12-31 04:36:19 +0000 | [diff] [blame] | 83 | ##Set this to 1 if you wish to run the LTP-NETWORK tests. Please refer to: |
| 84 | ## http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/LTP-Network-test_README.pdf |
| 85 | ## for more information on how to run the tests. |
| 86 | export RUN_LTP_NETWORK_TESTS=0 |
| 87 | |
subrata_modak | 32b726f | 2008-12-31 04:37:33 +0000 | [diff] [blame] | 88 | ##Set this to 1 if you wish to run the LTP-NETWORK-STRESS tests. Please refer to: |
| 89 | ## http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/LTP-Network-test_README.pdf |
| 90 | ## and http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/network/stress/README |
| 91 | ## for more information on how to run the NETWORK-STRESS tests. |
| 92 | export RUN_LTP_NETWORK_STRESS_TESTS=0 |
| 93 | |
subrata_modak | eebedc2 | 2008-12-31 04:38:13 +0000 | [diff] [blame] | 94 | ## Set this to 1 if you wish to run the ltp/testscripts/adp tests |
| 95 | export RUN_LTP_ADP_TESTS=0 |
| 96 | |
subrata_modak | 8910324 | 2008-12-31 04:38:53 +0000 | [diff] [blame] | 97 | ## Set this to 1 if you wish to run the AUTOFS tests |
| 98 | # REQUIREMENTS: |
| 99 | # 1) System with a floppy device with a floppy disk in it. |
| 100 | # 2) A spare (scratch) disk partition of 100MB or larger. |
| 101 | export RUN_LTP_AUTOFS1_TESTS=0 |
| 102 | export RUN_LTP_AUTOFS4_TESTS=0 |
| 103 | export DISK_PARTITION1=0 |
| 104 | |
subrata_modak | b9cff9e | 2008-12-31 04:39:57 +0000 | [diff] [blame] | 105 | ## Set this to 1 if you wish to run the EXPORTFS tests |
| 106 | # DESCRIPTION : A script that will test exportfs on Linux system. |
| 107 | # REQUIREMENTS: |
| 108 | # 1) NFS Server system with rsh enabled between client & server. |
| 109 | # 2) 100MB Disk partition on NFS server. |
| 110 | export RUN_EXPORTFS_TESTS=0 |
| 111 | export NFS_SERVER1=xxx |
| 112 | export NFS_SERVER_DISK_PARTITION1=yyy |
| 113 | export NFS_SERVER_FS_TYPE1=zzz |
| 114 | |
subrata_modak | 8720d02 | 2008-12-31 04:40:31 +0000 | [diff] [blame] | 115 | |
| 116 | ## Set this to 1 if you wish to run the FS tests on READ ONLY File Systems. Refer to http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testscripts/Readme_ROBind for more info |
| 117 | export RUN_RO_ONLY_FS_TESTS=0 |
| 118 | export READ_ONLY_DIRECTORY1=xxxx |
| 119 | |
subrata_modak | 8a70e70 | 2008-12-31 04:41:04 +0000 | [diff] [blame] | 120 | ## Set this to 1 if you wish to run the ISOFS tests |
| 121 | # REQUIREMENTS: |
| 122 | # Must have root access to execute this script |
| 123 | export RUN_ISOFS_TESTS=0 |
| 124 | |
subrata_modak | 46817bf | 2008-12-31 04:41:41 +0000 | [diff] [blame] | 125 | ## Set this to 1 if you wish to run the DMMAPPER tests |
| 126 | #Note: In order to run this test, you must turn on "device mapper" |
| 127 | # component in kernel (it is under device drivers item when you |
| 128 | # run make menuconfig); and you must install userspace supporting |
| 129 | # files (libdevmapper and dmsetup). They are in the device-mapper |
| 130 | # package. You can download it from http://www.sistina.com. Follow |
| 131 | # the README/INSTALL file within the package to install it. |
| 132 | export RUN_DMMAPPER_TESTS=0 |
| 133 | export DISK_PARTITION2=xxxxx |
| 134 | export DISK_PARTITION3=yyyyy |
| 135 | |
subrata_modak | 5fb342d | 2008-12-31 04:42:19 +0000 | [diff] [blame] | 136 | ## Set this to 1 if you wish to run the FSLVM tests |
| 137 | #Note: fdisk needs to be run and the 4 HD partitions marked as 0x8e -- Linux LVM |
| 138 | # - If this is run on a 2.4 kernel system then LVM must be configured and the kernel rebuilt. In a 2.5 environment |
| 139 | # you must configure Device Mapper and install LVM2 from www.systina.com for the testcase to run correctly. |
| 140 | # - These operations are destructive so do NOT point the tests to partitions where the data shouldn't be overwritten. |
| 141 | # Once these tests are started all data in the partitions you point to will be destroyed. |
| 142 | export RUN_FSLVM_TESTS=0 |
| 143 | export DISK_PARTITION4=xxxxxx |
| 144 | export DISK_PARTITION5=yyyyyy |
| 145 | export DISK_PARTITION6=zzzzzz |
| 146 | export DISK_PARTITION7=iiiiii |
| 147 | export NFS_PARTITION1=jjjjjj |
| 148 | |
subrata_modak | 22d9e0b | 2008-12-31 04:43:00 +0000 | [diff] [blame] | 149 | ## Set this to 1 if you wish to run the FSNOLVM tests |
| 150 | #Note: fdisk needs to be run and the 4 HD partitions marked as 0x8e -- Linux LVM |
| 151 | # - If this is run on a 2.4 kernel system then LVM must be configured and the kernel rebuilt. In a 2.5 environment |
| 152 | # you must configure Device Mapper and install LVM2 from www.systina.com for the testcase to run correctly. |
| 153 | # - These operations are destructive so do NOT point the tests to partitions where the data shouldn't be overwritten. |
| 154 | # Once these tests are started all data in the partitions you point to will be destroyed. |
| 155 | export RUN_FSNOLVM_TESTS=0 |
| 156 | |
subrata_modak | 4979882 | 2008-12-31 04:43:31 +0000 | [diff] [blame] | 157 | ## Set this to 1 if you wish to run the LTP SCSI DEBUG tests |
| 158 | #Note: Build scsi_debug as a module first before running the test |
| 159 | export RUN_LTP_SCSI_DEBUG_TEST=0 |
| 160 | |
subrata_modak | 85bf15f | 2008-12-31 04:44:04 +0000 | [diff] [blame] | 161 | ## Set this to 1 if you wish to run the LTP SYSFS tests |
| 162 | #Note: Must have root access to execute this script. |
| 163 | # USAGE : sysfs.sh [ -k <kernel_module> ] |
| 164 | # DESCRIPTION : A script that will test sysfs on Linux system. |
| 165 | # REQUIREMENTS: CONFIG_DUMMY must have been used to build kernel, and the |
| 166 | # dummy network module must exist. |
| 167 | export RUN_LTP_SYSFS_TEST=0 |
| 168 | export KERNEL_MODULE1=xxxxxxx |
| 169 | |
subrata_modak | cbabba4 | 2008-12-31 04:45:13 +0000 | [diff] [blame] | 170 | ## Set this to 1 if you wish to run the LTP TIRPC tests |
| 171 | export RUN_LTP_TIRPC_TEST=0 |
| 172 | |
subrata_modak | f1e6f34 | 2009-01-27 13:54:49 +0000 | [diff] [blame] | 173 | ##Set this to 1 if you wish to run the dma_thread_diotest7 test |
| 174 | export RUN_DMA_THREAD_DIOTEST7=0 |
| 175 | |
subrata_modak | 9ef22d6 | 2009-03-02 15:38:49 +0000 | [diff] [blame] | 176 | ##Set this to 1 if you wish to run the Controller area network (CAN) |
| 177 | ##protocol support tests. You would also like to review the Kernel |
| 178 | ##config options need to be set for this at ltp/README |
| 179 | export RUN_CONTROLLER_AREA_NETWORK_TESTS=0 |
| 180 | |
subrata_modak | 6c7dfab | 2009-03-19 07:27:04 +0000 | [diff] [blame] | 181 | ##Set this to 1 if you wish to run the SMACK Security tests |
| 182 | ## Remember that you cannot run both the SELINUX and SMACK tests at a time, |
| 183 | ## as both of them cannot be tested in the same running kernel |
| 184 | export RUN_SMACK_SECURITY_TESTS=0 |
| 185 | |
subrata_modak | d179151 | 2009-04-02 06:46:36 +0000 | [diff] [blame] | 186 | ##Set this to 1 if you wish to run the Basic PERFORMANCE COUNTER tests |
| 187 | export RUN_PERFORMANCE_COUNTERS_TESTS=0 |
| 188 | |
yaberauneya | c869a5d | 2009-11-12 20:55:25 +0000 | [diff] [blame] | 189 | export LTP_VERSION=`"${RUNLTP}" -e` |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 190 | export TEST_START_TIME=`date +"%Y_%b_%d-%Hh_%Mm_%Ss"` |
| 191 | export HARDWARE_TYPE=$(uname -i) |
| 192 | export HOSTNAME=$(uname -n) |
| 193 | export KERNEL_VERSION=$(uname -r) |
subrata_modak | 5fb342d | 2008-12-31 04:42:19 +0000 | [diff] [blame] | 194 | export HTML_OUTPUT_FILE_NAME=$LTP_VERSION_$HOSTNAME_$KERNEL_VERSION_$HARDWARE_TYPE_$TEST_START_TIME.html |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 195 | |
yaberauneya | 5bdf3b2 | 2009-11-12 20:57:26 +0000 | [diff] [blame] | 196 | if ! cd "${LTPROOT}"; then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 197 | rc=$? |
| 198 | echo "${0##*/}: ERROR : Could not cd to ${LTPROOT}" |
| 199 | exit $rc |
yaberauneya | 5bdf3b2 | 2009-11-12 20:57:26 +0000 | [diff] [blame] | 200 | fi |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 201 | |
| 202 | ## The First one i plan to run is the default LTP run ## |
| 203 | ## START => Test Series 1 ## |
subrata_modak | 6d56107 | 2009-07-08 17:53:47 +0000 | [diff] [blame] | 204 | echo "Running Default LTP..." |
yaberauneya | c869a5d | 2009-11-12 20:55:25 +0000 | [diff] [blame] | 205 | "${RUNLTP}" -g $HTML_OUTPUT_FILE_NAME |
subrata_modak | 6d56107 | 2009-07-08 17:53:47 +0000 | [diff] [blame] | 206 | printf "Completed running Default LTP\n\n\n" |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 207 | ## END => Test Series 1 ## |
| 208 | |
| 209 | ## The next one i plan to run is ballista ## |
| 210 | ## START => Test Series 2 ## |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 211 | if [ $RUN_BALLISTA -eq 1 ] |
| 212 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 213 | echo "Running Ballista..." |
| 214 | export TEST_START_TIME=`date +"%Y_%b_%d-%Hh_%Mm_%Ss"` |
| 215 | "${RUNLTP}" -f ballista -o $LTP_VERSION-BALLISTA_RUN_ON-$HOSTNAME-$KERNEL_VERSION-$HARDWARE_TYPE-$TEST_START_TIME.out |
| 216 | printf "Completed running Ballista\n\n\n" |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 217 | fi |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 218 | ## END => Test Series 2 ## |
| 219 | |
| 220 | ## The next one i plan to run is open_posix_testsuite ## |
| 221 | ## START => Test Series 3 ## |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 222 | if [ $RUN_OPENPOSIX -eq 1 ] |
| 223 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 224 | echo "Running Open Posix Tests..." |
| 225 | (cd testcases/open_posix_testsuite; make) |
| 226 | printf "Completed running Open Posix Tests\n\n\n" |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 227 | fi |
subrata_modak | 4922de5 | 2008-09-22 10:20:03 +0000 | [diff] [blame] | 228 | ## END => Test Series 3 ## |
| 229 | |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 230 | |
| 231 | ## The next one i plan to run is ## |
| 232 | ## ltp/testcases/kernel/mem/libmm/mm_core_apis ## |
| 233 | ## START => Test Series 4 ## |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 234 | if [ $RUN_MM_CORE_APIS -eq 1 ] |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 235 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 236 | echo "Initializing ltp/testcases/kernel/mem/libmm/mm_core_apis ..." |
| 237 | # Check to see if User is Root |
| 238 | if [ $(id -ru) -ne 0 ] |
| 239 | then |
| 240 | echo -n "You need to be root to Install libmm and run " |
| 241 | echo -n "mem/libmm/mm_core_apis; aborting " |
| 242 | echo "ltp/testcases/kernel/mem/libmm/mm_core_apis" |
| 243 | else |
| 244 | if [ $LIBMM_INSTALLED -ne 1 ] |
| 245 | then |
| 246 | echo Installing libmm-1.4.2 ............. |
| 247 | (cd /tmp; |
| 248 | wget -c ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz; |
| 249 | tar -xzf mm-1.4.2.tar.gz; |
| 250 | cd mm-1.4.2; |
| 251 | ./configure && make all install) |
| 252 | rm -rf /tmp/mm-1.4.2* |
| 253 | echo "libmm-1.4.2 Installed ............." |
| 254 | else |
| 255 | echo "libmm-1.4.2 already installed in your system" |
| 256 | fi |
| 257 | echo -n "Running " |
| 258 | echo "ltp/testcases/kernel/mem/libmm/mm_core_apis ..." |
| 259 | (make -C testcases/kernel/mem/libmm all install; |
| 260 | $LTPROOT/testcases/bin/mm_core_apis; ) |
| 261 | fi |
| 262 | printf "Completed running ltp/testcases/kernel/mem/libmm/mm_core_apis...\n\n\n" |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 263 | fi |
subrata_modak | fa2f082 | 2008-10-30 06:32:03 +0000 | [diff] [blame] | 264 | ## END => Test Series 4 ## |
| 265 | |
subrata_modak | 6c4981e | 2008-10-30 09:42:34 +0000 | [diff] [blame] | 266 | |
| 267 | ## The next one i plan to run is ## |
| 268 | ## ltp/testcases/kernel/io/aio ## |
| 269 | ## START => Test Series 5 ## |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 270 | if [ $RUN_AIOTESTS -eq 1 ] |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 271 | then |
| 272 | echo "Initializing ltp/testcases/kernel/io/aio ..." |
| 273 | # Check to see if User is Root |
| 274 | if [ $(id -ru) -ne 0 ] |
| 275 | then |
| 276 | echo -n "You need to be root to Install libaio-0.3.92 and run" |
| 277 | echo -n "ltp/testcases/kernel/io/aio; aborting " |
| 278 | echo "ltp/testcases/kernel/io/aio" |
| 279 | else |
| 280 | if [ $LIBAIO_INSTALLED -ne 1 ] |
| 281 | then |
| 282 | echo "Installing libaio-0.3.92............." |
| 283 | (cd /tmp; |
| 284 | wget -c http://www.kernel.org/pub/linux/kernel/people/bcrl/aio/libaio-0.3.92.tar.gz; |
| 285 | tar -xzf libaio-0.3.92.tar.gz; |
| 286 | make -C libaio-0.3.92 all install) |
| 287 | rm -rf /tmp/libaio-0.3.92* |
| 288 | echo "libaio-0.3.92 Installed ............." |
| 289 | else |
| 290 | echo "libaio-0.3.92 already installed in your system" |
| 291 | fi |
| 292 | # XXX (garrcoop): this needs to be fixed so that it's callable |
| 293 | # via standalone runltp in a standard installed tree. |
| 294 | echo "Building & Running ltp/testcases/kernel/io/aio..." |
| 295 | (make -C testcases/kernel/io/aio all; |
| 296 | ./aio01/aio01; |
| 297 | ./aio02/runfstests.sh -a aio02/cases/aio_tio; |
| 298 | make clean 1>&2 > /dev/null ) |
| 299 | printf "Completed running ltp/testcases/kernel/io/aio...\n\n\n" |
| 300 | fi |
subrata_modak | 6c4981e | 2008-10-30 09:42:34 +0000 | [diff] [blame] | 301 | fi |
| 302 | ## END => Test Series 5 ## |
| 303 | |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 304 | ## The next one i plan to run is ## |
| 305 | ## ltp/testcases/kernel/security/filecaps ## |
| 306 | ## START => Test Series 6 ## |
| 307 | if [ $RUN_FILECAPS -eq 1 ] |
| 308 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 309 | echo "Initializing ltp/testcases/kernel/security/filecaps ..." |
| 310 | # Check to see if User is Root |
| 311 | if [ $(id -ru) -ne 0 ] |
| 312 | then |
| 313 | echo -n "You need to be root to Install libcaps and run " |
| 314 | echo -n "ltp/testcases/kernel/security/filecaps; aborting " |
| 315 | echo "ltp/testcases/kernel/security/filecaps" |
| 316 | else |
| 317 | if [ $LIBCAPS_INSTALLED -ne 1 ] |
| 318 | then |
| 319 | echo "Installing libcaps............." |
| 320 | (cd /tmp; |
| 321 | wget -c ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.14.tar.gz; |
| 322 | tar -xzf libcap-2.14.tar.gz; |
| 323 | make -C libcap-2.14 all install) |
| 324 | rm -rf /tmp/libcap-2.14* |
| 325 | echo "libcaps Installed ............." |
| 326 | else |
| 327 | echo "libcaps already installed in your system" |
| 328 | fi |
| 329 | echo -n "Building & Running " |
| 330 | echo "ltp/testcases/kernel/security/filecaps" |
| 331 | make -C ltp/testcases/kernel/security/filecaps all install |
| 332 | "${RUNLTP}" -f filecaps |
| 333 | printf "Completed running ltp/testcases/kernel/io/aio...\n\n\n" |
| 334 | |
| 335 | fi |
| 336 | |
subrata_modak | a9e5228 | 2008-11-07 08:54:25 +0000 | [diff] [blame] | 337 | fi |
| 338 | ## END => Test Series 6 ## |
subrata_modak | 89aaf8c | 2008-11-13 10:06:36 +0000 | [diff] [blame] | 339 | |
| 340 | |
| 341 | ## The next one i plan to run is tpm_tools ## |
| 342 | ## START => Test Series 7 ## |
yaberauneya | c869a5d | 2009-11-12 20:55:25 +0000 | [diff] [blame] | 343 | "${RUNLTP}" -f tpm_tools |
subrata_modak | 89aaf8c | 2008-11-13 10:06:36 +0000 | [diff] [blame] | 344 | ## END => Test Series 7 ## |
subrata_modak | 86785aa | 2008-12-19 08:52:39 +0000 | [diff] [blame] | 345 | |
| 346 | ## The next one i plan to run is tcore_patch_test_suites |
| 347 | ## START => Test Series 8 ## |
yaberauneya | c869a5d | 2009-11-12 20:55:25 +0000 | [diff] [blame] | 348 | "${RUNLTP}" -f tcore |
subrata_modak | 86785aa | 2008-12-19 08:52:39 +0000 | [diff] [blame] | 349 | ## END => Test Series 8 ## |
subrata_modak | 5975351 | 2008-12-29 11:00:00 +0000 | [diff] [blame] | 350 | |
| 351 | |
| 352 | ## The next one i plan to run is stress_cd tests |
| 353 | ## START => Test Series 9 ## |
| 354 | if [ $RUN_STRESS_CD -eq 1 ] |
| 355 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 356 | "${RUNLTP}" -f io_cd |
subrata_modak | 5975351 | 2008-12-29 11:00:00 +0000 | [diff] [blame] | 357 | fi |
| 358 | ## END => Test Series 9 ## |
| 359 | |
| 360 | ## The next one i plan to run is stress_floppy tests |
| 361 | ## START => Test Series 10 ## |
| 362 | if [ $RUN_STRESS_FLOPPY -eq 1 ] |
| 363 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 364 | "${RUNLTP}" -f io_floppy |
subrata_modak | 5975351 | 2008-12-29 11:00:00 +0000 | [diff] [blame] | 365 | fi |
| 366 | ## END => Test Series 10 ## |
| 367 | |
subrata_modak | 6111aa8 | 2008-12-29 11:04:15 +0000 | [diff] [blame] | 368 | ## The next one i plan to run is CPUHOTPLUG tests |
| 369 | ## START => Test Series 11 ## |
| 370 | if [ $RUN_CPU_HOTPLUG -eq 1 ] |
| 371 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 372 | "${RUNLTP}" -f cpuhotplug |
subrata_modak | 6111aa8 | 2008-12-29 11:04:15 +0000 | [diff] [blame] | 373 | fi |
| 374 | ## END => Test Series 11 ## |
| 375 | |
subrata_modak | 773c40c | 2008-12-31 04:36:19 +0000 | [diff] [blame] | 376 | ## The next one i plan to run are the LTP Network tests |
| 377 | ## START => Test Series 12 ## |
| 378 | if [ $RUN_LTP_NETWORK_TESTS -eq 1 ] |
| 379 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 380 | (cd $LTPROOT/testscripts/; ./networktests.sh) |
subrata_modak | 773c40c | 2008-12-31 04:36:19 +0000 | [diff] [blame] | 381 | fi |
| 382 | ## END => Test Series 12 ## |
| 383 | |
subrata_modak | 32b726f | 2008-12-31 04:37:33 +0000 | [diff] [blame] | 384 | ## The next one i plan to run are the LTP Network Stress tests |
| 385 | ## START => Test Series 13 ## |
| 386 | if [ $RUN_LTP_NETWORK_STRESS_TESTS -eq 1 ] |
| 387 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 388 | (cd $LTPROOT/testscripts/; ./networkstress.sh) |
subrata_modak | 32b726f | 2008-12-31 04:37:33 +0000 | [diff] [blame] | 389 | fi |
| 390 | ## END => Test Series 13 ## |
subrata_modak | 773c40c | 2008-12-31 04:36:19 +0000 | [diff] [blame] | 391 | |
subrata_modak | eebedc2 | 2008-12-31 04:38:13 +0000 | [diff] [blame] | 392 | |
| 393 | ## The next one i plan to run are the LTP ADP tests |
| 394 | ## START => Test Series 14 ## |
| 395 | if [ $RUN_LTP_ADP_TESTS -eq 1 ] |
| 396 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 397 | (cd $LTPROOT/testscripts/; ./adp.sh -d 3 -n 100) |
subrata_modak | eebedc2 | 2008-12-31 04:38:13 +0000 | [diff] [blame] | 398 | fi |
| 399 | ## END => Test Series 14 ## |
subrata_modak | 8910324 | 2008-12-31 04:38:53 +0000 | [diff] [blame] | 400 | |
| 401 | |
| 402 | ## The next one i plan to run are the LTP AUTOFS tests |
| 403 | ## START => Test Series 15 ## |
| 404 | if [ $RUN_LTP_AUTOFS1_TESTS -eq 1 ] |
| 405 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 406 | if [ $DISK_PARTITION1 ] |
| 407 | then |
| 408 | (cd $LTPROOT/testscripts/; ./autofs1.sh $DISK_PARTITION1) |
| 409 | else |
| 410 | echo "Disk Partition not set. Aborting running AUTOFS1" |
| 411 | fi |
subrata_modak | 8910324 | 2008-12-31 04:38:53 +0000 | [diff] [blame] | 412 | fi |
| 413 | if [ $RUN_LTP_AUTOFS4_TESTS -eq 1 ] |
| 414 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 415 | if [ $DISK_PARTITION1 ] |
| 416 | then |
| 417 | (cd $LTPROOT/testscripts/; ./autofs4.sh $DISK_PARTITION1) |
| 418 | else |
| 419 | echo "Disk Partition not set. Aborting running AUTOFS4" |
| 420 | fi |
subrata_modak | 8910324 | 2008-12-31 04:38:53 +0000 | [diff] [blame] | 421 | fi |
| 422 | ## END => Test Series 15 ## |
subrata_modak | b9cff9e | 2008-12-31 04:39:57 +0000 | [diff] [blame] | 423 | |
| 424 | |
| 425 | ## The next one i plan to run are the LTP EXPORTFS tests |
| 426 | ## START => Test Series 16 ## |
| 427 | if [ $RUN_EXPORTFS_TESTS -eq 1 ] |
| 428 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 429 | (cd $LTPROOT/testscripts/; ./exportfs.sh -h $NFS_SERVER1 -d $NFS_SERVER_DISK_PARTITION1 -t $NFS_SERVER_FS_TYPE1) |
subrata_modak | b9cff9e | 2008-12-31 04:39:57 +0000 | [diff] [blame] | 430 | fi |
| 431 | ## END => Test Series 16 ## |
subrata_modak | 8720d02 | 2008-12-31 04:40:31 +0000 | [diff] [blame] | 432 | |
| 433 | |
| 434 | ## The next one i plan to run the FS tests on READ ONLY File Systems |
| 435 | ## START => Test Series 17 ## |
| 436 | if [ $RUN_RO_ONLY_FS_TESTS -eq 1 ] |
| 437 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 438 | (cd $READ_ONLY_DIRECTORY1; $LTPROOT/testscripts/test_robind.sh) |
subrata_modak | 8720d02 | 2008-12-31 04:40:31 +0000 | [diff] [blame] | 439 | fi |
| 440 | ## END => Test Series 17 ## |
| 441 | |
| 442 | |
subrata_modak | 8a70e70 | 2008-12-31 04:41:04 +0000 | [diff] [blame] | 443 | ## The next one i plan to run the ISOFS tests |
| 444 | ## START => Test Series 18 ## |
| 445 | if [ $RUN_ISOFS_TESTS -eq 1 ] |
| 446 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 447 | (cd $LTPROOT/testscripts/; ./isofs.sh) |
subrata_modak | 8a70e70 | 2008-12-31 04:41:04 +0000 | [diff] [blame] | 448 | fi |
| 449 | ## END => Test Series 18 ## |
| 450 | |
| 451 | |
subrata_modak | 46817bf | 2008-12-31 04:41:41 +0000 | [diff] [blame] | 452 | ## The next one i plan to run the DMMAPPER tests |
| 453 | ## START => Test Series 19 ## |
| 454 | if [ $RUN_DMMAPPER_TESTS -eq 1 ] |
| 455 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 456 | (cd $LTPROOT/testscripts/; ./ltpdmmapper.sh -a $DISK_PARTITION2 -b $DISK_PARTITION3) |
subrata_modak | 46817bf | 2008-12-31 04:41:41 +0000 | [diff] [blame] | 457 | fi |
| 458 | ## END => Test Series 19 ## |
| 459 | |
| 460 | |
subrata_modak | 5fb342d | 2008-12-31 04:42:19 +0000 | [diff] [blame] | 461 | ## The next one i plan to run the FSLVM tests |
| 462 | ## START => Test Series 20 ## |
| 463 | if [ $RUN_FSLVM_TESTS -eq 1 ] |
| 464 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 465 | (cd $LTPROOT/testscripts/; ./ltpfslvm.sh -a $DISK_PARTITION4 -b $DISK_PARTITION5 -c $DISK_PARTITION6 -d $DISK_PARTITION7 -n $NFS_PARTITION1) |
subrata_modak | 5fb342d | 2008-12-31 04:42:19 +0000 | [diff] [blame] | 466 | fi |
| 467 | ## END => Test Series 20 ## |
| 468 | |
subrata_modak | 46817bf | 2008-12-31 04:41:41 +0000 | [diff] [blame] | 469 | |
subrata_modak | 22d9e0b | 2008-12-31 04:43:00 +0000 | [diff] [blame] | 470 | ## The next one i plan to run the FSNOLVM tests |
| 471 | ## START => Test Series 21 ## |
| 472 | if [ $RUN_FSNOLVM_TESTS -eq 1 ] |
| 473 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 474 | (cd $LTPROOT/testscripts/; ./ltpfsnolvm.sh -a $DISK_PARTITION4 -b $DISK_PARTITION5 -c $DISK_PARTITION6 -d $DISK_PARTITION7 -n $NFS_PARTITION1) |
subrata_modak | 22d9e0b | 2008-12-31 04:43:00 +0000 | [diff] [blame] | 475 | fi |
| 476 | ## END => Test Series 21 ## |
| 477 | |
subrata_modak | 4979882 | 2008-12-31 04:43:31 +0000 | [diff] [blame] | 478 | ## The next one i plan to run the LTP SCSI DEBUG tests |
| 479 | ## START => Test Series 22 ## |
| 480 | if [ $RUN_LTP_SCSI_DEBUG_TEST -eq 1 ] |
| 481 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 482 | (cd $LTPROOT/testscripts/; ./ltp-scsi_debug.sh) |
subrata_modak | 4979882 | 2008-12-31 04:43:31 +0000 | [diff] [blame] | 483 | fi |
| 484 | ## END => Test Series 22 ## |
| 485 | |
subrata_modak | 85bf15f | 2008-12-31 04:44:04 +0000 | [diff] [blame] | 486 | ## The next one i plan to run the LTP SYSFS tests |
| 487 | ## START => Test Series 23 ## |
| 488 | if [ $RUN_LTP_SYSFS_TEST -eq 1 ] |
| 489 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 490 | (cd $LTPROOT/testscripts/; ./sysfs.sh -k $KERNEL_MODULE1) |
subrata_modak | 85bf15f | 2008-12-31 04:44:04 +0000 | [diff] [blame] | 491 | fi |
| 492 | ## END => Test Series 23 ## |
| 493 | |
subrata_modak | cbabba4 | 2008-12-31 04:45:13 +0000 | [diff] [blame] | 494 | ## The next one i plan to run the LTP TIRPC tests |
| 495 | ## START => Test Series 24 ## |
| 496 | if [ $RUN_LTP_TIRPC_TEST -eq 1 ] |
| 497 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 498 | "${RUNLTP}" -f rpctirpc |
subrata_modak | cbabba4 | 2008-12-31 04:45:13 +0000 | [diff] [blame] | 499 | fi |
| 500 | ## END => Test Series 24 ## |
| 501 | |
subrata_modak | f1e6f34 | 2009-01-27 13:54:49 +0000 | [diff] [blame] | 502 | ## The next one i plan to run the DMA_THREAD_DIOTEST7 tests |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 503 | ## START => Test Series 25 ## |
subrata_modak | f1e6f34 | 2009-01-27 13:54:49 +0000 | [diff] [blame] | 504 | if [ $RUN_DMA_THREAD_DIOTEST7 -eq 1 ] |
| 505 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 506 | "${RUNLTP}" -f test_dma_thread_diotest7 |
subrata_modak | f1e6f34 | 2009-01-27 13:54:49 +0000 | [diff] [blame] | 507 | fi |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 508 | ## END => Test Series 25 ## |
subrata_modak | 9ef22d6 | 2009-03-02 15:38:49 +0000 | [diff] [blame] | 509 | |
| 510 | ## The next one i plan to run the Controller area network |
| 511 | ## (CAN) protocol support tests |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 512 | ## START => Test Series 26 ## |
subrata_modak | 9ef22d6 | 2009-03-02 15:38:49 +0000 | [diff] [blame] | 513 | if [ $RUN_CONTROLLER_AREA_NETWORK_TESTS -eq 1 ] |
| 514 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 515 | "${RUNLTP}" -f can |
subrata_modak | 9ef22d6 | 2009-03-02 15:38:49 +0000 | [diff] [blame] | 516 | fi |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 517 | ## END => Test Series 26 ## |
subrata_modak | 6c7dfab | 2009-03-19 07:27:04 +0000 | [diff] [blame] | 518 | |
| 519 | ## The next one i plan to run the SMACK SECURITY tests |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 520 | ## START => Test Series 27 ## |
subrata_modak | 6c7dfab | 2009-03-19 07:27:04 +0000 | [diff] [blame] | 521 | if [ $RUN_SMACK_SECURITY_TESTS -eq 1 ] |
| 522 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 523 | "${RUNLTP}" -f smack |
subrata_modak | 6c7dfab | 2009-03-19 07:27:04 +0000 | [diff] [blame] | 524 | fi |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 525 | ## END => Test Series 27 ## |
subrata_modak | 6c7dfab | 2009-03-19 07:27:04 +0000 | [diff] [blame] | 526 | |
subrata_modak | d179151 | 2009-04-02 06:46:36 +0000 | [diff] [blame] | 527 | ## The next one i plan to run the PERFORMANCE COUNTERS tests |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 528 | ## START => Test Series 28 ## |
subrata_modak | d179151 | 2009-04-02 06:46:36 +0000 | [diff] [blame] | 529 | if [ $RUN_PERFORMANCE_COUNTERS_TESTS -eq 1 ] |
| 530 | then |
Garrett Cooper | ede8524 | 2010-02-27 12:12:19 -0800 | [diff] [blame] | 531 | "${RUNLTP}" -f perfcounters |
subrata_modak | d179151 | 2009-04-02 06:46:36 +0000 | [diff] [blame] | 532 | fi |
Garrett Cooper | ab2bc5e | 2011-05-23 12:29:23 -0700 | [diff] [blame] | 533 | ## END => Test Series 28 ## |
subrata_modak | d179151 | 2009-04-02 06:46:36 +0000 | [diff] [blame] | 534 | |
| 535 | |