configurationengine/source/plugins/example/integration-test/export_standalone.py
author terytkon
Thu, 11 Mar 2010 17:04:37 +0200
changeset 0 2e8eeb919028
permissions -rw-r--r--
Adding EPL version of configurationengine.
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
import os
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    18
from testautomation.copy_dir import copy_dir
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    19
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    20
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    21
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    22
def export_standalone(target_path):
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    23
    """
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    24
    Export any needed extra data for standalone tests.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    25
    @param target_path: The path where the standalone tests are being exported.
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    26
    """
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    27
    # For example, one could copy test data from a plug-in into the target directory:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    28
    #dirs_to_copy = ['test_project_', 'test_project_2']
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    29
    #for dir in dirs_to_copy:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    30
    #    copy_dir(source_dir             = os.path.join(ROOT_PATH, '../ConeExamplePlugin/examplemlplugin/tests', dir),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    31
    #             target_dir             = os.path.join(target_path, 'testdata/generate/test_projects', dir),
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    32
    #             dir_ignore_functions   = [lambda d: d == '.svn'])
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    33
    pass
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    34