scripts
authorbdemsky <bdemsky>
Mon, 16 Apr 2007 22:01:41 +0000 (22:01 +0000)
committerbdemsky <bdemsky>
Mon, 16 Apr 2007 22:01:41 +0000 (22:01 +0000)
Robust/src/Benchmarks/Spider/dotest [new file with mode: 0755]
Robust/src/Benchmarks/Spider/testscript [new file with mode: 0755]

diff --git a/Robust/src/Benchmarks/Spider/dotest b/Robust/src/Benchmarks/Spider/dotest
new file mode 100755 (executable)
index 0000000..18d006c
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+mkdir $1
+cd $1
+../$2 127.0.0.1 test/0.html &> log &
+fcount=`ls -al 127*`
+let "count=0"
+while true
+do
+sleep 60
+fnewcount=`ls -al 127*`
+if [ "$fnewcount" != "$fcount" ]
+  then
+    let "count=0"
+    fcount="$fnewcount"
+fi
+let "count+=1"
+if [ $count = "3" ]
+then
+break
+fi
+done
+killall -SIGUSR2 $2
+sleep 1
+killall -9 $2
+cd ..
\ No newline at end of file
diff --git a/Robust/src/Benchmarks/Spider/testscript b/Robust/src/Benchmarks/Spider/testscript
new file mode 100755 (executable)
index 0000000..f568350
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+let i=62
+while [ $i -le 100 ]
+do
+./dotest THREAD$i threadspider.bin
+./dotest TASK$i taskspider.bin
+let "i+=1"
+done
\ No newline at end of file