projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug for more that one test case (-L1 to xargs)
[anna.git]
/
example
/
diameter
/
launcher
/
resources
/
ft-client
/
tests
/
experiment2
/
go.sh
diff --git
a/example/diameter/launcher/resources/ft-client/tests/experiment2/go.sh
b/example/diameter/launcher/resources/ft-client/tests/experiment2/go.sh
index
7c74679
..
44bd53f
100755
(executable)
--- a/
example/diameter/launcher/resources/ft-client/tests/experiment2/go.sh
+++ b/
example/diameter/launcher/resources/ft-client/tests/experiment2/go.sh
@@
-3,12
+3,12
@@
#############
# VARIABLES #
#############
#############
# VARIABLES #
#############
-
CWD
=`dirname $0`
+
SCR_DIR
=`dirname $0`
tmpdir=$(mktemp -d)
SCR_BN=`basename $0`
tmpdir=$(mktemp -d)
SCR_BN=`basename $0`
-OPER_SCR=
`readlink -f $CWD/../../operation.sh`
-RESULT_LOG=
$CWD/
result.log
-RECV_LOG=
`readlink -f $CWD/../../launcher.log.recvfe`
+OPER_SCR=
../../operation.sh
+RESULT_LOG=result.log
+RECV_LOG=
../../launcher.log.recvfe
#############
# FUNCTIONS #
#############
# FUNCTIONS #
@@
-157,7
+157,7
@@
process_tc () {
trap sigint_handler SIGINT
# Working directory is script dirname:
trap sigint_handler SIGINT
# Working directory is script dirname:
-cd $
CWD
+cd $
SCR_DIR
# Intro:
echo
# Intro:
echo
@@
-166,11
+166,12
@@
echo "Test cases manager"
echo "------------------"
# Mandatory parameter:
[ -z "$1" ] && _exit "Usage: $SCR_BN <test cases parent directory (or .tc file)>"
echo "------------------"
# Mandatory parameter:
[ -z "$1" ] && _exit "Usage: $SCR_BN <test cases parent directory (or .tc file)>"
+[ ! -f "$1" -a ! -d "$1" ] && _exit "Invalid file or directory '$1' !!"
# Gather .tc files to be processed:
[ ! -f $1 ] && echo -e "\nGathering list of test cases from '`readlink -f $1`' ..."
echo
# Gather .tc files to be processed:
[ ! -f $1 ] && echo -e "\nGathering list of test cases from '`readlink -f $1`' ..."
echo
-find $1 -name *.tc | xargs readlink -f | tee -a $tmpdir/tc_list
+find $1 -name *.tc | xargs
-L1
readlink -f | tee -a $tmpdir/tc_list
echo
echo
echo
echo