[Ocfstest-commits] colinzhu commits r15 - in trunk/ocfs2test/src/TestSuites/ocfs2test/tset: . tpmultibinode

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Mar 22 23:13:25 CST 2005


Author: colinzhu
Date: 2005-03-22 23:13:23 -0600 (Tue, 22 Mar 2005)
New Revision: 15

Added:
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_1.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_2.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_1.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_2.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_1.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_2.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_1.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_2.sh
Modified:
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/setup.sh
Log:
Add multinode cases



Modified: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/setup.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/setup.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/setup.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -28,7 +28,11 @@
 REMOTE=westvile1
 TESTDIR=/ocfs/testdir
 TESTFILE="/ocfs/ocfs_locktest"
+MOUNTPOINT=/ocfs
+SRCDIR=/tmp
 
+. ./testenv.sh
+
 create_testfile(){
     for (( i=0; i<100; i++))
     do

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/testenv.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Conf for OCFSv2 Test Plan
+#
+# testenv.sh
+#
+# System settings depending on special server environment should be setup here
+# All the commands here are related with ocfs2, linux generic commands are not setup here.
+#
+# TODO : Maybe add judgement of root here?
+
+export LOAD_OCFS2_CMD='load_ocfs2'
+export UNLOAD_OCFS2_CMD='rmmod ocfs2'
+
+export OCFS2_DEVICE='/dev/sdi1'
+export MKFS_OCFS2_CMD='mkfs.ocfs2'
+
+export OCFS2_MOUNT_POINT='/ocfs2'
+
+export FSCK_OCFS2_CMD='fsck.ocfs2'


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,128 @@
+#******************************************************************************
+#******************************************************************************
+#**
+#**    Simultaneous mount on multi-node   (M14) 
+#**
+#**    Copyright 2005 Oracle Corp.
+#**
+#**    This is free software released under the GNU General Public License.
+#**    There is no warranty for this software.  See the file COPYING for
+#**    details.
+#**
+#**
+#**    This file is maintained by:
+#**      Nan Zhu <colin.zhu at oracle.com>
+#**
+#*******************************************************************************
+#******************************************************************************
+#!/bin/sh 
+tet_startup="startup"			# startup function
+tet_cleanup="cleanup"			# cleanup function
+iclist="ic1"	        # list invocable components
+ic1="tp1"				# functions for ic1
+
+. ../setup.sh
+
+loop_times=1000
+
+remoteproc()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+remotedel()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR del" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+localcreate()
+{
+	err=0;
+	if [ ! -d $TESTDIR ];then
+		mkdir $TESTDIR
+	fi
+
+	for((i = 0; i < ${loop_times}; i++))
+	do
+		touch $TESTDIR/FILE1-$i
+		err=`expr $err + $?`
+	done
+	return $err
+}
+
+localdel()
+{
+	for file in $TESTDIR/FILE1-*
+	do
+		rm -f $file
+		err=`expr $err + $?`
+		if [ $err -ne 0 ];then
+			echo "rm $file error!"
+			return $err
+		fi
+	done
+	return $err
+}
+
+localls()
+{ 
+	ls $TESTDIR
+	return $?
+}
+
+remotels()
+{
+    remoterun "ls $TESTDIR"
+    return $?
+}
+
+tp1()
+{
+	tvs_test_purpose_start "Simultaneous mount on multi-node (M14) start"
+        scp  tpmultibim14_2.sh $REMOTE:$SRCDIR
+	. ./tpmultibim14_1.sh & 
+        remoterun "$SRCDIR/tpmultibim14_2.sh &"
+	wait
+	sleep 10
+	scp $REMOTE:$SRCDIR/tpmultibim14_2.rst .
+	cat tpmultibim14_1.rst >tpmultibim14.dir
+	cat tpmultibim14_2.rst >>tpmultibim14.dir
+	diff tpmultibim14.dir tpmultibim14.std
+
+	if [ $? -eq 0 ];then	
+		tvs_test_purpose_finish PASS
+	else
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+startup() # start-up function
+{
+	if [ -z $OCFSDEV ];then
+		echo "Error: OCFSDEV not specified!"
+		exit
+	fi
+	tet_infoline "Begin ocfs2 test on different node test..."
+	setup
+	remotesetup
+}
+
+cleanup() # clean-up function
+{	
+	tet_infoline "Finish ocfs2 dir test on different node test..."
+}
+
+. ../test.config
+# Source TVS helper functions
+. $TVS_ROOT/lib/TVSFunctions.sh
+
+# execute shell test case manager - must be last line
+. $TET_ROOT/lib/xpg3sh/tcm.sh


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_1.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_1.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_1.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim14_1.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M14
+# Feature: Simultaneous mount on multi-node
+# Operations: In a 2 or more node cluster, preferable 3 or more, mount the OCFS2 partitions simultaneously.
+# Expected Results: All partitions should mount without problem on all nodes.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim14_1" >tpmultibim14_1.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim14_1.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim14_1.rst 2>&1
+
+
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim14_1.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim14_1.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_2.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_2.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim14_2.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim14_2.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M14
+# Feature: Simultaneous mount on multi-node
+# Operations: In a 2 or more node cluster, preferable 3 or more, mount the OCFS2 partitions simultaneously.
+# Expected Results: All partitions should mount without problem on all nodes.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim14_2" >tpmultibim14_2.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim14_2.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim14_2.rst 2>&1
+
+
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim14_2.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim14_2.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,125 @@
+#******************************************************************************
+#******************************************************************************
+#**
+#**    Test readdir   (M24) 
+#**
+#**    Copyright 2005 Oracle Corp.
+#**
+#**    This is free software released under the GNU General Public License.
+#**    There is no warranty for this software.  See the file COPYING for
+#**    details.
+#**
+#**
+#**    This file is maintained by:
+#**      Nan Zhu <colin.zhu at oracle.com>
+#**
+#*******************************************************************************
+#******************************************************************************
+#!/bin/sh 
+tet_startup="startup"			# startup function
+tet_cleanup="cleanup"			# cleanup function
+iclist="ic1"	        # list invocable components
+ic1="tp1"				# functions for ic1
+
+. ../setup.sh
+
+loop_times=1000
+
+remoteproc()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+remotedel()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR del" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+localcreate()
+{
+	err=0;
+	if [ ! -d $TESTDIR ];then
+		mkdir $TESTDIR
+	fi
+
+	for((i = 0; i < ${loop_times}; i++))
+	do
+		touch $TESTDIR/FILE1-$i
+		err=`expr $err + $?`
+	done
+	return $err
+}
+
+localdel()
+{
+	for file in $TESTDIR/FILE1-*
+	do
+		rm -f $file
+		err=`expr $err + $?`
+		if [ $err -ne 0 ];then
+			echo "rm $file error!"
+			return $err
+		fi
+	done
+	return $err
+}
+
+localls()
+{ 
+	ls $TESTDIR
+	return $?
+}
+
+remotels()
+{
+    remoterun "ls $TESTDIR"
+    return $?
+}
+
+tp1()
+{
+	tvs_test_purpose_start "Test readdir start"
+	mkdir $OCFS2_MOUNT_POINT/tpmultibim24 >>tpmultibim24.rst 2>&1
+        scp  tpmultibim24_2.sh $REMOTE:
+        remoterun "./tpmultibim24_2.sh"
+	. ./tpmultibim24_1.sh 
+	ls $OCFS2_MOUNT_POINT/tpmultibim24 >tpmultibim24.dir
+	diff tpmultibim24.dir tpmultibim24.std
+
+	if [ $? -eq 0 ];then	
+		tvs_test_purpose_finish PASS
+	else
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+startup() # start-up function
+{
+	if [ -z $OCFSDEV ];then
+		echo "Error: OCFSDEV not specified!"
+		exit
+	fi
+	tet_infoline "Begin ocfs2 test on different node test..."
+	setup
+	remotesetup
+}
+
+cleanup() # clean-up function
+{	
+	tet_infoline "Finish ocfs2 dir test on different node test..."
+}
+
+. ../test.config
+# Source TVS helper functions
+. $TVS_ROOT/lib/TVSFunctions.sh
+
+# execute shell test case manager - must be last line
+. $TET_ROOT/lib/xpg3sh/tcm.sh


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_1.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_1.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_1.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,39 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim24_1.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M24
+# Feature: Test readdir
+# Operations: 1.Make a directory2.From at least 2 nodes, create 400 files in the created directory.3.Immediatelly after the creation of files complete, issue an ls.
+# Expected Results: Results from the ls command should show all files created without exceptions.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+# Usage: This script is to be called by tpmultibim24.sh via local run and remote run. To make new dir in tpmultibim24.sh tp1() first
+
+. ../testenv.sh
+
+echo "tpmultibim24_1" >tpmultibim24_1.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim24_1.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim24_1.rst 2>&1
+
+# mkdir $OCFS2_MOUNT_POINT/tpmultibim24 >>tpmultibim24_1.rst 2>&1
+
+i=0 
+while [ $i != "400" ] 
+  do 
+	i=`expr $i + 1` 
+	echo $i$i$i > $OCFS2_MOUNT_POINT/tpmultibim24/tpmultibim24_1_{$i}.tmp 
+  done 
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim24_1.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim24_1.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_2.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_2.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim24_2.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim24_2.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M24
+# Feature: Test readdir
+# Operations: 1.Make a directory2.From at least 2 nodes, create 400 files in the created directory.3.Immediatelly after the creation of files complete, issue an ls.
+# Expected Results: Results from the ls command should show all files created without exceptions.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim24_2" >tpmultibim24_2.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim24_2.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim24_2.rst 2>&1
+
+i=0
+while [ $i != "400" ]
+  do
+        i=`expr $i + 1`
+        echo $i$i$i > $OCFS2_MOUNT_POINT/tpmultibim24/tpmultibim24_2_{$i}.tmp
+  done
+
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim24_2.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim24_2.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,126 @@
+#******************************************************************************
+#******************************************************************************
+#**
+#**    Move file1 over dir1   (M32) 
+#**
+#**    Copyright 2005 Oracle Corp.
+#**
+#**    This is free software released under the GNU General Public License.
+#**    There is no warranty for this software.  See the file COPYING for
+#**    details.
+#**
+#**
+#**    This file is maintained by:
+#**      Nan Zhu <colin.zhu at oracle.com>
+#**
+#*******************************************************************************
+#******************************************************************************
+#!/bin/sh 
+tet_startup="startup"			# startup function
+tet_cleanup="cleanup"			# cleanup function
+iclist="ic1"	        # list invocable components
+ic1="tp1"				# functions for ic1
+
+. ../setup.sh
+
+loop_times=1000
+
+remoteproc()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+remotedel()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR del" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+localcreate()
+{
+	err=0;
+	if [ ! -d $TESTDIR ];then
+		mkdir $TESTDIR
+	fi
+
+	for((i = 0; i < ${loop_times}; i++))
+	do
+		touch $TESTDIR/FILE1-$i
+		err=`expr $err + $?`
+	done
+	return $err
+}
+
+localdel()
+{
+	for file in $TESTDIR/FILE1-*
+	do
+		rm -f $file
+		err=`expr $err + $?`
+		if [ $err -ne 0 ];then
+			echo "rm $file error!"
+			return $err
+		fi
+	done
+	return $err
+}
+
+localls()
+{ 
+	ls $TESTDIR
+	return $?
+}
+
+remotels()
+{
+    remoterun "ls $TESTDIR"
+    return $?
+}
+
+tp1()
+{
+	tvs_test_purpose_start "Move file1 over dir1 (M32) start"
+        scp  tpmultibim32_2.sh $REMOTE:$SRCDIR
+	. ./tpmultibim32_1.sh 
+        remoterun "$SRCDIR/tpmultibim32_2.sh"
+	scp $REMOTE:$SRCDIR/tpmultibim32_2.rst .
+	cat tpmultibim32_1.rst >tpmultibim32.dir
+	cat tpmultibim32_2.rst >>tpmultibim32.dir
+	diff tpmultibim32.dir tpmultibim32.std
+
+	if [ $? -eq 0 ];then	
+		tvs_test_purpose_finish PASS
+	else
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+startup() # start-up function
+{
+	if [ -z $OCFSDEV ];then
+		echo "Error: OCFSDEV not specified!"
+		exit
+	fi
+	tet_infoline "Begin ocfs2 test on different node test..."
+	setup
+	remotesetup
+}
+
+cleanup() # clean-up function
+{	
+	tet_infoline "Finish ocfs2 dir test on different node test..."
+}
+
+. ../test.config
+# Source TVS helper functions
+. $TVS_ROOT/lib/TVSFunctions.sh
+
+# execute shell test case manager - must be last line
+. $TET_ROOT/lib/xpg3sh/tcm.sh


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_1.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_1.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_1.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim32_1.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M32
+# Feature: Move File1 over dir1
+# Operations: 5.Make an OCFS2 mountpoint the current directory.6.Create a directory dir17.on node2, create a file under the same ocfs2 mountpoint.8.Move created file over directory.
+# Expected Results: File is moved under the directory.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim32_1" >tpmultibim32_1.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim32_1.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim32_1.rst 2>&1
+
+mkdir $OCFS2_MOUNT_POINT/tpmultibim32_dir1 2>>tpmultibim32_1.rst
+
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim32_1.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim32_1.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_2.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_2.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim32_2.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim32_2.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M32
+# Feature: Move File1 over dir1
+# Operations: 5.Make an OCFS2 mountpoint the current directory.6.Create a directory dir17.on node2, create a file under the same ocfs2 mountpoint.8.Move created file over directory.
+# Expected Results: File is moved under the directory.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim32_2" >tpmultibim32_2.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim32_2.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim32_2.rst 2>&1
+
+touch  $OCFS2_MOUNT_POINT/tpmultibim32_file2 2>>tpmultibim32_2.rst
+
+mv $OCFS2_MOUNT_POINT/tpmultibim32_file2 $OCFS2_MOUNT_POINT/tpmultibim32_dir1 >>tpmultibim32_2.rst 2>&1
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim32_2.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim32_2.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,126 @@
+#******************************************************************************
+#******************************************************************************
+#**
+#**    Move dir over file   (M33) 
+#**
+#**    Copyright 2005 Oracle Corp.
+#**
+#**    This is free software released under the GNU General Public License.
+#**    There is no warranty for this software.  See the file COPYING for
+#**    details.
+#**
+#**
+#**    This file is maintained by:
+#**      Nan Zhu <colin.zhu at oracle.com>
+#**
+#*******************************************************************************
+#******************************************************************************
+#!/bin/sh 
+tet_startup="startup"			# startup function
+tet_cleanup="cleanup"			# cleanup function
+iclist="ic1"	        # list invocable components
+ic1="tp1"				# functions for ic1
+
+. ../setup.sh
+
+loop_times=1000
+
+remoteproc()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+remotedel()
+{
+	scp  dirproc1.sh $REMOTE:
+	remoterun "./dirproc1.sh $TESTDIR del" 
+	if [ $? -ne 0 ];then	
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+localcreate()
+{
+	err=0;
+	if [ ! -d $TESTDIR ];then
+		mkdir $TESTDIR
+	fi
+
+	for((i = 0; i < ${loop_times}; i++))
+	do
+		touch $TESTDIR/FILE1-$i
+		err=`expr $err + $?`
+	done
+	return $err
+}
+
+localdel()
+{
+	for file in $TESTDIR/FILE1-*
+	do
+		rm -f $file
+		err=`expr $err + $?`
+		if [ $err -ne 0 ];then
+			echo "rm $file error!"
+			return $err
+		fi
+	done
+	return $err
+}
+
+localls()
+{ 
+	ls $TESTDIR
+	return $?
+}
+
+remotels()
+{
+    remoterun "ls $TESTDIR"
+    return $?
+}
+
+tp1()
+{
+	tvs_test_purpose_start "Move dir over file (M33) start"
+        scp  tpmultibim33_2.sh $REMOTE:$SRCDIR
+	. ./tpmultibim33_1.sh 
+        remoterun "$SRCDIR/tpmultibim33_2.sh"
+	scp $REMOTE:$SRCDIR/tpmultibim33_2.rst .
+	cat tpmultibim33_1.rst >tpmultibim33.dir
+	cat tpmultibim33_2.rst >>tpmultibim33.dir
+	diff tpmultibim33.dir tpmultibim33.std
+
+	if [ $? -eq 0 ];then	
+		tvs_test_purpose_finish PASS
+	else
+		tvs_test_purpose_finish FAIL
+	fi
+}
+
+startup() # start-up function
+{
+	if [ -z $OCFSDEV ];then
+		echo "Error: OCFSDEV not specified!"
+		exit
+	fi
+	tet_infoline "Begin ocfs2 test on different node test..."
+	setup
+	remotesetup
+}
+
+cleanup() # clean-up function
+{	
+	tet_infoline "Finish ocfs2 dir test on different node test..."
+}
+
+. ../test.config
+# Source TVS helper functions
+. $TVS_ROOT/lib/TVSFunctions.sh
+
+# execute shell test case manager - must be last line
+. $TET_ROOT/lib/xpg3sh/tcm.sh


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_1.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_1.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_1.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim33_1.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M33
+# Feature: Move Directory over file.
+# Operations: 5.Make an OCFS2 mountpoint the current directory.6.Create a directory under the mountpoint.7.On node2, create a file under the same mountpoint.8.Try to move the created directory over the created file.
+# Expected Results: Directory cannot be moved over a file.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim33_1" >tpmultibim33_1.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim33_1.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim33_1.rst 2>&1
+
+mkdir $OCFS2_MOUNT_POINT/tpmultibim33_dir1 2>>tpmultibim33_1.rst
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim33_1.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim33_1.rst
+


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

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_2.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_2.sh	2005-02-22 03:25:25 UTC (rev 14)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpmultibinode/tpmultibim33_2.sh	2005-03-23 05:13:23 UTC (rev 15)
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# Cases for OCFSv2 Test Plan
+#
+# tpmultibim33_2.sh
+#
+# Multi-node tests --> Bi-node test case (M)
+# Case: M33
+# Feature: Move Directory over file.
+# Operations: 5.Make an OCFS2 mountpoint the current directory.6.Create a directory under the mountpoint.7.On node2, create a file under the same mountpoint.8.Try to move the created directory over the created file.
+# Expected Results: Directory cannot be moved over a file.
+#
+# Pre-condition: OCFS2 module is not loaded. The device is pre-configured in testenv.sh
+#
+# TODO: 
+#
+
+. ../testenv.sh
+
+echo "tpmultibim33_2" >tpmultibim33_2.rst
+
+$LOAD_OCFS2_CMD 2>>tpmultibim33_2.rst
+
+mount -t ocfs2 $OCFS2_DEVICE $OCFS2_MOUNT_POINT >>tpmultibim33_2.rst 2>&1
+
+touch  $OCFS2_MOUNT_POINT/tpmultibim33_file2 2>>tpmultibim33_2.rst
+
+mv $OCFS2_MOUNT_POINT/tpmultibim33_dir1 $OCFS2_MOUNT_POINT/tpmultibim33_file2  >>tpmultibim33_2.rst 2>&1
+
+umount $OCFS2_MOUNT_POINT >>tpmultibim33_2.rst 2>&1
+
+$UNLOAD_OCFS2_CMD 2>>tpmultibim33_2.rst
+


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



More information about the Ocfstest-commits mailing list