joey shelton / LED_Demo2

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by joey shelton

Embed: (wiki syntax)

« Back to documentation index

ProgenBuildTest Class Reference

ProgenBuildTest Class Reference

Public Member Functions

def __init__
def mcu_ide_pairs
def handle_log_files
def generate_and_build

Detailed Description

Object to encapsulate logic for progen build testing

Definition at line 38 of file build_test.py.


Constructor & Destructor Documentation

def __init__ (   self,
  desired_ides,
  mcus,
  tests 
)
Initialize an instance of class ProgenBuildTest
Args:
    desired_ides: the IDEs you wish to make/build project files for
    mcus: the mcus to specify in project files
    tests: the test projects to make/build project files from

Definition at line 40 of file build_test.py.


Member Function Documentation

def generate_and_build (   self,
  clean = False 
)
Generate the project file and build the project
Args:
    clean: a boolean value determining whether to remove the
   created project files

Returns:
    successes: a list of strings that contain the mcu, ide, test
       properties of a successful build test
    skips: a list of strings that contain the mcu, ide, test properties
   of a skipped test (if the ide does not support mcu)
    failures: a list of strings that contain the mcu, ide, test
       properties of a failed build test

Definition at line 89 of file build_test.py.

def handle_log_files (   project_dir,
  tool,
  name 
)
Renames/moves log files
Args:
    project_dir: the directory that contains project files
    tool: the ide that created the project files
    name: the name of the project
    clean: a boolean value determining whether to remove the
   created project files

Definition at line 61 of file build_test.py.

def mcu_ide_pairs (   self )
Yields tuples of valid mcu, ide combinations

Definition at line 53 of file build_test.py.