configurationengine/source/plugins/symbian/integration-test/export_standalone.py
changeset 0 2e8eeb919028
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configurationengine/source/plugins/symbian/integration-test/export_standalone.py	Thu Mar 11 17:04:37 2010 +0200
@@ -0,0 +1,32 @@
+#
+# 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.
+    """
+    # Copy CRML DC test data from the CRML plug-in test data
+    dirs_to_copy = ['comp_project_1', 'comp_project_2']
+    for dir in dirs_to_copy:
+        copy_dir(source_dir             = os.path.join(ROOT_PATH, '../ConeCRMLPlugin/CRMLPlugin/tests', dir),
+                 target_dir             = os.path.join(target_path, 'testdata/compare/crml_dc', dir),
+                 dir_ignore_functions   = [lambda d: d == '.svn'])