configurationengine/source/plugins/example/integration-test/export_standalone.py
changeset 0 2e8eeb919028
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configurationengine/source/plugins/example/integration-test/export_standalone.py	Thu Mar 11 17:04:37 2010 +0200
@@ -0,0 +1,34 @@
+#
+# 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
+