def test(run_time , test_name , log_number , log_path): print "start test 14 : " print "Test Content : cpp , 1 server , 3 client , get 2 ints sum" package_name = "rpc_cpp" server_name = ["server14_1"] client_name = ["client14_1" , "client14_2" , "client14_3"] run_path = log_path[:-12] time_test.time_test(talker_name , listener_name , package_name , run_time , run_path) get_log_test.get_log_test(talker_name , listener_name , package_name , test_name , log_number, log_path , run_path) print "all test finished !"
def test(run_time , test_name , log_number , log_path): print "start test N1 : " print "Test Content : py , 1 talker , 1 listener , complicate data (struct in data)" package_name = "pub_and_sub_py" talker_name = ["talkerN1" ] listener_name = ["listenerN1"] run_path = log_path[:-12] time_test.time_test(talker_name , listener_name , package_name , test_name , log_number, log_path , run_path , run_time) print "all test finished !"
def test_20(): print_name = "test_20" print "start " + print_name global test_name, log_path test_info = "3 server , 3 client in 3 process , 3 topic , 100 requests " run_time = 300 package_name = "rpc_py" exec_name = [ "server20_1", "server20_2", "server20_3", "client20_1", "client20_2", "client20_3" ] end_turn = [0, 1, 2] run_path = log_path[: -12] + '/install_isolated/' + package_name + "/lib/" + package_name + "/" log_index = "20" para_list = [[], [], [], [], [], []] rpc_flag = True client_st = 3 time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content, rpc_flag, client_st) print "finished " + print_name
def test(run_time , test_name , log_number , log_path): print "start test 3 : " print "Test Content : cpp , 1 talker , 3 listener , 1 topic" package_name = "pub_and_sub_cpp" talker_name = ["talker3_1"] listener_name = ["listener3_1" , "listener3_2" , "listener3_3"] run_path = log_path[:-12] time_test.time_test(talker_name , listener_name , package_name , test_name , log_number, log_path , run_path , run_time) print "all test finished !"
def test_17(): print_name = "test_17" print "start " + print_name global test_name, log_path test_info = "1 server , 1 client , 100 requests " run_time = 300 package_name = "rpc_py" exec_name = ["server17", "client17"] end_turn = [0] run_path = log_path[: -12] + '/install_isolated/' + package_name + "/lib/" + package_name + "/" log_index = "17" para_list = [ [], [], ] rpc_flag = True client_st = 1 time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content, rpc_flag, client_st) print "finished " + print_name
def test_11(): print_name = "test_11" print "start " + print_name global test_name, log_path test_info = "3 pub, 3 sub, 3 topic , 20hz , 2M data , 300s , sub stopped first" run_time = 300 package_name = "pub_and_sub_cpp" exec_name = [ "talkerbase", "talkerbase", "talkerbase", "listenerbase", "listenerbase", "listenerbase" ] end_turn = [3, 4, 5, 0, 1, 2] run_path = log_path[: -12] + '/install_isolated/' + package_name + "/lib/" + package_name + "/" log_index = "11_1" para_list = [["--name", "talker1", "--topic", "chatter1"], ["--name", "talker2", "--topic", "chatter2"], ["--name", "talker3", "--topic", "chatter3"], ["--name", "listener1", "--topic", "chatter1"], ["--name", "listener2", "--topic", "chatter2"], ["--name", "listener3", "--topic", "chatter3"]] time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) test_info = "3 pub, 3 sub, 3 topic , 20hz , 2M data , 300s , pub stopped first" end_turn = [0, 1, 2, 3, 4, 5] log_index = "11_2" time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) print "finished " + print_name
def test(run_time, test_name, log_number, log_path): print "start test 10 : " print "Test Content : py , 1 talker , 1 listener , 1 topic , float payload" package_name = "pub_and_sub_py" talker_name = ["talker10"] listener_name = ["listener10"] run_path = log_path[:-12] time_test.time_test(talker_name, listener_name, package_name, test_name, log_number, log_path, run_path, run_time) print "all test finished !"
def test(run_time, test_name, log_number, log_path): print "start test 12 : " print "Test Content : py , 3 talker , 3 listener ,3 topic" package_name = "pub_and_sub_py" talker_name = ["talker12_1", "talker12_2", "talker12_3"] listener_name = ["listener12_1", "listener12_2", "listener12_3"] run_path = log_path[:-12] time_test.time_test(talker_name, listener_name, package_name, test_name, log_number, log_path, run_path, run_time) print "all test finished !"
def test_N1(): print_name = "test_N1" print "start " + print_name global test_name, log_path test_info = "1 pub, 1 sub, 20hz , 256B - 2M data , 60s , sub stopped first" run_time = 60 package_name = "pub_and_sub_cpp" exec_name = ["talkerN1", "listenerN1"] end_turn = [1, 0] run_path = log_path[: -12] + '/install_isolated/' + package_name + "/lib/" + package_name + "/" log_index = "N1_1" para_list = [ [], [], ] time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) test_info = "1 pub, 1 sub, 20hz , 256B - 2M data , 60s , pub stopped first" end_turn = [0, 1] log_index = "N1_2" time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) print "finished " + print_name
def test_12(): print_name = "test_12" print "start " + print_name global test_name, log_path test_info = "3 pub, 3 sub, 20hz , 2M data , 300s , sub stopped first" run_time = 60 package_name = "pub_and_sub_py" exec_name = [ "talker12_1", "talker12_2", "talker12_3", "listener12_1", "listener12_2", "listener12_3" ] end_turn = [3, 4, 5, 0, 1, 2] run_path = log_path[: -12] + '/install_isolated/' + package_name + "/lib/" + package_name + "/" log_index = "12_1" para_list = [[], [], [], [], [], []] time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) test_info = " 3 pub, 3 sub, 20hz , 2M data , 300s , pub stopped first" end_turn = [0, 1, 2, 3, 4, 5] log_index = "12_2" time_test.time_test(end_turn, exec_name, test_name, log_path, run_path, run_time, log_index, test_info, para_list, test_msg_content) print "finished " + print_name
def test(run_time , test_name , log_number , log_path): print "start test 5 : " print "Test Content : cpp , 1 talker , 1 listener ,1 topic , payload = 256 and double everytime" package_name = "pub_and_sub_cpp" talker_name = ["talker5_1"] listener_name = ["listener5_1"] run_path = log_path[:-12] time_test.time_test(talker_name , listener_name , package_name , test_name , log_number, log_path , run_path , run_time) print "all test finished !"