Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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(f"{binaries}/system/{dll_filename}")
 
 clog = CFUNCTYPE(None, c_int, c_char_p)(log)
 
 encoding
 
 skeleton_definitions = fd.read()
 
 expected_status
 
string test_data = binaries + "/data/tests/collada"
 
string test_mod = binaries + "/data/mods/_test.collada"
 
string input_filename = f"{test_data}/{test_file}.dae"
 
string output_filename = f"{test_mod}/art/meshes/{test_file}.pmd"
 
 file_input = input_fd.read()
 
def file_output = convert_dae_to_pmd(file_input)
 
def xml
 

Function Documentation

◆ _convert_dae()

def tests._convert_dae (   func,
  filename,
  expected_status = 0 
)
private

◆ clean_dir()

def tests.clean_dir (   path)

◆ convert_dae_to_pmd()

def tests.convert_dae_to_pmd ( args,
**  kwargs 
)

◆ convert_dae_to_psa()

def tests.convert_dae_to_psa ( args,
**  kwargs 
)

◆ create_actor()

def tests.create_actor (   mesh,
  texture,
  anims,
  props_ 
)

◆ create_actor_static()

def tests.create_actor_static (   mesh,
  texture 
)

◆ log()

def tests.log (   severity,
  message 
)

Variable Documentation

◆ binaries

string tests.binaries = "../../../binaries"

◆ clog

tests.clog = CFUNCTYPE(None, c_int, c_char_p)(log)

◆ dll_filename

dictionary tests.dll_filename
Initial value:
1= {
2 "posix": "./libCollada_dbg.so",
3 "nt": "Collada_dbg.dll",
4}[os.name]

◆ encoding

tests.encoding

◆ expected_status

tests.expected_status

◆ file_input

tests.file_input = input_fd.read()

◆ file_output

def tests.file_output = convert_dae_to_pmd(file_input)

◆ input_filename

string tests.input_filename = f"{test_data}/{test_file}.dae"

◆ library

tests.library = cdll.LoadLibrary(f"{binaries}/system/{dll_filename}")

◆ output_filename

string tests.output_filename = f"{test_mod}/art/meshes/{test_file}.pmd"

◆ skeleton_definitions

tests.skeleton_definitions = fd.read()

◆ test_data

string tests.test_data = binaries + "/data/tests/collada"

◆ test_mod

string tests.test_mod = binaries + "/data/mods/_test.collada"

◆ xml

def tests.xml
Initial value:
2 test_file,
3 "male",
4 [
5 ("Idle", "dudeidle"),
6 ("Corpse", "dudecorpse"),
7 ("attack1", test_file),
8 ("attack2", "jav2d"),
9 ],
10 [("helmet", "teapot_basic_static")],
11 )
def create_actor(mesh, texture, anims, props_)
Definition: tests.py:72