tracefw/tracecompiler/test/src/ErrorLogsTestUnit.java
branchRCL_3
changeset 20 ca8a1b6995f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tracefw/tracecompiler/test/src/ErrorLogsTestUnit.java	Tue Aug 31 16:45:49 2010 +0300
@@ -0,0 +1,43 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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: 
+*
+*/
+
+
+import org.junit.Test;
+
+public class ErrorLogsTestUnit extends ErrorLogsTestBase {
+	
+	public static void main(String args[]) {		
+	      	org.junit.runner.JUnitCore.main(ErrorLogsTestUnit.class.getName());
+	    }
+	
+	/**
+	 * This test calls Trace Compiler directly and invokes it against a simple c++ project with one cpp and one mmp file
+	 * The exit code from tracecompiler is checked to ensure an error is indicated and the logs are also checked
+	 */
+	@Test
+	public void UnitTestTraceCompiler (){
+		System.out.println ("*********************UnitTestTraceCompiler()****************************");
+		//Call Trace Compiler
+		InvokeCompiler("_tc");
+		
+		//Parse the Trace Compiler log files
+		ParseLogFile("_tc");
+		
+		//Validate the Trace Compiler log files
+		ValidateLogs("TraceErrorApp","_tc");		
+	}
+}
\ No newline at end of file