devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From re...@apache.org
Subject svn commit: r1693934 - in /devicemap/trunk/clients/2.0/reference: README test.sh
Date Mon, 03 Aug 2015 17:06:40 GMT
Author: rezan
Date: Mon Aug  3 17:06:40 2015
New Revision: 1693934

URL: http://svn.apache.org/r1693934
Log:
update to test.sh

Modified:
    devicemap/trunk/clients/2.0/reference/README
    devicemap/trunk/clients/2.0/reference/test.sh

Modified: devicemap/trunk/clients/2.0/reference/README
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/README?rev=1693934&r1=1693933&r2=1693934&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/README (original)
+++ devicemap/trunk/clients/2.0/reference/README Mon Aug  3 17:06:40 2015
@@ -17,4 +17,4 @@ To compile:
 TODO
 
 move transformer parameters to parent
-
+error if And pattern type has 1 token

Modified: devicemap/trunk/clients/2.0/reference/test.sh
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/test.sh?rev=1693934&r1=1693933&r2=1693934&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/test.sh (original)
+++ devicemap/trunk/clients/2.0/reference/test.sh Mon Aug  3 17:06:40 2015
@@ -1,28 +1,26 @@
 #!/bin/bash
 
 ROOT=../../../data/2.0/reference
+DOMAINS=`find $ROOT -maxdepth 1 -type d | grep -v "reference$" | sort | xargs echo`
 
-if [ "$1" != "" ]
+if [ -d "$1" ]
 then
-    ROOT=$1
+    DOMAINS=$@
 fi
 
-if [ ! -d $ROOT ]
+if [ "$DOMAINS" = "" ]
 then
-    echo "Please pass in a valid reference domain root"
+    echo "Please pass in valid domain root(s)"
     echo "Or run ./test.sh from SVN"
     exit 1
 fi
 
-echo "Test root: $ROOT"
-
-DOMAINS=`ls $ROOT`
 FAIL=
 PASS=
 
-for DOMAIN in $DOMAINS
+for DROOT in $DOMAINS
 do
-    DROOT=$ROOT/$DOMAIN
+    DOMAIN=`echo $DROOT | sed "s/^.*\///"`
 
     if [ ! -d $DROOT -o "`ls $DROOT | grep pattern`" = "" ]
     then



Mime
View raw message