configurationengine/source/cone/runtests.py
author m2lahtel
Tue, 10 Aug 2010 14:29:28 +0300
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
permissions -rw-r--r--
ConE 1.2.11 release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     1
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     3
# All rights reserved.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     4
# This component and the accompanying materials are made available
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     6
# which accompanies this distribution, and is available
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     8
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     9
# Initial Contributors:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    11
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    12
# Contributors:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    13
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    14
# Description: 
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    15
#
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    16
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    17
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    18
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    19
if __name__ == '__main__':
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    20
    import nose
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    21
    setuptools_incompat = ('report', 'prepareTest',
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    22
                           'prepareTestLoader', 'prepareTestRunner',
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    23
                           'setOutputStream')
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    24
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    25
    plugins = nose.plugins.manager.RestrictedPluginManager(exclude=setuptools_incompat)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    26
    allfiles = nose.config.all_config_files() + ['nose_unittests.cfg']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    27
    conf = nose.config.Config(files=allfiles,
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    28
                  plugins=plugins)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    29
    conf.configure(argv=['collector'])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    30
    nose.main(config=conf)
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    31