[logback-dev] svn commit: r1971 - logback/trunk/logback-classic/src/test
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Nov 14 15:15:42 CET 2008
Author: ceki
Date: Fri Nov 14 15:15:42 2008
New Revision: 1971
Added:
logback/trunk/logback-classic/src/test/allInOneSafeMode.sh
- copied unchanged from r1970, /logback/trunk/logback-classic/src/test/testSafeMode.sh
logback/trunk/logback-classic/src/test/checkResults.sh
logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh
Removed:
logback/trunk/logback-classic/src/test/testSafeMode.sh
Log:
- ongoing work
Added: logback/trunk/logback-classic/src/test/checkResults.sh
==============================================================================
--- (empty file)
+++ logback/trunk/logback-classic/src/test/checkResults.sh Fri Nov 14 15:15:42 2008
@@ -0,0 +1,16 @@
+echo "File name $1"
+echo "run length $2"
+
+if [ $# -lt 3 ]
+then
+ echo "Usage: checkResults.sh filename runLen stamp0 ... stampN"
+ exit 1;
+fi
+
+FILENAME=$1
+LEN=$2
+
+shift 2
+
+echo Checking results...
+java ch.qos.logback.classic.multiJVM.Checker $LEN $FILENAME $*
Added: logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh
==============================================================================
--- (empty file)
+++ logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh Fri Nov 14 15:15:42 2008
@@ -0,0 +1,45 @@
+echo "File name $1"
+echo "run length $2"
+
+
+
+#On windows
+#CLASSPATH="${CLASSPATH};./target/classes/"
+#CLASSPATH="${CLASSPATH};./target/test-classes/"
+#CLASSPATH="${CLASSPATH};../logback-core/target/classes"
+#CLASSPATH="${CLASSPATH};../logback-examples/lib/slf4j-api-1.5.5.jar"
+
+# On Unix
+#CLASSPATH="${CLASSPATH}:./target/classes/"
+#CLASSPATH="${CLASSPATH}:./target/test-classes/"
+#CLASSPATH="${CLASSPATH}:../logback-core/target/classes"
+#CLASSPATH="${CLASSPATH}:../logback-examples/lib/slf4j-api-1.5.5.jar"
+
+#if [ -f $1 ]
+#then
+# echo Removing $1 before tests
+# rm $1;
+#fi
+
+if [ $# -lt 3 ]
+then
+ echo "Usage: generateInSafeMode.sh filename runLen stamp0 ... stampN"
+ exit 1;
+fi
+
+FILENAME=$1
+LEN=$2
+
+shift 2
+
+for stamp in $@
+do
+ echo running safe mode with $stamp
+ java ch.qos.logback.classic.multiJVM.SafeModeFileAppender $stamp $LEN $FILENAME &
+done
+
+wait
+
+echo "To test the results issue the following command"
+echo "./checkResults.sh $FILENAME $LEN $*"
+
More information about the logback-dev
mailing list