aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/dtx_check.gawk
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-10-27 16:58:23 +0200
committerHarald Welte <laforge@gnumonks.org>2016-11-03 12:31:37 +0000
commit4008ebb9258b551e23ff66c5f5abf8880f4398d7 (patch)
tree22141e252ed24fc9593bf4f1b79db18769eb2759 /contrib/dtx_check.gawk
parent9d102508a8fdbac7a9e3da59ef410997a86d6103 (diff)
DTX DL: add AMR HR support to scheduling check
superfemto.sh: Expand log converter to use case-insensitive matching to accommodate for spelling differences in DSP logs. Add strings/events specific to AMR HR. dtx_check.gawk: Remove redundand variables from output. Add checks specific to AMR HR. Change-Id: Icce3178605f46bbf3cad15d4eaff18a4d164ad1a
Diffstat (limited to 'contrib/dtx_check.gawk')
-rwxr-xr-xcontrib/dtx_check.gawk12
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