GPRS BSSGP test: integrate into autotest

we use a smalle shell script to iterate over multiple tests
This commit is contained in:
Harald Welte 2012-09-07 11:14:56 +02:00
parent 57e5b94e90
commit 04f0989d11
4 changed files with 223 additions and 0 deletions

View File

@ -0,0 +1,51 @@
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:697 Single PDU (size=1000) is larger than maximum bucket size (100)!
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
<0000> gprs_bssgp.c:554 BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes


150
tests/gb/bssgp_fc_tests.ok Normal file
View File

@ -0,0 +1,150 @@
===== BSSGP flow-control test START
size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=10 oct, pdu_cnt=20
0: FC IN Nr 1
0: FC OUT Nr 1
0: FC IN Nr 2
0: FC OUT Nr 2
0: FC IN Nr 3
0: FC OUT Nr 3
0: FC IN Nr 4
0: FC OUT Nr 4
0: FC IN Nr 5
0: FC OUT Nr 5
0: FC IN Nr 6
0: FC OUT Nr 6
0: FC IN Nr 7
0: FC OUT Nr 7
0: FC IN Nr 8
0: FC OUT Nr 8
0: FC IN Nr 9
0: FC OUT Nr 9
0: FC IN Nr 10
0: FC OUT Nr 10
0: FC IN Nr 11
0: FC IN Nr 12
0: FC IN Nr 13
0: FC IN Nr 14
0: FC IN Nr 15
0: FC IN Nr 16
0: FC IN Nr 17
0: FC IN Nr 18
0: FC IN Nr 19
0: FC IN Nr 20
10: FC OUT Nr 11
20: FC OUT Nr 12
30: FC OUT Nr 13
40: FC OUT Nr 14
50: FC OUT Nr 15
===== BSSGP flow-control test END
===== BSSGP flow-control test START
size-max=100 oct, leak-rate=100 oct/s, queue-len=100 msgs, pdu_len=10 oct, pdu_cnt=20
0: FC IN Nr 1
0: FC OUT Nr 1
0: FC IN Nr 2
0: FC OUT Nr 2
0: FC IN Nr 3
0: FC OUT Nr 3
0: FC IN Nr 4
0: FC OUT Nr 4
0: FC IN Nr 5
0: FC OUT Nr 5
0: FC IN Nr 6
0: FC OUT Nr 6
0: FC IN Nr 7
0: FC OUT Nr 7
0: FC IN Nr 8
0: FC OUT Nr 8
0: FC IN Nr 9
0: FC OUT Nr 9
0: FC IN Nr 10
0: FC OUT Nr 10
0: FC IN Nr 11
0: FC IN Nr 12
0: FC IN Nr 13
0: FC IN Nr 14
0: FC IN Nr 15
0: FC IN Nr 16
0: FC IN Nr 17
0: FC IN Nr 18
0: FC IN Nr 19
0: FC IN Nr 20
10: FC OUT Nr 11
20: FC OUT Nr 12
30: FC OUT Nr 13
40: FC OUT Nr 14
50: FC OUT Nr 15
60: FC OUT Nr 16
70: FC OUT Nr 17
80: FC OUT Nr 18
90: FC OUT Nr 19
100: FC OUT Nr 20
===== BSSGP flow-control test END
===== BSSGP flow-control test START
size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=1000 oct, pdu_cnt=20
0: FC IN Nr 1
0: FC IN Nr 2
0: FC IN Nr 3
0: FC IN Nr 4
0: FC IN Nr 5
0: FC IN Nr 6
0: FC IN Nr 7
0: FC IN Nr 8
0: FC IN Nr 9
0: FC IN Nr 10
0: FC IN Nr 11
0: FC IN Nr 12
0: FC IN Nr 13
0: FC IN Nr 14
0: FC IN Nr 15
0: FC IN Nr 16
0: FC IN Nr 17
0: FC IN Nr 18
0: FC IN Nr 19
0: FC IN Nr 20
===== BSSGP flow-control test END
===== BSSGP flow-control test START
size-max=100 oct, leak-rate=100 oct/s, queue-len=5 msgs, pdu_len=10 oct, pdu_cnt=20
0: FC IN Nr 1
0: FC OUT Nr 1
0: FC IN Nr 2
0: FC OUT Nr 2
0: FC IN Nr 3
0: FC OUT Nr 3
0: FC IN Nr 4
0: FC OUT Nr 4
0: FC IN Nr 5
0: FC OUT Nr 5
0: FC IN Nr 6
0: FC OUT Nr 6
0: FC IN Nr 7
0: FC OUT Nr 7
0: FC IN Nr 8
0: FC OUT Nr 8
0: FC IN Nr 9
0: FC OUT Nr 9
0: FC IN Nr 10
0: FC OUT Nr 10
0: FC IN Nr 11
0: FC IN Nr 12
0: FC IN Nr 13
0: FC IN Nr 14
0: FC IN Nr 15
0: FC IN Nr 16
0: FC IN Nr 17
0: FC IN Nr 18
0: FC IN Nr 19
0: FC IN Nr 20
10: FC OUT Nr 11
20: FC OUT Nr 12
30: FC OUT Nr 13
40: FC OUT Nr 14
50: FC OUT Nr 15
===== BSSGP flow-control test END

15
tests/gb/bssgp_fc_tests.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
T=$1/bssgp_fc_test
# default test (1 second, insufficient queue depth)
$T
# default test (1 second, sufficient queue depth)
$T -d 100
# test with PDU too large for bucket max
$T -l 1000
# test with 100 byte PDUs (10 second)
$T -s 100

View File

@ -9,6 +9,13 @@ cat $abs_srcdir/a5/a5_test.ok > expout
AT_CHECK([$abs_top_builddir/tests/a5/a5_test], [], [expout])
AT_CLEANUP
AT_SETUP([bssgp-fc])
AT_KEYWORDS([bssgp-fc])
cat $abs_srcdir/gb/bssgp_fc_tests.ok > expout
cat $abs_srcdir/gb/bssgp_fc_tests.err > experr
AT_CHECK([$abs_top_builddir/tests/gb/bssgp_fc_tests.sh $abs_top_builddir/tests/gb], [], [expout], [experr])
AT_CLEANUP
AT_SETUP([bits])
AT_KEYWORDS([bits])
cat $abs_srcdir/bits/bitrev_test.ok > expout