Imported Upstream version 20080930
[ltp-debian.git] / runalltests.sh
blob2800beb8b4f1126628f1ebcc6592cf822889a850
1 #!/bin/sh
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 ################################################################################
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 ################################################################################
32 echo "*******************************************************************"
33 echo "*******************************************************************"
34 echo "** **"
35 echo -e "** This script is being re-written to cover all aspects of **"
36 echo -e "** testing LTP, which includes running all those tests which **"
37 echo -e "** are not run by default with ./runltp script. Special setup **"
38 echo -e "** in system environment will be done to run all those tests **"
39 echo -e "** like the File System tests, SELinuxtest, etc **"
40 echo "** **"
41 echo "*******************************************************************"
42 echo "*******************************************************************"
44 export LTP_VERSION=`./runltp -e`
45 export TEST_START_TIME=`date +"%Y_%b_%d-%Hh_%Mm_%Ss"`
46 export HARDWARE_TYPE=$(uname -i)
47 export HOSTNAME=$(uname -n)
48 export KERNEL_VERSION=$(uname -r)
49 export HTML_OUTPUT_FILE_NAME=$LTP_VERSION-$HOSTNAME-$KERNEL_VERSION-$HARDWARE_TYPE-$TEST_START_TIME.html
52 ## The First one i plan to run is the default LTP run ##
53 ## START => Test Series 1 ##
54 echo -e "Running Default LTP..."
55 ./runltp -g $HTML_OUTPUT_FILE_NAME
56 echo -e "Completed running Default LTP\n\n"
57 ## END => Test Series 1 ##
59 ## The next one i plan to run is ballista ##
60 ## START => Test Series 2 ##
61 echo -e "Running Ballista..."
62 export TEST_START_TIME=`date +"%Y_%b_%d-%Hh_%Mm_%Ss"`
63 ./runltp -f ballista -o $LTP_VERSION-BALLISTA_RUN_ON-$HOSTNAME-$KERNEL_VERSION-$HARDWARE_TYPE-$TEST_START_TIME.out
64 echo -e "Completed running Ballista\n\n"
65 ## END => Test Series 2 ##
67 ## The next one i plan to run is open_posix_testsuite ##
68 ## START => Test Series 3 ##
69 echo -e "Running Open Posix Tests..."
70 (cd testcases/open_posix_testsuite; make)
71 echo -e "Completed running Open Posix Tests\n\n"
72 ## END => Test Series 3 ##