Manifold testing scripts
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Tue, 9 Feb 2010 18:35:39 +0000 (19:35 +0100)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Tue, 9 Feb 2010 18:35:39 +0000 (19:35 +0100)
Quick and dirty at the moment.

mfold/clean.default.sh [new file with mode: 0644]
mfold/doall [moved from mfold/doseq.sh with 100% similarity]
mfold/docmd [moved from mfold/docmd.sh with 100% similarity]
mfold/ps.default.sh [new file with mode: 0644]
mfold/run.default.sh
mfold/run.media.sh [new file with mode: 0644]

diff --git a/mfold/clean.default.sh b/mfold/clean.default.sh
new file mode 100644 (file)
index 0000000..6361b08
--- /dev/null
@@ -0,0 +1,5 @@
+cd swift
+rm -f chunk core lout lerr
+killall leecher
+killall seeder
+echo DONE
similarity index 100%
rename from mfold/doseq.sh
rename to mfold/doall
similarity index 100%
rename from mfold/docmd.sh
rename to mfold/docmd
diff --git a/mfold/ps.default.sh b/mfold/ps.default.sh
new file mode 100644 (file)
index 0000000..42cb6d5
--- /dev/null
@@ -0,0 +1,4 @@
+if ps -ef | grep l[e]echer > /dev/null; then
+    echo `hostname` has a running leecher
+    return 1
+fi
index 85ed817..0d891d4 100644 (file)
@@ -1,10 +1,12 @@
 #!/bin/bash
 
 HASH=66b9644bb01eaad09269354df00172c8a924773b
-HEAD=node300.das2.ewi.tudelft.nl
+HEAD=83.96.143.114
 
 sleep 1 
+rm -f core
 ulimit -c 1024000
 cd swift || exit 1
 rm -f chunk
-./exec/leecher $HASH chunk $HEAD:20000 0.0.0.0:10000 >lout 2>lerr || exit 2
+#valgrind --leak-check=yes \
+./exec/leecher $HASH chunk $HEAD:10001 0.0.0.0:10002 2>lerr | gzip > lout.gz || exit 2
diff --git a/mfold/run.media.sh b/mfold/run.media.sh
new file mode 100644 (file)
index 0000000..1c1d422
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+ulimit -c 1024000
+cd swift || exit 2
+if [ ! -e ScottKim_2008P.mp4 ]; then
+    wget -c http://video.ted.com/talks/podcast/ScottKim_2008P.mp4 || exit 1
+fi
+
+./exec/seeder ScottKim_2008P.mp4 0.0.0.0:10001 2> lerr | gzip > lout.gz