trick/test/SIM_stls/RUN_test/unit_test.py
Jacqueline Deans f19ba7df78
Test and Document STL Checkpointing (#1355)
* Updates SIM_stl to include checkpoint writing and checkpoint restore, as well as adding more data structures to test
* Thoroughly tests supported STL types with MM_stl_checkpoint and MM_stl_restore
* Adds an option to enable or disable STL restore in accessible interfaces and changes default to true
* Updates documentation on STL checkpointing to clearly state limitations and known bugs
2022-10-07 08:37:09 -05:00

22 lines
590 B
Python

import trick
from trick.unit_test import *
def main():
trick.load_checkpoint("RUN_test/chkpnt_in")
trick.load_checkpoint_job()
trick.exec_set_job_onoff("the_object.stlc.addData", 1, False)
trick.exec_set_job_onoff("the_object.stlc.test", 1, True)
trick.exec_set_job_onoff("the_object.stlc.print", 1, False)
trick_utest.unit_tests.enable()
trick_utest.unit_tests.set_file_name( os.getenv("TRICK_HOME") + "/trick_test/SIM_stl.xml" )
trick_utest.unit_tests.set_test_name( "STLCheckpointTest" )
trick.stop(1.0)
if __name__ == "__main__":
main()