[logback-dev] svn commit: r1972 - logback/trunk/logback-classic/src/test

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Nov 14 15:21:57 CET 2008


Author: ceki
Date: Fri Nov 14 15:21:57 2008
New Revision: 1972

Added:
   logback/trunk/logback-classic/src/test/generateLogsInSafeMode.sh
      - copied, changed from r1971, /logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh
Removed:
   logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh
Modified:
   logback/trunk/logback-classic/src/test/allInOneSafeMode.sh
   logback/trunk/logback-classic/src/test/checkResults.sh

Log:
ongoing work

Modified: logback/trunk/logback-classic/src/test/allInOneSafeMode.sh
==============================================================================
--- logback/trunk/logback-classic/src/test/allInOneSafeMode.sh	(original)
+++ logback/trunk/logback-classic/src/test/allInOneSafeMode.sh	Fri Nov 14 15:21:57 2008
@@ -1,8 +1,12 @@
+# Use this script both generate and check the results.  It only works
+# if there is only one instance of this script
+
 echo "File name $1"
 echo "run length $2"
 
 
 
+
 #On windows
 #CLASSPATH="${CLASSPATH};./target/classes/"
 #CLASSPATH="${CLASSPATH};./target/test-classes/"
@@ -15,11 +19,11 @@
 #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 [ -f $1 ]
+then
+ echo Removing $1 before tests
+ rm $1;
+fi
 
 if [ $# -lt 3 ]
 then 

Modified: logback/trunk/logback-classic/src/test/checkResults.sh
==============================================================================
--- logback/trunk/logback-classic/src/test/checkResults.sh	(original)
+++ logback/trunk/logback-classic/src/test/checkResults.sh	Fri Nov 14 15:21:57 2008
@@ -1,3 +1,7 @@
+# Use this script to check the output generated by 
+# the generateLogsInSafeMode.sh script
+# Note that you can pass multiple stamps
+
 echo "File name $1"
 echo "run length $2"
 

Copied: logback/trunk/logback-classic/src/test/generateLogsInSafeMode.sh (from r1971, /logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh)
==============================================================================
--- /logback/trunk/logback-classic/src/test/gerateLogFileInSafeMode.sh	(original)
+++ logback/trunk/logback-classic/src/test/generateLogsInSafeMode.sh	Fri Nov 14 15:21:57 2008
@@ -15,15 +15,10 @@
 #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"
+  echo "Usage: generateLogsInSafeMode.sh filename runLen stamp0 ... stampN"
   exit 1;
 fi
 


More information about the logback-dev mailing list