equal
deleted
inserted
replaced
|
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 "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 import sys, os, re, unittest |
|
18 |
|
19 ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) |
|
20 |
|
21 PLUGINS_ROOT = os.path.normpath(os.path.join(ROOT_PATH, '..')) |
|
22 assert os.path.split(PLUGINS_ROOT)[1] == 'plugins' |
|
23 if PLUGINS_ROOT not in sys.path: sys.path.append(PLUGINS_ROOT) |
|
24 import plugin_utils |
|
25 |
|
26 if __name__ == "__main__": |
|
27 # Collect a list of plug-in source paths and plug-in module names |
|
28 paths_and_modnames = plugin_utils.find_plugin_sources(ROOT_PATH) |
|
29 # Create a test suite from them |
|
30 suite = plugin_utils.collect_suite_from_source_list(paths_and_modnames) |
|
31 # Run the suite |
|
32 unittest.TextTestRunner(verbosity=2).run(suite) |