myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfreed...@apache.org
Subject svn commit: r951091 - /myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh
Date Thu, 03 Jun 2010 18:01:50 GMT
Author: mfreedman
Date: Thu Jun  3 18:01:50 2010
New Revision: 951091

URL: http://svn.apache.org/viewvc?rev=951091&view=rev
Log:
New shell script

Added:
    myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh   (with props)

Added: myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh?rev=951091&view=auto
==============================================================================
--- myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh (added)
+++ myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh Thu Jun  3 18:01:50 2010
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+if [ -z "${TCK_TEST_FILE}"]
+then
+  if [ -z "${TCK_CONFIG_HOME}" ]
+  then
+    echo "Test definition file not found.  Either set TCK_TEST_FILE to point to a test definition
file or set TCK_CONFIG_HOME to point to a directory with a test definition file called test.xml
in it."
+    exit 1
+  fi
+  if [ ! -f "${TCK_CONFIG_HOME}"/test.xml ]
+  then
+    echo "Test definition file not found."
+    exit 1
+  fi
+  TCK_TEST_FILE="${TCK_CONFIG_HOME}"/test.xml
+fi
+if [ -z "${TCK_LOGIN_FILE}" ]
+then
+  # Look for login.properties in TCK HOME dir
+  if [ -n "${TCK_CONFIG_HOME}" ]
+  then
+    if [ -f "${TCK_CONFIG_HOME}/login.properties" ] 
+    then
+      TCK_LOGIN_FILE="${TCK_CONFIG_HOME}"/login.properties
+    fi
+  fi
+fi
+
+if [ -z "${TCK_CLIENT_HOST}" ]
+then
+  echo TCK_CLIENT_HOST environment variable must be set
+  exit 1
+fi
+
+if [ -z "${TCK_CLIENT_PORT}" ]
+then
+  echo TCK_CLIENT_PORT environment variable must be set
+  exit 1
+fi
+
+echo TCK properties
+echo --------------
+echo "Test definition file location: '${TCK_TEST_FILE}'"
+if [ -z "${TCK_LOGIN_FILE}" ]
+then
+  echo "Login properties file: '${TCK_LOGIN_FILE}'"
+else
+  echo "Login properties file not set"
+fi
+echo "Client host: '${TCK_CLIENT_HOST}'"
+echo "Client port: '${TCK_CLIENT_PORT}'"
+
+mvn clean surefire-report:report -Dtck.external-server=run-test -Dbridge.tck.test.file=${TCK_TEST_FILE}
-Dbridge.tck.test.host=${TCK_CLIENT_HOST} -Dbridge.tck.test.port=${TCK_CLIENT_PORT} -Dbridge.tck.login-file=${TCK_LOGIN_FILE}
+  
+

Propchange: myfaces/portlet-bridge/tck/trunk/tck-run-tests.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message