Author: jfrederic.clere(a)jboss.com
Date: 2014-05-07 08:03:48 -0400 (Wed, 07 May 2014)
New Revision: 3275
Added:
trunk/build/unix/buildbin.EAP6.sh
trunk/build/unix/buildsrc.EAP6.sh
trunk/build/unix/buildtest.EAP6.sh
Modified:
trunk/build/unix/package.list
Log:
Add jbossweb tests...
Added: trunk/build/unix/buildbin.EAP6.sh
===================================================================
--- trunk/build/unix/buildbin.EAP6.sh (rev 0)
+++ trunk/build/unix/buildbin.EAP6.sh 2014-05-07 12:03:48 UTC (rev 3275)
@@ -0,0 +1,137 @@
+#!/bin/sh
+# Copyright(c) 2010 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+echo ""
+echo "Running : `basename $0` $LastChangedDate: 2009-07-09 18:37:49 +0200 (Thu, 09
Jul 2009) $"
+echo ""
+echo "Started : `date`"
+echo "Common : $1"
+echo "Prefix : $2"
+echo "Output : $3"
+echo "OpenSSL : $4"
+echo "Static : $5"
+echo "Sources : $6"
+echo ""
+
+
+# parameters
+# $1: Location of the common libraries.
+# $2: Destination location.
+# $3: Location where to put the binaries.
+# $4: Use OpenSSL.
+# $5: Use static build.
+# $6: Location of the sources.
+
+common_loc=$1
+prefix_loc=$2
+output_loc=$3
+has_openssl_loc=$4
+has_static_loc=$5
+sources_loc=$6
+
+# Stop EAP6
+stopEAP6()
+{
+(cd $EAP6; bin/jboss-cli.sh --commands=connect,shutdown)
+sleep 10
+PID=`ps -ef | grep $EAP6 | grep java | awk ' { print $2 } '`
+if [ x$PID != "x" ]; then
+ kill -15 $PID
+ sleep 10
+fi
+}
+
+current_loc=`pwd`
+native_sources=srclib/`ls srclib | grep WEB`
+native_sources=`(cd $native_sources; pwd)`
+cd $native_sources
+echo "Using $JAVA_HOME for mvn"
+mvn install || exit 1
+
+jar_file=`ls -t target/*.jar | head -1`
+EAP6=/home/hudson/EAP6
+export EAP6
+old_file=`ls $EAP6/odules/system/layers/base/org/jboss/as/web/main/jbossweb*.jar`
+
+echo ""
+echo "Stopping EAP6 (just in case)"
+echo ""
+stopEAP6
+
+# Cleaning
+rm -rf $EAP6/standalone/deployments/
+mkdir $EAP6/standalone/deployments/
+
+#installing
+export TS_HOME=/home/hudson/TCK7/javaeetck
+export ANT_HOME=$TS_HOME/tools/ant
+DIR=$TS_HOME/dist/com/sun/ts/tests/servlet
+RID=$TS_HOME/src/com/sun/ts/tests/servlet
+for file in `find $DIR -name *.war`
+do
+ FILE=`basename $file`
+ rm -rf TMP
+ mkdir TMP
+ cd TMP
+ jar xvf $file
+ rm META-INF/MANIFEST.MF
+ jar cvf $FILE *
+ cp $FILE $EAP6/standalone/deployments/
+ cd -
+done
+#configurating
+JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
-Dorg.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR=false"
+export JAVA_OPTS
+
+# Starting tomcat...
+(cd $EAP6; bin/standalone.shi &)
+echo ""
+echo "Waiting for EAP6 to start"
+sleep 60
+echo ""
+
+echo "Running TCK tests..."
+echo "SERVLETS"
+echo ""
+(cd $RID; ant runclient || exit 1)
+if [ $? -ne 0 ]; then
+ echo "Failed test failed..."
+ stopEAP6
+ exit 1
+else
+ (cd $RID; ant report || exit 1)
+ if [ $? -ne 0 ]; then
+ echo "Failed build test report failed..."
+ stopEAP6
+ exit 1
+ fi
+fi
+
+echo ""
+echo "Stopping TC8"
+echo ""
+stopEAP6
+
+echo "Done"
+echo ""
+exit 0
Property changes on: trunk/build/unix/buildbin.EAP6.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/build/unix/buildsrc.EAP6.sh
===================================================================
--- trunk/build/unix/buildsrc.EAP6.sh (rev 0)
+++ trunk/build/unix/buildsrc.EAP6.sh 2014-05-07 12:03:48 UTC (rev 3275)
@@ -0,0 +1,62 @@
+#!/bin/sh
+# Copyright(c) 2010 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+echo ""
+echo "Running : `basename $0` $LastChangedDate: 2009-10-27 08:23:43 +0100 (Tue, 27
Oct 2009) $"
+echo ""
+echo "Started : `date`"
+echo "Tag : $1"
+echo "Target : $2"
+echo ""
+
+# parameters
+# $1: The tag to use something like 2.2.6 or trunk
+# $2: Directory where to put the sources.
+
+tag=$1
+dist=$2
+
+# we need something like:
+#
http://anonsvn.jboss.org/repos/mod_cluster/trunk/
+case $tag in
+ trunk)
+
URLBASE=http://anonsvn.jboss.org/repos/jbossweb/branches/7.4.x/
+ ;;
+ *)
+
URLBASE=http://anonsvn.jboss.org/repos/jbossweb/tags/${tag}
+ ;;
+esac
+
+echo "$tag using $URLBASE"
+(cd $package_src_dir/srclib
+svn export ${URLBASE} WEB
+)
+if [ $? -ne 0 ]; then
+ echo "svn co ${URLBASE} WEB FAILED"
+ exit 1
+fi
+if [ ! -d $package_src_dir/srclib/WEB ]; then
+ echo "$package_src_dir/srclib/WEB not found!"
+ echo "svn co ${URLBASE} WEB FAILED"
+ exit 1
+fi
Property changes on: trunk/build/unix/buildsrc.EAP6.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/build/unix/buildtest.EAP6.sh
===================================================================
--- trunk/build/unix/buildtest.EAP6.sh (rev 0)
+++ trunk/build/unix/buildtest.EAP6.sh 2014-05-07 12:03:48 UTC (rev 3275)
@@ -0,0 +1,45 @@
+#!/bin/sh
+# Copyright(c) 2010 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+# Run a test of the traffic_server.
+#
+# $1 : Base directory for the test.
+# $2 : Directory where the package was built.
+# $3 : Directory where downloaded packages are stored.
+# $4 : Name or IP to use for the tests.
+# $5 : Do the SSL stuff.
+
+base=$1
+root=$2
+build_cache_dir=$3
+IPLOCAL=$4
+loc_has_ssl=$5
+
+echo ""
+echo "Running : `basename $0` $LastChangedDate: 2009-10-29 08:26:17 +0100 (Thu, 29
Oct 2009) $"
+echo ""
+
+echo ""
+echo "SUCCESS : `basename $0` $LastChangedDate: 2009-10-29 08:26:17 +0100 (Thu, 29
Oct 2009) $"
+echo ""
+exit 0
Property changes on: trunk/build/unix/buildtest.EAP6.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: trunk/build/unix/package.list
===================================================================
--- trunk/build/unix/package.list 2014-05-02 15:21:30 UTC (rev 3274)
+++ trunk/build/unix/package.list 2014-05-07 12:03:48 UTC (rev 3275)
@@ -74,3 +74,4 @@
TC8|TC8_Trunk|trunk
TC7|TC7_Trunk|trunk
TC6|TC6_Trunk|trunk
+EAP6|EAP6_Trunk|trunk