--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/sf/java/metadata/tests/antunit/test_text_input.ant.xml Fri Aug 13 14:59:05 2010 +0300
@@ -0,0 +1,67 @@
+<!--
+============================================================================
+Name : test_ant_input.ant.xml
+Part of : Helium
+
+Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+All rights reserved.
+This component and the accompanying materials are made available
+under the terms of the License "Eclipse Public License v1.0"
+which accompanies this distribution, and is available
+at the URL "http://www.eclipse.org/legal/epl-v10.html".
+
+Initial Contributors:
+Nokia Corporation - initial contribution.
+
+Contributors:
+
+Description:
+
+============================================================================
+-->
+<project name="test-text-input" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
+ <description>Helium metadata text input unittests.</description>
+
+ <dirname property="project.dir" file="${ant.file.test-metadata-regex}" />
+ <taskdef resource="com/nokia/helium/metadata/ant/antlib.xml" uri="http://www.nokia.com/helium" />
+ <taskdef name="fmpp" classname="fmpp.tools.AntTask" onerror="report"/>
+
+ <target name="setUp">
+ <echo>---=====================================---</echo>
+ <mkdir dir="${test.temp.dir}" />
+ <delete dir="${test.temp.dir}" />
+ <mkdir dir="${test.temp.dir}" />
+ </target>
+
+ <target name="tearDown">
+ <delete dir="${test.temp.dir}" />
+ <echo>---=====================================---</echo>
+ </target>
+
+ <hlm:metadatafilterset id="error.filterset">
+ <hlm:metadatafilter severity="error" regex="^ERROR: .*" description="Simple error pattern"/>
+ <hlm:metadatafilter severity="warning" regex="^WARNING: .*" description="Simple warning pattern"/>
+ </hlm:metadatafilterset>
+
+
+ <target name="test-text-log-metadata-input">
+ <echo message="text log metadata input validation" />
+ <property name="metadata-read-db" value="${test.temp.dir}/log_text_metadata_input_db"/>
+ <echo message="database: ${metadata-read-db}" />
+ <mkdir dir="${test.temp.dir}"/>
+
+ <hlm:metadatarecord database="${metadata-read-db}">
+ <hlm:textmetadatainput>
+ <fileset dir="${project.dir}/../data/">
+ <include name="*_fixslashes*.log"/>
+ </fileset>
+ <metadatafilterset refid="error.filterset" />
+ </hlm:textmetadatainput>
+ </hlm:metadatarecord>
+ <au:assertTrue>
+ <available type="dir" file="${metadata-read-db}" />
+ </au:assertTrue>
+ <!-- TODO: Assert the number of errors. -->
+ </target>
+
+</project>