gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15125 - gauger/web


From: gnunet
Subject: [GNUnet-SVN] r15125 - gauger/web
Date: Fri, 29 Apr 2011 15:34:36 +0200

Author: bartpolot
Date: 2011-04-29 15:34:36 +0200 (Fri, 29 Apr 2011)
New Revision: 15125

Modified:
   gauger/web/run_test.sh
Log:
Muted test script, changed to generic default URL


Modified: gauger/web/run_test.sh
===================================================================
--- gauger/web/run_test.sh      2011-04-29 13:24:16 UTC (rev 15124)
+++ gauger/web/run_test.sh      2011-04-29 13:34:36 UTC (rev 15125)
@@ -4,7 +4,7 @@
 METHOD="php"
 
 #URL="http://localhost:8080";;
-PHP_URL="http://ranger/gauger/web/hosts/testhost";;
+PHP_URL="http://localhost/gauger/web/hosts/testhost";;
 
 PY_HOST="localhost"
 
@@ -44,25 +44,25 @@
     done
     sleep 0.5;
     
-    cat $DATADIR/$HOST/$i | sort -n > sortedfile1;
-    diff -n $DATADIR/$HOST/$i sortedfile1 > /dev/null;
+    cat $DATADIR/$HOST/$i 2>/dev/null | sort -n > sortedfile1;
+    diff -n $DATADIR/$HOST/$i sortedfile1 > /dev/null 2>&1;
     PHASE1=$?;
 
-    cat $DATADIR/$HOST/$i.dat | sort -n > sortedfile2;
-    diff -n $DATADIR/$HOST/$i.dat sortedfile2 > /dev/null;
+    cat $DATADIR/$HOST/$i.dat  2>/dev/null | sort -n > sortedfile2;
+    diff -n $DATADIR/$HOST/$i.dat sortedfile2 > /dev/null 2>&1;
     PHASE2=$?;
 
     if [ "$PHASE1" != "0" ] || [ "$PHASE2" != "0" ]; then
        echo "TEST $N FAILED ($PHASE1 $PHASE2)"
        R=1;
-       mv -f $DATADIR/$HOST/$i $i.res;
-       mv -f sortedfile1 result$N;
-       mv -f sortedfile1 result$N.dat;
+       mv -f $DATADIR/$HOST/$i $i.res > /dev/null 2>&1;
+       mv -f sortedfile1 result$N > /dev/null 2>&1;
+       mv -f sortedfile1 result$N.dat > /dev/null 2>&1;
     else
        echo " OK";
-       rm -f log$N > /dev/null;
-       rm -f $DATADIR/$HOST/$i > /dev/null;
-       rm -f $DATADIR/$HOST/$i.dat sortedfile1 sortedfile2  > /dev/null;
+       rm -f log$N  > /dev/null 2>&1;
+       rm -f $DATADIR/$HOST/$i > /dev/null 2>&1;
+       rm -f $DATADIR/$HOST/$i.dat sortedfile1 sortedfile2 > /dev/null 2>&1;
     fi
 done
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]