From 94191c3f6bfa29d75c519803da8de08bc9e7cc7d Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 04 Apr 2008 14:52:15 +0000
Subject: [PATCH] add client tag management for the reports
---
opends/tests/system-tests/phases/log/log.xml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 53 insertions(+), 3 deletions(-)
diff --git a/opends/tests/system-tests/phases/log/log.xml b/opends/tests/system-tests/phases/log/log.xml
index 14c6848..e4cd18e 100755
--- a/opends/tests/system-tests/phases/log/log.xml
+++ b/opends/tests/system-tests/phases/log/log.xml
@@ -49,13 +49,13 @@
<!-- Create folders -->
<call function="'createFolder'">
- { 'location' : STAF_LOCAL_HOSTNAME,
+ { 'location' : STAF_LOCAL_HOSTNAME,
'foldername' : LOG_DIR,
'fileFd' : NO_FILE
}
</call>
<call function="'createFolder'">
- { 'location' : STAF_LOCAL_HOSTNAME,
+ { 'location' : STAF_LOCAL_HOSTNAME,
'foldername' : LOG_TMP_DIR,
'fileFd' : NO_FILE
}
@@ -534,7 +534,57 @@
</sequence>
</function>
-
+
+ <!-- ************************************************************ -->
+ <function name="writeStartTagClient" scope="local">
+ <function-prolog>
+ ''
+ </function-prolog>
+ <function-map-args>
+ <function-arg-def name="client" type="required">
+ </function-arg-def>
+ <function-arg-def name="fileFd" type="required">
+ <function-arg-description>
+ file descriptor
+ </function-arg-description>
+ </function-arg-def>
+ </function-map-args>
+ <sequence>
+ <if expr="fileFd != NO_FILE">
+ <script>
+ str = '\n<client name=\"%s\"' % client.getName()
+ str = '%s id=\"%s\"' % (str,client.getId())
+ str = '%s host=\"%s\"' % (str,client.getHost())
+ str = '%s start=\"%s\"' % (str,client.getStart())
+ str = '%s stop=\"%s\"' % (str,client.getStop())
+ str = '%s dependency=\"%s\">\n' % (str,client.getDependency())
+ fileFd.write(str)
+ </script>
+ </if>
+ </sequence>
+ </function>
+
+ <function name="writeEndTagClient" scope="local">
+ <function-prolog>
+ ''
+ </function-prolog>
+ <function-map-args>
+ <function-arg-def name="fileFd" type="required">
+ <function-arg-description>
+ file descriptor
+ </function-arg-description>
+ </function-arg-def>
+ </function-map-args>
+ <sequence>
+ <if expr="fileFd != NO_FILE">
+ <script>
+ fileFd.write('</client>\n\n')
+ </script>
+ </if>
+ </sequence>
+ </function>
+
+
<!-- ************************************************************ -->
<function name="writeStartTagOperation" scope="local">
<function-prolog>
--
Gitblit v1.10.0