Pyrogenesis  trunk
Functions | Variables
tests Namespace Reference

Functions

def log (severity, message)
 
def _convert_dae (func, filename, expected_status=0)
 
def convert_dae_to_pmd (args, kwargs)
 
def convert_dae_to_psa (args, kwargs)
 
def clean_dir (path)
 
def create_actor (mesh, texture, anims, props_)
 
def create_actor_static (mesh, texture)
 

Variables

string binaries = '../../../binaries'
 
dictionary dll_filename
 
 library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename))
 
 clog = CFUNCTYPE(None, c_int, c_char_p)(log)
 
 skeleton_definitions = open('%s/data/tools/collada/skeletons.xml' % binaries).read()
 
 expected_status
 
string test_data = binaries+'/data/tests/collada'
 
string test_mod = binaries+'/data/mods/_test.collada'
 
string input_filename = '%s/%s.dae'
 
string output_filename = '%s/art/meshes/%s.pmd'
 
 input = open(input_filename).read()
 
 output = convert_dae_to_pmd(input)
 
 xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')])
 

Function Documentation

def tests._convert_dae (   func,
  filename,
  expected_status = 0 
)
private
def tests.clean_dir (   path)
def tests.convert_dae_to_pmd (   args,
  kwargs 
)
def tests.convert_dae_to_psa (   args,
  kwargs 
)
def tests.create_actor (   mesh,
  texture,
  anims,
  props_ 
)
def tests.create_actor_static (   mesh,
  texture 
)
def tests.log (   severity,
  message 
)

Variable Documentation

string tests.binaries = '../../../binaries'
tests.clog = CFUNCTYPE(None, c_int, c_char_p)(log)
dictionary tests.dll_filename
Initial value:
1 = {
2  'posix': './libCollada_dbg.so',
3  'nt': 'Collada_dbg.dll',
4 }[os.name]
tests.expected_status
tests.input = open(input_filename).read()
string tests.input_filename = '%s/%s.dae'
tests.library = cdll.LoadLibrary('%s/system/%s' % (binaries, dll_filename))
tests.output = convert_dae_to_pmd(input)
string tests.output_filename = '%s/art/meshes/%s.pmd'
tests.skeleton_definitions = open('%s/data/tools/collada/skeletons.xml' % binaries).read()
string tests.test_data = binaries+'/data/tests/collada'
string tests.test_mod = binaries+'/data/mods/_test.collada'
tests.xml = create_actor(test_file, 'male', [('Idle','dudeidle'),('Corpse','dudecorpse'),('attack1',test_file),('attack2','jav2d')], [('helmet','teapot_basic_static')])