Subrata Modak wrote:
On Mon, 2007-09-24 at 09:28 +0200, Carmelo AMOROSO wrote:
Subrata Modak wrote:
On Thu, 2007-09-20 at 08:35 -0400, Mike Melendez wrote:
Hi All,
I vote for having simply the output in XML format (plus usual text file as already confirmed by Subrata). From XML we can do a lot of things... using a XSL stylesheet to show result on a web page, using a XML transformer (C, java, whatever) to generate other output, importing the log easily
on a spreadsheet and so on.

Regards,
Carmelo

Thanks Carmelo,
Can you also post a sample XML file that you would expect the Parser to
generate (from the Text file) (say the XML file contains the
highlighting and other features that i mentioned below ) ??

--Subrata--
Hi Subrata,
attached you can find a skeleton of an XML document, based on a real log.
A usefull section I'd like to add is the <statistics> showing the overall results of the tests. The other sections are essentially a translation of the text into xml tags, removing some other
output from /proc/cpuinfo for example.
It's just an example.
Another suggestion is to define a DTD or better an XML schema to be sure the output
is well-formed.

Ciao,
Carmelo
ÿþ<!-- Example of a XML LTP log by Carmelo Amoroso ([EMAIL PROTECTED]) -->

<?xml version="1.0"?>

<LTP>

<target os="osname" host="hostname" kernel="release" arch="machine" />

<environ>

	<LTP version="LTP-20070731"/>

	<util-linux>/usr/ltp/ver_linux: /usr/ltp/ver_linux: 29: fdformat: not found</util-linux>

	<mounts>

		<entry dev="/dev/root" on="/" type="ext3" opt="rw,data=ordered"/>

		<entry dev="proc" on="/proc" type="proc" opt="rw"/>

		<entry dev="none" on="/dev/pts" type="devpts" opt="rw"/>

	</mounts>

	<libc version="0.9.29"/>

	<modules>

		<module>

			<name>xxxxxxx</name>

			<used count="x" by="xxxx"/>

		</module>

		.......

		.......

		<module>

			<name>xxxxxxx</name>

			<used count="x" by="xxxx"/>

		</module>

	</modules>		

	<cpu machine="STb7100 Reference board" processor="0" family="sh4" type="STb710x" flags="fpu">

		<cache type="xxxx">

			<icache size="xxx" type="2-way"/>

			<dcache size="xxx" type="2-way"/>

		</cache>

	</cpu>

</environ>



<statistics date="(date of execution)">

	<total>xxx</total>

	<pass>xxx</pass>

	<fail>xxx</fail>

	<error>xxx</error>

</statistics>



<tests>

	<test tag="getdtablesize01" contacts="" analysis="exit">

		<cmdline>getdtablesize01</cmdline>

		<initiation>ok</initiation>

		<status duration="0" corefile="no" cutime="1" cstime="0">

 			<termination type="exited" id="1"/>

		</status>

		<execution>

			<scenario step="0">

				<status>INFO</status>

				<info>Maximum number of files a process can have opened is 1024</info>

			</scenario>

			<scenario step="1">

				<status>PASS</status>

				<info>got correct dtablesize, value is 1024</info>

			</scenario>

			<scenario step="0">

				<status>INFO</status>

				<info>Checking with the value returned by getrlimit...RLIMIT_NOFILE</info>

			</scenario>

			<scenario step="2">

				<status>FAIL</status>

				<info>0 != 1023</info>

			</scenario>

		</execution>

	</test>

<!-- all other test entries -->

</tests>

</LTP>













-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to