project/com.nokia.carbide.cpp.epoc.engine.tests/data/pkg/example/ifelse.pkg
author tzelaw
Fri, 24 Apr 2009 14:48:12 -0500
changeset 125 b878114e8cc2
parent 2 d760517a8095
permissions -rw-r--r--
Overhaul of RCOMP/GCCE error parsing to fix 8901: -RCOMP error parser will defer C preprocessor errors to GCCECompiler error parser. -GCCE error parser is splited into compiler/assembler/linker, calling their counterpart in CDT respectively before handling special cases. -Updated error messages RCOMP error parser according to latest copy of RCOMP source. -WINSCW build configuration is using CDT GCC error parser instead of GCCE(for RCOMP C preprocessor error) Updated test case for error parsing -Added Bugzilla regression for GCC and make error parser -Converted test case from hardcoded SDK_ID to picking up the first SDK from device.xml with the build config specified by the test. -Fixed bug in test harness for input file ends on the last line so it was processed in the same run. -Fixed bug in test harness for not clearing problem view before each run(for visual cross check). -Rewritten test harness to use JDOM XML handling(from JAXP), to solve deployment issue in newer JRE.

;
; 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: 
;
; Demonstrates IF and else statements

;Languages
&EN, FR

;Header
#{"TestIf-EN","TestIf-FR"}, (0x1000000F), 1, 2, 3

%{"Vendor", "Vendeur"}
:"Vendor"

; Big if
IF     (LANGUAGE=0) OR
    (MANUFACTURER=5) OR
    (MANUFACTURER<>5) OR
    (ManufacturerHardwareRev>0x100) OR
    (ManufacturerSoftwareRev>0x100) OR
    (ManufacturerSoftwareBuild>257) OR
    (Model=0) OR
    (MachineUid=0) OR
    (DeviceFamily=0) OR
    (DeviceFamilyRev>=6) OR
    (CPU=0) OR
    (CPUArch=0) OR
    (CPUABI=0) OR
    (CPUSpeed>=36) OR
    (SystemTickPeriod>1) OR
    (MemoryRAM>=0x800000) OR
    (MemoryROM>=0x800000) OR
    (MemoryPageSize=0x1000) OR
    (PowerBackup) OR
    (Keyboard) OR
    (KeyboardDeviceKeys=5) OR
    (KeyboardAppKeys=8) OR
    (KeyboardClick) OR
    (KeyboardClickVolumeMax=10) OR
    (DisplayXPixels>=640) OR
    (DisplayYPixels>=200) OR
    (DisplayXTwips=3200) OR
    (DisplayYTwips=1440) OR
    (DisplayColors>=256) OR
    (DisplayContrastMax=37) OR
    (Backlight) OR
    (Pen) OR
    (PenX>=695) OR
    (PenY>=280) OR
    (PenDisplayOn) OR
    (PenClick) OR
    (PenClickVolumeMax=1) OR
    (Mouse) OR
    (MouseX>=640) OR
    (MouseY>=200) OR
    (MouseButtons=2) OR
    (Mouse) OR
    (CaseSwitch) OR
    (LEDs=2) OR
    (Integratedphone) OR
    (NumHalAttributes>1)
    @"sub.sis",(0x10000002)
    "text\pass.txt"-"", FT, TC
ENDIF

;Ordinary file to fixed drive
IF MemoryRAM>0
    "text\pass.txt"-"", FT, TC
ELSEIF MemoryRAM=0
    "text\fail.txt"-"", FT, TC
ELSEIF EXISTS("c:\private\10000010\import\test.txt")
    {
    "text\englishfile.txt"
    "text\frenchfile.txt"
    }-"C:\private\10000010\import\lang.txt"
ELSE
    {
    "text\englishfile.txt"
    "text\frenchfile.txt"
    }-"C:\private\10000010\import\lang2.txt"
ENDIF