diff options
Diffstat (limited to 'contrib/dtx_check.gawk')
-rwxr-xr-x | contrib/dtx_check.gawk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/dtx_check.gawk b/contrib/dtx_check.gawk index 9e753e46..7ac8b6d0 100755 --- a/contrib/dtx_check.gawk +++ b/contrib/dtx_check.gawk @@ -27,11 +27,19 @@ BEGIN { CHK = "FAIL: missing ONSET (" $2 ") after " TYPE "." ERR++ } - if ("FORCED_FIRST" == $2 || "FORCED_NODATA" == $2) { + if ("SID_P1" == $2) { + CHK = "FAIL: regular AMR payload with FT SID and STI=0 (should be either pyaload Update or STI=1)." + ERR++ + } + if ("FORCED_FIRST" == $2 || "FORCED_NODATA" == $2 || "FORCED_F_P2" == $2 || "FORCED_F_INH" == $2 || "FORCED_U_INH" == $2) { CHK = "FAIL: event " $2 " inserted by DSP." FORCE++ ERR++ } + if ("FIRST_P2" != $2 && "FIRST_P1" == TYPE) { + CHK = "FAIL: " TYPE " followed by " $2 " instead of P2." + ERR++ + } if ("OK" == CHK) { # check inter-SID distances: if ("UPDATE" == TYPE) { if (DELTA > U_MAX) { @@ -65,7 +73,7 @@ BEGIN { if ("UPDATE" == $2 || "FIRST" == $2) { # silence SILENCE = 1 } - print $1, $2, CHK, TYPE, DELTA, SILENCE + print $1, $2, CHK if ($2 != "EMPTY") { # skip over EMPTY records TYPE = $2 FN = $1 |