Line | |
---|
1 |
|
---|
2 | # $Id: unittests.py 11266 2010-10-17 16:06:34Z pstorz $
|
---|
3 |
|
---|
4 | import logging
|
---|
5 | logging.basicConfig(level=logging.ERROR,
|
---|
6 | format='%(asctime)s %(levelname)s \t (%(module)s:%(lineno)d) %(message)s ',
|
---|
7 | #filename='vanHelsing.log',
|
---|
8 | filemode='w')
|
---|
9 |
|
---|
10 | import cProfile
|
---|
11 |
|
---|
12 | import nosferatu.bacresources as bacresources
|
---|
13 | #import unittest
|
---|
14 | import os
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | def prof():
|
---|
19 | '''
|
---|
20 | setup our test configuration
|
---|
21 | '''
|
---|
22 | dc = bacresources.DataCenter('regression/dassIT.dmdz')
|
---|
23 | #print os.getcwdu()
|
---|
24 | #configstring = open('regression/bacula-dir.conf').read()
|
---|
25 | #self.DirConf = bacresources.DirectorConfig(configstring)
|
---|
26 | #DirConf = self.dc.directors[0]
|
---|
27 | #print 'cwd: ' + os.getcwd()
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 | cProfile.run('prof()')
|
---|
32 |
|
---|
33 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.