mirror of
https://github.com/nasa/trick.git
synced 2025-01-01 10:56:43 +00:00
5f6a5de070
* Add tests for alternate ways to open VS port * Don't connect to varserv when quiet=true in trickops * Add print to try to help debug hanging trickops test * Handle multicast connect failures gracefully * Multicast is disabled by default on mac * Forgot an important return value * Take away retries * Fix issue with restart test * Revert trickops debugging changes * Remove debugging accidentally left in [no ci] * whoops * Allow retries * Update trickops.py * sim test adjustments * Add docs [no ci] * wording [no ci] * Cleanup * Remove large messages, test that one in unit tests
32 lines
888 B
Python
32 lines
888 B
Python
import trick
|
|
import socket
|
|
|
|
from trick.unit_test import *
|
|
|
|
def main():
|
|
|
|
trick.var_server_set_port(4000)
|
|
trick.var_ascii()
|
|
trick.real_time_enable()
|
|
trick.exec_set_software_frame(0.01)
|
|
# trick.set_var_server_info_msg_on()
|
|
|
|
trick.var_server_create_tcp_socket('localhost', 49000)
|
|
trick.var_server_create_udp_socket('', 48000)
|
|
# trick.var_server_create_multicast_socket('224.10.10.10','', 47000)
|
|
|
|
# trick.exec_set_terminate_time(100000.0)
|
|
|
|
varServerPort = trick.var_server_get_port()
|
|
test_output = ( os.getenv("TRICK_HOME") + "/trick_test/SIM_test_varserv.xml" )
|
|
# command = 'os.system("./models/test_client/test_client ' + str(varServerPort) + ' --gtest_output=xml:' + test_output + ' &")'
|
|
|
|
# Start the test client after everything has been initialized (hopefully)
|
|
# trick.add_read(1.0, command)
|
|
trick.sim_control_panel_set_enabled(True)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|