[Swift-commit] r2653 - in log-processing/tests/log-processing: . make-targets

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Mar 9 03:33:32 CDT 2009


Author: benc
Date: 2009-03-09 03:33:32 -0500 (Mon, 09 Mar 2009)
New Revision: 2653

Added:
   log-processing/tests/log-processing/make-targets/
   log-processing/tests/log-processing/make-targets/execute.event.first-r2522.expected
   log-processing/tests/log-processing/make-targets/execute2.event.first-r2522.expected
   log-processing/tests/log-processing/make-targets/run
Modified:
   log-processing/tests/log-processing/run
Log:
Test framework for checking makefile targets generated by swift-plot-log
against expected output of sample log file

Added: log-processing/tests/log-processing/make-targets/execute.event.first-r2522.expected
===================================================================
--- log-processing/tests/log-processing/make-targets/execute.event.first-r2522.expected	                        (rev 0)
+++ log-processing/tests/log-processing/make-targets/execute.event.first-r2522.expected	2009-03-09 08:33:32 UTC (rev 2653)
@@ -0,0 +1 @@
+1236540520.203 0.352999925613403 0 END_SUCCESS echo

Added: log-processing/tests/log-processing/make-targets/execute2.event.first-r2522.expected
===================================================================
--- log-processing/tests/log-processing/make-targets/execute2.event.first-r2522.expected	                        (rev 0)
+++ log-processing/tests/log-processing/make-targets/execute2.event.first-r2522.expected	2009-03-09 08:33:32 UTC (rev 2653)
@@ -0,0 +1 @@
+1236540520.301 0.250999927520752 echo-8f60cn7j JOB_END 0-1 localhost 7f60cn7j

Added: log-processing/tests/log-processing/make-targets/run
===================================================================
--- log-processing/tests/log-processing/make-targets/run	                        (rev 0)
+++ log-processing/tests/log-processing/make-targets/run	2009-03-09 08:33:32 UTC (rev 2653)
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+TARGETS="execute.event execute2.event"
+
+
+LOG=$(pwd)/../logs/first-r2522.log
+
+rm  -f $TARGETS
+for t in $TARGETS ; do
+  swift-plot-log $LOG $t
+
+  l=$(basename $LOG .log)
+
+
+  diff -q $t $t.$l.expected
+
+  if [ "$?" -ne "0" ]; then
+    echo "OUTPUT DIFFERS for log $l in target $t"
+    exit 1
+  fi
+done
+
+


Property changes on: log-processing/tests/log-processing/make-targets/run
___________________________________________________________________
Name: svn:executable
   + *

Modified: log-processing/tests/log-processing/run
===================================================================
--- log-processing/tests/log-processing/run	2009-03-09 08:32:35 UTC (rev 2652)
+++ log-processing/tests/log-processing/run	2009-03-09 08:33:32 UTC (rev 2653)
@@ -1,11 +1,14 @@
 #!/bin/bash
 
-pushd sort-preserve
-./run
-if [ "$?" -ne "0" ]; then
-  echo "sort-preserve test failed"
-  exit 1
-fi
+for d in sort-preserve make-targets; do
 
-popd
+  pushd $d
+  ./run
+  if [ "$?" -ne "0" ]; then
+    echo "sort-preserve test failed"
+    exit 1
+  fi
 
+  popd
+done
+




More information about the Swift-commit mailing list