Pyrogenesis  trunk
Namespaces | Functions | Variables
tests.py File Reference

Namespaces

 tests
 

Functions

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

Variables

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