tracefw/tracecompiler/test/src/ErrorLogsTestSystem.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 import org.junit.Test;
       
    20 
       
    21 public class ErrorLogsTestSystem extends ErrorLogsTestBase{
       
    22 	
       
    23 	public static void main(String args[]) {		
       
    24 	      	org.junit.runner.JUnitCore.main(ErrorLogsTestSystem.class.getName());
       
    25 	    }
       
    26 	
       
    27 	/**
       
    28 	 * This test calls Trace Compiler via Raptor and invokes it against a simple c++ project with one mmp file containing one cpp 
       
    29 	 * The logs from Raptor (written to std::out) are checked to ensure the errors and warnings from traceCompiler are correct.
       
    30 	 */
       
    31 	@Test
       
    32 	public void SystemTestTraceCompilerAndRaptor (){
       
    33 		System.out.println ("****************SystemTestTraceCompilerAndRaptor()**********************");
       
    34 		//Call Raptor
       
    35 		InvokeCompiler("_sbs");
       
    36 		
       
    37 		//Parse the Raptor log files (from standard output)
       
    38 		ParseLogFile("_sbs");
       
    39 		
       
    40 		//Validate the Raptor log files
       
    41 		ValidateLogs("TraceErrorApp","_sbs");		
       
    42 	}
       
    43 	
       
    44 	/**
       
    45 	 * This test calls Trace Compiler via Raptor and invokes it against a c++ project with one mmp file containing two cpp files.
       
    46 	 * The logs from Raptor (written to std::out) are checked to ensure the errors and warnings from traceCompiler are correct.
       
    47 	 * It is expected that all errors from all ccp files are written to the logs.
       
    48 	 */
       
    49 	@Test
       
    50 	public void SystemTestTraceCompilerAndRaptorMultipleCpps (){
       
    51 		System.out.println ("**********SystemTestTraceCompilerAndRaptorMultipleCpps()****************");
       
    52 		//Call Raptor
       
    53 		InvokeCompiler("_mult_cpp");
       
    54 		
       
    55 		//Parse the Raptor log files (from standard output)
       
    56 		ParseLogFile("_mult_cpp");
       
    57 		
       
    58 		//Validate the Raptor log files
       
    59 		ValidateLogs("MultipleCppTraceErrorApp","_mult_cpp");		
       
    60 	}
       
    61 	
       
    62 	/**
       
    63 	 * This test calls Trace Compiler via Raptor and invokes it against a c++ project with two mmp files each containing two cpp files.
       
    64 	 * The logs from Raptor (written to std::out) are checked to ensure the erros and warnings from traceCompiler are correct.
       
    65 	 * It is expected that all errors from all cpp files in the first mmp which is compiled are written to the logs. Any mmp after that
       
    66 	 * point is not compiled.
       
    67 	 */
       
    68 	@Test
       
    69 	public void SystemTestTraceCompilerAndRaptorMultipleMmps (){
       
    70 		System.out.println ("**********SystemTestTraceCompilerAndRaptorMultipleMmps()****************");
       
    71 		//Call Raptor
       
    72 		InvokeCompiler("_mult_mmp");
       
    73 		
       
    74 		//Parse the Raptor log files (from standard output)
       
    75 		ParseLogFile("_mult_mmp");
       
    76 		
       
    77 		//Validate the Raptor log files
       
    78 		ValidateLogs("MultipleMmpTraceErrorApps","_mult_mmp");	
       
    79 	}
       
    80 }