13 # |
13 # |
14 # Description: |
14 # Description: |
15 # |
15 # |
16 |
16 |
17 from raptor_tests import SmokeTest |
17 from raptor_tests import SmokeTest |
|
18 import sys |
18 |
19 |
19 def run(): |
20 def run(): |
20 t = SmokeTest() |
21 t = SmokeTest() |
21 t.usebash = True |
22 t.usebash = True |
22 result = SmokeTest.PASS |
23 result = SmokeTest.PASS |
23 |
24 |
|
25 |
|
26 if sys.platform.startswith("win"): |
|
27 elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32.exe" |
|
28 else: |
|
29 elf2e32 = "$(EPOCROOT)/epoc32/tools/elf2e32" |
|
30 |
24 description = """This test attempts to check that an exe gets the capabilities that we requested. It's ARM specific since it uses elf2e32. Tries to demonstrate capabilties being turned off then on in the mmp.""" |
31 description = """This test attempts to check that an exe gets the capabilities that we requested. It's ARM specific since it uses elf2e32. Tries to demonstrate capabilties being turned off then on in the mmp.""" |
25 command = "sbs -b smoke_suite/test_resources/simple/capability.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \ |
32 command = "sbs -b smoke_suite/test_resources/simple/capability.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \ |
26 "$(EPOCROOT)/epoc32/tools/elf2e32 --dump=s --e32input=$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe" |
33 elf2e32 + " --dump=s --e32input=$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe" |
27 targets = [ |
34 targets = [ |
28 "$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe", |
35 "$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe", |
29 "$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe.map" |
36 "$(EPOCROOT)/epoc32/release/armv5/urel/test_capability.exe.map" |
30 ] |
37 ] |
31 buildtargets = [ |
38 buildtargets = [ |
32 ] |
39 ] |
33 mustmatch = [ |
40 mustmatch = [ |
34 "\s*Secure ID: 10003a5c$", |
41 "\s*Secure ID: 10003a5c$", |
35 "\s*Vendor ID: 00000000$", |
42 "\s*Vendor ID: 00000000$", |
36 "\s*Capabilities: 00000000 000ffebe$", |
43 "\s*Capabilities: 00000000 000fffbf$", |
37 "\s*CommDD$", |
44 "\s*CommDD$", |
38 "\s*PowerMgmt$", |
45 "\s*PowerMgmt$", |
39 "\s*MultimediaDD$", |
46 "\s*MultimediaDD$", |
40 "\s*ReadDeviceData$", |
47 "\s*ReadDeviceData$", |
41 "\s*WriteDeviceData$", |
48 "\s*WriteDeviceData$", |