[Ocfstest-commits] colinzhu commits r20 - trunk/ocfs2test/src/TestSuites/ocfs2test/tset

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Apr 12 04:18:21 CDT 2005


Author: colinzhu
Date: 2005-04-12 04:18:19 -0500 (Tue, 12 Apr 2005)
New Revision: 20

Added:
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/config.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/runtest.sh
Modified:
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh
Log:
Adding some test control commands



Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/config.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/config.sh	2005-04-12 08:55:32 UTC (rev 19)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/config.sh	2005-04-12 09:18:19 UTC (rev 20)
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Setup for OCFSv2 Test Plan
+#
+# setup.sh
+#
+# Central command to make the tests inside this framework which finishes all the setup.
+#
+# Pre-condition: 
+#
+# TODO: 
+#
+
+cd tpsinglebasic
+make
+cd ..
+cd tpsingleltp
+make
+make install
+cd ..
+echo
+echo ">===============================Make for source finished!============================<"
+echo
+echo ">===========================Below is the environment settings========================<"
+echo
+echo "Modify testenv.sh to let it fit your environment"
+echo
+echo "############################Contents:#################################################"
+cat testenv.sh
+echo "############################Contents:#################################################"
+echo
+echo "After you modify the testenv.sh, setup finishes!"


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/config.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/runtest.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/runtest.sh	2005-04-12 08:55:32 UTC (rev 19)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/runtest.sh	2005-04-12 09:18:19 UTC (rev 20)
@@ -0,0 +1,38 @@
+#!/bin/bash
+#
+# Setup for OCFSv2 Test Plan
+#
+# setup.sh
+#
+# Central command to make the tests inside this framework which finishes all the setup.
+#
+# Pre-condition: 
+#
+# TODO: 
+#
+
+. ./testenv.sh
+
+echo
+echo ">===============================Single Basic Cases Starts!============================<"
+echo
+
+cd tpsinglebasic
+. ./testrun.sh
+cd ..
+
+echo
+echo ">===============================Single LTP Cases Starts!============================<"
+echo
+
+$LOAD_OCFS2_CMD 
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT 
+
+cp -R tpsingleltp $OCFS2_MOUNT_POINT
+cd $OCFS2_MOUNT_POINT/tpsingleltp
+
+cd -
+rm -Rf $OCFS2_MOUNT_POINT/tpsingleltp
+
+$UNLOAD_OCFS2_CMD
+


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/runtest.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh	2005-04-12 08:55:32 UTC (rev 19)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh	2005-04-12 09:18:19 UTC (rev 20)
@@ -9,12 +9,15 @@
 #
 # TODO : Maybe add judgement of root here?
 
-export LOAD_OCFS2_CMD='load_ocfs2'
-export UNLOAD_OCFS2_CMD='rmmod ocfs2'
+export LOAD_OCFS2_CMD='/etc/init.d/o2cb start'
+export UNLOAD_OCFS2_CMD='/etc/init.d/o2cb stop'
 
-export OCFS2_DEVICE='/dev/sdi1'
+export OCFS2_DEVICE='/dev/cciss/c0d0p6'
 export MKFS_OCFS2_CMD='mkfs.ocfs2'
+export MKFS_EXT2_CMD='mkfs.ext2'
 
 export OCFS2_MOUNT_POINT='/ocfs2'
 
 export FSCK_OCFS2_CMD='fsck.ocfs2'
+
+export WORK_DIR=`pwd`



More information about the Ocfstest-commits mailing list