configurationengine/source/plugins/example/integration-test/export_standalone.py
author terytkon
Sat, 06 Nov 2010 16:59:14 +0200
changeset 9 63964d875993
parent 0 2e8eeb919028
permissions -rw-r--r--
Merge changes to system model generator to SF tip.

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
#

import os
from testautomation.copy_dir import copy_dir

ROOT_PATH = os.path.dirname(os.path.abspath(__file__))

def export_standalone(target_path):
    """
    Export any needed extra data for standalone tests.
    @param target_path: The path where the standalone tests are being exported.
    """
    # For example, one could copy test data from a plug-in into the target directory:
    #dirs_to_copy = ['test_project_', 'test_project_2']
    #for dir in dirs_to_copy:
    #    copy_dir(source_dir             = os.path.join(ROOT_PATH, '../ConeExamplePlugin/examplemlplugin/tests', dir),
    #             target_dir             = os.path.join(target_path, 'testdata/generate/test_projects', dir),
    #             dir_ignore_functions   = [lambda d: d == '.svn'])
    pass