sbsv2/raptor/test/smoke_suite/exe_armv5_winscw_plus_clean.py
changeset 13 c327db0664bb
equal deleted inserted replaced
12:5e7562f67577 13:c327db0664bb
       
     1 #
       
     2 # Copyright (c) 2009 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 the License "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 from raptor_tests import SmokeTest, AntiTargetSmokeTest
       
    18 
       
    19 def run():
       
    20 	result = SmokeTest.PASS
       
    21 	
       
    22 	t = SmokeTest()
       
    23 	t.id = "0005a"
       
    24 	t.name = "exe_armv5_winscw"
       
    25 	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
       
    26 			"-c winscw"
       
    27 	t.targets = [
       
    28 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
       
    29 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
       
    30 		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
       
    31 		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
       
    32 		"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
       
    33 		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
       
    34 		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
       
    35 		]
       
    36 	t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
       
    37 		"test_/armv5/udeb/test.o",
       
    38 		"test_/armv5/urel/test.o",
       
    39 		"test_/winscw/udeb/test.o",
       
    40 		"test_/winscw/udeb/test_UID_.o",
       
    41 		"test_/winscw/udeb/test.UID.CPP",
       
    42 		"test_/winscw/urel/test.o",
       
    43 		"test_/winscw/urel/test_UID_.o",
       
    44 		"test_/winscw/urel/test.UID.CPP"
       
    45 	])
       
    46 	t.run()
       
    47 	if t.result == SmokeTest.FAIL:
       
    48 		result = SmokeTest.FAIL
       
    49 		
       
    50 	
       
    51 	"Check that CLEAN removes built files"
       
    52 	c = AntiTargetSmokeTest()
       
    53 	c.id = "0005b"
       
    54 	c.name = "exe_armv5_winscw_clean"
       
    55 	c.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
       
    56 			"-c winscw CLEAN"
       
    57 	c.antitargets = [
       
    58 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
       
    59 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
       
    60 		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
       
    61 		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
       
    62 		"$(EPOCROOT)/epoc32/release/winscw/udeb/test.exe",
       
    63 		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe",
       
    64 		"$(EPOCROOT)/epoc32/release/winscw/urel/test.exe.map"
       
    65 		]
       
    66 	c.addbuildantitargets('smoke_suite/test_resources/simple/bld.inf', [
       
    67 		"test_/armv5/udeb/test.o",
       
    68 		"test_/armv5/urel/test.o",
       
    69 		"test_/winscw/udeb/test.o",
       
    70 		"test_/winscw/udeb/test_UID_.o",
       
    71 		"test_/winscw/udeb/test.UID.CPP",
       
    72 		"test_/winscw/urel/test.o",
       
    73 		"test_/winscw/urel/test_UID_.o",
       
    74 		"test_/winscw/urel/test.UID.CPP"
       
    75 	])
       
    76 	c.run()
       
    77 	if c.result == SmokeTest.FAIL:
       
    78 		result = SmokeTest.FAIL
       
    79 	
       
    80 	
       
    81 	"Rebuild"
       
    82 	t.id = "0005c"
       
    83 	t.run()
       
    84 	if t.result == SmokeTest.FAIL:
       
    85 		result = SmokeTest.FAIL
       
    86 	
       
    87 	
       
    88 	"Check that REALLYCLEAN removes built files"
       
    89 	c.id = "0005d"
       
    90 	c.name = "exe_armv5_winscw_reallyclean"
       
    91 	c.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
       
    92 			"-c winscw REALLYCLEAN"
       
    93 	c.run()
       
    94 	if c.result == SmokeTest.FAIL:
       
    95 		result = SmokeTest.FAIL
       
    96 	
       
    97 	
       
    98 	t.id = "5"
       
    99 	t.name = "exe_armv5_winscw_plus_clean"
       
   100 	t.result = result
       
   101 	t.print_result()
       
   102 	return t