@@ -37,37 +37,37 @@ DIR="race"
#
[ -e $DIR ] || mkdir $DIR
-./file_create.sh $DIR $MAX_FILES &
-./file_create.sh $DIR $MAX_FILES &
-./file_create.sh $DIR $MAX_FILES &
+file_create.sh $DIR $MAX_FILES &
+file_create.sh $DIR $MAX_FILES &
+file_create.sh $DIR $MAX_FILES &
-./dir_create.sh $DIR $MAX_FILES &
-./dir_create.sh $DIR $MAX_FILES &
-./dir_create.sh $DIR $MAX_FILES &
+dir_create.sh $DIR $MAX_FILES &
+dir_create.sh $DIR $MAX_FILES &
+dir_create.sh $DIR $MAX_FILES &
-./file_rename.sh $DIR $MAX_FILES &
-./file_rename.sh $DIR $MAX_FILES &
-./file_rename.sh $DIR $MAX_FILES &
+file_rename.sh $DIR $MAX_FILES &
+file_rename.sh $DIR $MAX_FILES &
+file_rename.sh $DIR $MAX_FILES &
-./file_link.sh $DIR $MAX_FILES &
-./file_link.sh $DIR $MAX_FILES &
-./file_link.sh $DIR $MAX_FILES &
+file_link.sh $DIR $MAX_FILES &
+file_link.sh $DIR $MAX_FILES &
+file_link.sh $DIR $MAX_FILES &
-./file_symlink.sh $DIR $MAX_FILES &
-./file_symlink.sh $DIR $MAX_FILES &
-./file_symlink.sh $DIR $MAX_FILES &
+file_symlink.sh $DIR $MAX_FILES &
+file_symlink.sh $DIR $MAX_FILES &
+file_symlink.sh $DIR $MAX_FILES &
-./file_concat.sh $DIR $MAX_FILES &
-./file_concat.sh $DIR $MAX_FILES &
-./file_concat.sh $DIR $MAX_FILES &
+file_concat.sh $DIR $MAX_FILES &
+file_concat.sh $DIR $MAX_FILES &
+file_concat.sh $DIR $MAX_FILES &
-./file_list.sh $DIR &
-./file_list.sh $DIR &
-./file_list.sh $DIR &
+file_list.sh $DIR &
+file_list.sh $DIR &
+file_list.sh $DIR &
-./file_rm.sh $DIR $MAX_FILES &
-./file_rm.sh $DIR $MAX_FILES &
-./file_rm.sh $DIR $MAX_FILES &
+file_rm.sh $DIR $MAX_FILES &
+file_rm.sh $DIR $MAX_FILES &
+file_rm.sh $DIR $MAX_FILES &
echo "CTRL-C to exit"
trap "
@@ -43,7 +43,7 @@
################################################################################
# Global Variables
################################################################################
-. ./o2tf.sh
+. `dirname ${0}`/o2tf.sh
BLOCKSIZE=
CLUSTERSIZE=
@@ -41,7 +41,7 @@
################################################################################
# Global Variables
################################################################################
-. ./o2tf.sh
+. `dirname ${0}`/o2tf.sh
BLOCKSIZE=
CLUSTERSIZE=
@@ -19,7 +19,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
#MPIRUN="`which mpirun`"
@@ -19,7 +19,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
USERNAME=`id -un`
GROUPNAME=`id -gn`
@@ -33,7 +33,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
SUDO="`which sudo` -u root"
RM_BIN="`which rm`"
@@ -33,7 +33,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
#BINDIR=./
SUDO="`which sudo` -u root"
@@ -31,7 +31,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
SUDO="`which sudo` -u root"
RM_BIN="`which rm`"
@@ -12,19 +12,19 @@
# Generate data base for all of the operation types.
-./gengnuplot.sh $1 write
-./gengnuplot.sh $1 rewrite
-./gengnuplot.sh $1 read
-./gengnuplot.sh $1 reread
-./gengnuplot.sh $1 randread
-./gengnuplot.sh $1 randwrite
-./gengnuplot.sh $1 bkwdread
-./gengnuplot.sh $1 recrewrite
-./gengnuplot.sh $1 strideread
-./gengnuplot.sh $1 fwrite
-./gengnuplot.sh $1 frewrite
-./gengnuplot.sh $1 fread
-./gengnuplot.sh $1 freread
+gengnuplot.sh $1 write
+gengnuplot.sh $1 rewrite
+gengnuplot.sh $1 read
+gengnuplot.sh $1 reread
+gengnuplot.sh $1 randread
+gengnuplot.sh $1 randwrite
+gengnuplot.sh $1 bkwdread
+gengnuplot.sh $1 recrewrite
+gengnuplot.sh $1 strideread
+gengnuplot.sh $1 fwrite
+gengnuplot.sh $1 frewrite
+gengnuplot.sh $1 fread
+gengnuplot.sh $1 freread
# Produce graphs and postscript results.
gnuplot gnu3d.dem
@@ -4,7 +4,7 @@
#
if [ `dirname ${0}` == '.' ]; then
if [ -f config.sh ]; then
- . ./config.sh;
+ . `dirname ${0}`/config.sh
fi;
else
if [ -f `dirname ${0}`/config.sh ]; then
@@ -32,7 +32,7 @@ exit 1;
}
if [ `dirname ${0}` == '.' ]; then
if [ -f config.sh ]; then
- . ./config.sh;
+ . `dirname ${0}`/config.sh
fi;
else
if [ -f `dirname ${0}`/config.sh ]; then
@@ -25,7 +25,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
MKFS_BIN="`which sudo` -u root `which mkfs.ocfs2`"
FSCK_BIN="`which sudo` -u root `which fsck.ocfs2`"
@@ -858,14 +858,14 @@ run_reflink_test()
#ordered mount option
log_start "reflink_test" "ordered"
- ./reflink_test_run.sh -o ${logdir} -d ${device} ${mountpoint} || {
+ reflink_test_run.sh -o ${logdir} -d ${device} ${mountpoint} || {
RC=$?
log_end ${RC}
}
#writeback mount option
#log_start "reflink_test" "writeback"
- #./reflink_test_run.sh -W -o ${logdir} -d ${device} ${mountpoint}
+ #reflink_test_run.sh -W -o ${logdir} -d ${device} ${mountpoint}
RC=$?
log_end ${RC}
}
@@ -207,7 +207,7 @@ LogRC $?;
# MAIN
#
#
-. ./config.sh
+. `dirname ${0}`/config.sh
#
if [ $# -ne 2 ]; then
Usage;
@@ -128,7 +128,7 @@ function patch_tunefs()
cd $CORRUPT_SRC
patch -p1 < $pwd/corrupt_remove_slot.patch
exit_if_bad $? 0 "Can't patch the src directory."
- ./autogen.sh
+ autogen.sh
make
if [ ! -x "$CORRUPT_SRC/tunefs.ocfs2/tunefs.ocfs2" ];then
echo "Can't build the specified tunefs.ocfs2."
@@ -36,7 +36,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
RM="`which rm`"
MKDIR="`which mkdir`"
@@ -35,7 +35,7 @@
PATH=$PATH:/sbin # Add /sbin to the path for ocfs2 tools
export PATH=$PATH:.
-. ./config.sh
+. `dirname ${0}`/config.sh
GETXATTR="`which sudo` -u root `which getfattr`"
SETXATTR="`which sudo` -u root `which setfattr`"
If we issue testing outsides directory where executives are, error likes the below may occur: "./config.sh No such file or directory". So let's depend on PATH environment rather that. Signed-off-by: Eric Ren <zren@suse.com> --- programs/dirop_fileop_racer/racer.sh | 48 +++++++++++----------- programs/dx_dirs_tests/index_dir_run.sh | 2 +- programs/dx_dirs_tests/multi_index_dir_run.sh | 2 +- programs/inline-data/multi-inline-run.sh | 2 +- programs/inline-data/single-inline-run.sh | 2 +- .../inode_alloc_perf_tests/inode_alloc_perf.sh | 2 +- .../multi_inode_alloc_perf.sh | 2 +- .../multi_inode_alloc_perf_runner.sh | 2 +- .../iozone/iozone3_263/src/current/Generate_Graphs | 26 ++++++------ programs/logwriter/enospc.sh | 2 +- programs/logwriter/rename_write_race.sh | 2 +- programs/python_common/o2tf.sh | 2 +- programs/python_common/single_run-WIP.sh | 4 +- programs/python_common/single_run.sh | 2 +- .../tunefs-test/remove-slot/corrupt_remove_slot.sh | 2 +- programs/xattr_tests/xattr-multi-run.sh | 2 +- programs/xattr_tests/xattr-single-run.sh | 2 +- 17 files changed, 53 insertions(+), 53 deletions(-)