Commit d348c414 authored by Florian Kaltenberger's avatar Florian Kaltenberger

nr_pbchsim CI improvements

parent 44fe00d0
...@@ -1055,7 +1055,7 @@ ...@@ -1055,7 +1055,7 @@
<main_exec_args>-s-11 -S-10 -n1000 <main_exec_args>-s-11 -S-10 -n1000
-s-11 -S-10 -n10 -I</main_exec_args> -s-11 -S-10 -n10 -I</main_exec_args>
<tags>nr_pbchsim.test1</tags> <tags>nr_pbchsim.test1</tags>
<search_expr_true>n_errors \(negative CRC\) = 0</search_expr_true> <search_expr_true>PBCH test OK</search_expr_true>
<search_expr_false>segmentation fault|assertion|exiting|fatal</search_expr_false> <search_expr_false>segmentation fault|assertion|exiting|fatal</search_expr_false>
<nruns>3</nruns> <nruns>3</nruns>
</testCase> </testCase>
......
...@@ -133,6 +133,8 @@ int main(int argc, char **argv) ...@@ -133,6 +133,8 @@ int main(int argc, char **argv)
int loglvl=OAILOG_WARNING; int loglvl=OAILOG_WARNING;
float target_error_rate = 0.01;
cpuf = get_cpu_freq_GHz(); cpuf = get_cpu_freq_GHz();
if ( load_configmodule(argc,argv) == 0) { if ( load_configmodule(argc,argv) == 0) {
...@@ -296,6 +298,7 @@ int main(int argc, char **argv) ...@@ -296,6 +298,7 @@ int main(int argc, char **argv)
case 'I': case 'I':
run_initial_sync=1; run_initial_sync=1;
target_error_rate=0.1;
break; break;
case 'L': case 'L':
...@@ -571,7 +574,12 @@ int main(int argc, char **argv) ...@@ -571,7 +574,12 @@ int main(int argc, char **argv)
printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR,n_errors,n_trials); printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR,n_errors,n_trials);
if (n_trials==1 || ((float)n_errors/(float)n_trials < 0.01)) if ((float)n_errors/(float)n_trials <= target_error_rate) {
printf("PBCH test OK\n");
break;
}
if (n_trials==1)
break; break;
} // NSR } // NSR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment