179
|
1 |
#============================================================================
|
|
2 |
#Name : test_dependancygraph.py
|
|
3 |
#Part of : Helium
|
|
4 |
|
|
5 |
#Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
6 |
#All rights reserved.
|
|
7 |
#This component and the accompanying materials are made available
|
|
8 |
#under the terms of the License "Eclipse Public License v1.0"
|
|
9 |
#which accompanies this distribution, and is available
|
|
10 |
#at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
11 |
#
|
|
12 |
#Initial Contributors:
|
|
13 |
#Nokia Corporation - initial contribution.
|
|
14 |
#
|
|
15 |
#Contributors:
|
|
16 |
#
|
|
17 |
#Description:
|
|
18 |
#===============================================================================
|
|
19 |
|
|
20 |
import unittest
|
|
21 |
import dependancygraph
|
|
22 |
import logging
|
|
23 |
import tempfile
|
|
24 |
import os
|
|
25 |
|
|
26 |
_logger = logging.getLogger('test.dependancygraph')
|
|
27 |
logging.basicConfig(level=logging.INFO)
|
|
28 |
|
|
29 |
class DependancygraphTest(unittest.TestCase):
|
|
30 |
|
|
31 |
def test_dependancygraph(self):
|
|
32 |
(fd, filename) = tempfile.mkstemp()
|
|
33 |
f = os.fdopen(fd, 'w')
|
|
34 |
f.write('test')
|
|
35 |
f.close()
|
|
36 |
dependancygraph.createGraph(os.path.join(os.environ['HELIUM_HOME'], 'config/ivy/ivy.xml'), filename, os.path.join(os.environ['HELIUM_HOME'], 'external/python/lib'), os.path.join(os.environ['HELIUM_HOME'], 'extensions/nokia/external/python/lib'), False) |