[isidorus-cvs] r309 - branches/new-datamodel/playground

Lukas Giessmann lgiessmann at common-lisp.net
Wed Jul 21 12:24:50 UTC 2010


Author: lgiessmann
Date: Wed Jul 21 08:24:50 2010
New Revision: 309

Log:
new-datamodel: added a simple bash test-script for isidorus

Added:
   branches/new-datamodel/playground/isidorus_test.sh   (contents, props changed)

Added: branches/new-datamodel/playground/isidorus_test.sh
==============================================================================
--- (empty file)
+++ branches/new-datamodel/playground/isidorus_test.sh	Wed Jul 21 08:24:50 2010
@@ -0,0 +1,76 @@
+#!/bin/bash
+
+host="http://192.168.0.6:8000";
+
+wDir="isidorus_test";
+resDir="results"
+logDir="logfiles"
+
+dir1="req1";
+dir2="req2";
+dir3="req3";
+dir4="req4";
+
+req1=$host"/isidorus/json/psis/";
+req2=$host"/isidorus/json/get/http://textgrid.org/serviceregistry/development/webpublish"
+req3=$host"/isidorus/json/tmcl/types/"
+req4=$host"/isidorus/json/topicstubs/http://textgrid.org/serviceregistry/development/webpublish"
+
+log1=$logDir"/"$dir1"/iteration_";
+log2=$logDir"/"$dir2"/iteration_";
+log3=$logDir"/"$dir3"/iteration_";
+log4=$logDir"/"$dir4"/iteration_";
+
+res1=$resDir"/"$dir1"/iteration_";
+res2=$resDir"/"$dir2"/iteration_";
+res3=$resDir"/"$dir3"/iteration_";
+res4=$resDir"/"$dir4"/iteration_";
+
+function flow {
+    echo "==== iteration: ${1} ====";
+    counter=$1;
+    if [ $1 -lt 10 ]; then
+	counter="0000"$1;
+    else
+	if [ $1 -lt 100 ]; then
+	    counter="000"$1;
+	else
+	    if [ $1 -lt 1000 ]; then
+		counter="00"$1;
+	    else
+		if [ $1 -lt 10000 ]; then
+		    counter="0"$1;
+		fi
+	    fi
+	fi
+    fi
+
+    path1=$log1$counter;
+    path2=$log2$counter;
+    path3=$log3$counter;
+    path4=$log4$counter;
+    result1=$res1$counter;
+    result2=$res2$counter;
+    result3=$res3$counter;
+    result4=$res4$counter;
+    wget  -o $path1".log" -O $result1".res" $req1;
+    wget  -o $path2".log" -O $result2".res" $req2;
+    wget  -o $path3".log" -O $result3".res" $req3;
+    wget  -o $path4".log" -O $result4".res" $req4;
+}
+
+
+
+mkdir $wDir;
+cd $wDir;
+mkdir -p $logDir"/"$dir1;
+mkdir -p $logDir"/"$dir2;
+mkdir -p $logDir"/"$dir3;
+mkdir -p $logDir"/"$dir4;
+mkdir -p $resDir"/"$dir1;
+mkdir -p $resDir"/"$dir2;
+mkdir -p $resDir"/"$dir3;
+mkdir -p $resDir"/"$dir4;
+for i in `seq 1 50000`; do
+    flow $i;
+done




More information about the Isidorus-cvs mailing list