mirror of https://github.com/PentHertz/srsLTE.git
reduce default execution for RLC stress tests
This commit is contained in:
parent
d2d30ca90d
commit
4a29f1f0f0
|
@ -32,9 +32,9 @@ add_test(rlc_am_test rlc_am_test)
|
|||
|
||||
add_executable(rlc_stress_test rlc_stress_test.cc)
|
||||
target_link_libraries(rlc_stress_test srslte_upper srslte_phy srslte_common ${Boost_LIBRARIES})
|
||||
add_test(rlc_am_stress_test rlc_stress_test --duration 10 --mode="AM")
|
||||
add_test(rlc_um_stress_test rlc_stress_test --duration 10 --mode="UM")
|
||||
add_test(rlc_tm_stress_test rlc_stress_test --duration 10 --mode="TM" --opp_sdu_ratio=1.0)
|
||||
add_test(rlc_am_stress_test rlc_stress_test --mode=AM)
|
||||
add_test(rlc_um_stress_test rlc_stress_test --mode=UM)
|
||||
add_test(rlc_tm_stress_test rlc_stress_test --mode=TM --opp_sdu_ratio=1.0)
|
||||
|
||||
add_executable(rlc_um_data_test rlc_um_data_test.cc)
|
||||
target_link_libraries(rlc_um_data_test srslte_upper srslte_phy srslte_common)
|
||||
|
|
|
@ -70,9 +70,9 @@ void parse_args(stress_test_args_t *args, int argc, char *argv[]) {
|
|||
bpo::options_description common("Configuration options");
|
||||
common.add_options()
|
||||
("mode", bpo::value<std::string>(&args->mode)->default_value("AM"), "Whether to test RLC acknowledged or unacknowledged mode (AM/UM)")
|
||||
("duration", bpo::value<uint32_t>(&args->test_duration_sec)->default_value(10), "Duration (sec)")
|
||||
("sdu_gen_delay", bpo::value<uint32_t>(&args->sdu_gen_delay_usec)->default_value(10), "SDU generation delay (usec)")
|
||||
("pdu_tx_delay", bpo::value<uint32_t>(&args->pdu_tx_delay_usec)->default_value(10), "Delay in MAC for transfering PDU from tx'ing RLC to rx'ing RLC (usec)")
|
||||
("duration", bpo::value<uint32_t>(&args->test_duration_sec)->default_value(5), "Duration (sec)")
|
||||
("sdu_gen_delay", bpo::value<uint32_t>(&args->sdu_gen_delay_usec)->default_value(0), "SDU generation delay (usec)")
|
||||
("pdu_tx_delay", bpo::value<uint32_t>(&args->pdu_tx_delay_usec)->default_value(0), "Delay in MAC for transfering PDU from tx'ing RLC to rx'ing RLC (usec)")
|
||||
("error_rate", bpo::value<float>(&args->error_rate)->default_value(0.1), "Rate at which RLC PDUs are dropped")
|
||||
("opp_sdu_ratio", bpo::value<float>(&args->opp_sdu_ratio)->default_value(0.0), "Ratio between MAC opportunity and SDU size (0==random)")
|
||||
("reestablish", bpo::value<bool>(&args->reestablish)->default_value(false), "Mimic RLC reestablish during execution")
|
||||
|
@ -343,7 +343,7 @@ void stress_test(stress_test_args_t args)
|
|||
lcid = 0;
|
||||
} else {
|
||||
cout << "Unsupported RLC mode " << args.mode << ", exiting." << endl;
|
||||
return;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
rlc rlc1;
|
||||
|
@ -403,4 +403,6 @@ int main(int argc, char **argv) {
|
|||
|
||||
stress_test(args);
|
||||
byte_buffer_pool::get_instance()->cleanup();
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue