james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r722260 - /james/server/trunk/build-tools/smoke.xml
Date Mon, 01 Dec 2008 22:08:39 GMT
Author: rdonkin
Date: Mon Dec  1 14:08:39 2008
New Revision: 722260

URL: http://svn.apache.org/viewvc?rev=722260&view=rev
Log:
Factor out macro

Modified:
    james/server/trunk/build-tools/smoke.xml

Modified: james/server/trunk/build-tools/smoke.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/smoke.xml?rev=722260&r1=722259&r2=722260&view=diff
==============================================================================
--- james/server/trunk/build-tools/smoke.xml (original)
+++ james/server/trunk/build-tools/smoke.xml Mon Dec  1 14:08:39 2008
@@ -29,6 +29,25 @@
 		<echo>This is a library containing macros required for smoke tests.</echo>
 	</target>
  
+    <macrodef name='TestProtocol'>
+        <attribute name='port'/>
+        <attribute name='name'/>
+        <sequential>
+            <mpt:mpt port='@{port}' script='../build-tools/@{name}.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='RunSmokeTests'>
         <sequential>   
             <taskdef 
@@ -40,18 +59,7 @@
                 </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>
+            <TestProtocol port='10043' name='imap'/>
         </sequential>   
     </macrodef>   
         



---------------------------------------------------------------------
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