Add pass criteria to PRACH USRP test

This commit is contained in:
Xavier Arteaga 2020-10-27 08:56:23 +01:00 committed by Andre Puschmann
parent 28bb4709ff
commit be400503b9
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <complex.h>
#include <math.h>
#include <srslte/common/test_common.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -368,6 +369,12 @@ int main(int argc, char** argv)
srslte_rf_close(&rf);
srslte_prach_free(&prach);
TESTASSERT(count == nof_repetitions);
TESTASSERT(delay_us_max - delay_us_min < 0.5);
TESTASSERT(isnormal(peak_min));
TESTASSERT(isnormal(peak_max));
TESTASSERT(peak_max < peak_min * 2);
printf("Done\n");
exit(0);
}