equal
deleted
inserted
replaced
|
1 # Copyright (c) 2009 Nokia Corporation |
|
2 # |
|
3 # Licensed under the Apache License, Version 2.0 (the "License"); |
|
4 # you may not use this file except in compliance with the License. |
|
5 # You may obtain a copy of the License at |
|
6 # |
|
7 # http://www.apache.org/licenses/LICENSE-2.0 |
|
8 # |
|
9 # Unless required by applicable law or agreed to in writing, software |
|
10 # distributed under the License is distributed on an "AS IS" BASIS, |
|
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
12 # See the License for the specific language governing permissions and |
|
13 # limitations under the License. |
|
14 |
|
15 import e32 |
|
16 |
|
17 test_exes = open('c:\\data\\python\\tests_exe.txt', 'r').read().split('\n') |
|
18 test_log = open('c:\\data\\python\\run_tests.log', 'w') |
|
19 |
|
20 for test in test_exes: |
|
21 if test: |
|
22 try: |
|
23 # This expects the launched application closes after completion. |
|
24 # Modify launcher.py or console.cpp suitably. |
|
25 e32.start_exe('c:\\sys\\bin\\%s.exe' % test, '', True) |
|
26 test_log.write('%s execution successful\n' % test) |
|
27 except Exception, e: |
|
28 test_log.write('%s execution failed: %s\n' % (test, e)) |
|
29 |
|
30 print "------Done--------" |