You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/12/01 23:08:39 UTC
svn commit: r722260 - /james/server/trunk/build-tools/smoke.xml
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