james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r722247 - in /james/server/trunk: build-tools/imap.mpt build-tools/smoke.xml include.properties stage/org.apache.james/jars/apache-james-mtp-0.1-SNAPSHOT.jar stage/org.apache.james/jars/apache-james-mtp-antlib-0.1-SNAPSHOT.jar
Date Mon, 01 Dec 2008 21:38:05 GMT
Author: rdonkin
Date: Mon Dec  1 13:38:04 2008
New Revision: 722247

URL: http://svn.apache.org/viewvc?rev=722247&view=rev
Log:
Basic IMAP smoke test. Just sends capability but at least it demonstrates that the protocol
is being served.

Added:
    james/server/trunk/build-tools/imap.mpt
    james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-0.1-SNAPSHOT.jar   (with
props)
    james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-antlib-0.1-SNAPSHOT.jar
  (with props)
Modified:
    james/server/trunk/build-tools/smoke.xml
    james/server/trunk/include.properties

Added: james/server/trunk/build-tools/imap.mpt
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/imap.mpt?rev=722247&view=auto
==============================================================================
--- james/server/trunk/build-tools/imap.mpt (added)
+++ james/server/trunk/build-tools/imap.mpt Mon Dec  1 13:38:04 2008
@@ -0,0 +1,22 @@
+################################################################
+# Licensed to the Apache Software Foundation (ASF) under one   #
+# or more contributor license agreements.  See the NOTICE file #
+# distributed with this work for additional information        #
+# regarding copyright ownership.  The ASF licenses this file   #
+# to you under the Apache License, Version 2.0 (the            #
+# "License"); you may not use this file except in compliance   #
+# with the License.  You may obtain a copy of the License at   #
+#                                                              #
+#   http://www.apache.org/licenses/LICENSE-2.0                 #
+#                                                              #
+# Unless required by applicable law or agreed to in writing,   #
+# software distributed under the License is distributed on an  #
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       #
+# KIND, either express or implied.  See the License for the    #
+# specific language governing permissions and limitations      #
+# under the License.                                           #
+################################################################
+S: \* OK JAMES IMAP4rev1 Server.*
+C: abcd CAPABILITY
+S: \* CAPABILITY IMAP4rev1 LITERAL\+
+S: abcd OK CAPABILITY completed.
\ No newline at end of file

Modified: james/server/trunk/build-tools/smoke.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/smoke.xml?rev=722247&r1=722246&r2=722247&view=diff
==============================================================================
--- james/server/trunk/build-tools/smoke.xml (original)
+++ james/server/trunk/build-tools/smoke.xml Mon Dec  1 13:38:04 2008
@@ -18,7 +18,8 @@
   under the License.
 -->
 
-<project default="help" basedir="." name="smoke-test">
+<project default="help" basedir="." name="smoke-test" 
+    xmlns:mpt="antlib:org.apache.james.mpt.ant"> 
 
 	<description>
 	Contains smoke test macros. These allow basic sanity testing of the packaged distribution
@@ -27,6 +28,32 @@
 	<target name='help'>
 		<echo>This is a library containing macros required for smoke tests.</echo>
 	</target>
+ 
+    <macrodef name='RunSmokeTests'>
+        <sequential>   
+            <taskdef 
+                uri="antlib:org.apache.james.mpt.ant" 
+                resource="org/apache/james/mpt/ant/antlib.xml">
+                <classpath>
+                    <pathelement location="${lib.dir}/${mpt.jar}" />
+                    <pathelement location='${lib.dir}/${mpt-antlib.jar}' />
+                </classpath>
+            </taskdef>  
+            
+            <mpt:mpt port='10043' script='../build-tools/imap.mpt'>
+                <addUser port='10445' user='user' passwd='passwd'>S: JAMES Remote Administration
Tool 3.0-SNAPSHOT
+S: Please enter your login and password
+S: Login id:
+C: root
+S: Password:
+C: root
+S: Welcome root. HELP for a list of commands
+C: adduser user passwd
+S: User user added
+</addUser>
+            </mpt:mpt>
+        </sequential>   
+    </macrodef>   
         
     <macrodef name='Smoke'>
         <attribute name='build-dir'/> 
@@ -49,7 +76,8 @@
             	app-path='@{app-path}' 
             	conf-path='@{conf-path}'
             	conf-file-name='@{conf-file-name}'/>   
-            <BootJames dir='${smoke.james.dir}' cmd='@{cmd}'/>   
+            <BootJames dir='${smoke.james.dir}' cmd='@{cmd}'/>  
+            <RunSmokeTests/>   
             <StopJames dir='${smoke.james.dir}' cmd='@{cmd}'/>       
     
         </sequential>   

Modified: james/server/trunk/include.properties
URL: http://svn.apache.org/viewvc/james/server/trunk/include.properties?rev=722247&r1=722246&r2=722247&view=diff
==============================================================================
--- james/server/trunk/include.properties (original)
+++ james/server/trunk/include.properties Mon Dec  1 13:38:04 2008
@@ -349,3 +349,10 @@
 jmock.jar=${path.lib.jmock}/${jarname.jmock.jar}
 jarname.junit.jar=junit-3.8.1.jar
 junit.jar=${path.lib.junit}/${jarname.junit.jar}
+
+#---------------------------------------------------
+# Smoke Tests
+#---------------------------------------------------
+
+mpt.jar=${path.lib.james}/apache-james-mtp-0.1-SNAPSHOT.jar
+mpt-antlib.jar=${path.lib.james}/apache-james-mtp-antlib-0.1-SNAPSHOT.jar

Added: james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-0.1-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-0.1-SNAPSHOT.jar?rev=722247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-0.1-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-antlib-0.1-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-antlib-0.1-SNAPSHOT.jar?rev=722247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/server/trunk/stage/org.apache.james/jars/apache-james-mtp-antlib-0.1-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message