tests: Make the gb test work with srcdir != builddir

* Disable color and printing the filename of the stderr log target,
  update the results
* Add the .ok, .err and .sh files to the extra_dist
* Execute the shell script from the source directory
This commit is contained in:
Holger Hans Peter Freyther 2012-09-11 11:49:35 +02:00
parent db1533651f
commit c302eca2c6
4 changed files with 56 additions and 53 deletions

View File

@ -71,7 +71,8 @@ EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) \
smscb/smscb_test.ok bits/bitrev_test.ok a5/a5_test.ok \
conv/conv_test.ok auth/milenage_test.ok \
lapd/lapd_test.ok gsm0408/gsm0408_test.ok \
gsm0808/gsm0808_test.ok \
gsm0808/gsm0808_test.ok gb/bssgp_fc_tests.err \
gb/bssgp_fc_tests.ok gb/bssgp_fc_tests.sh \
msgfile/msgfile_test.ok msgfile/msgconfig.cfg
TESTSUITE = $(srcdir)/testsuite

View File

@ -8,6 +8,7 @@
#include <string.h>
#include <getopt.h>
#include <osmocom/core/application.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/logging.h>
#include <osmocom/core/talloc.h>
@ -121,6 +122,8 @@ int main(int argc, char **argv)
};
osmo_init_logging(&info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
while ((c = getopt_long(argc, argv, "s:r:d:l:c:",
long_options, NULL)) != -1) {

View File

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

BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
Single PDU (size=1000) is larger than maximum bucket size (100)!
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes
BSSGP-FC: fc_timer_cb() but still not able to send PDU of 10 bytes

View File

@ -13,7 +13,7 @@ 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_CHECK([$abs_top_srcdir/tests/gb/bssgp_fc_tests.sh $abs_top_builddir/tests/gb], [], [expout], [experr])
AT_CLEANUP
AT_SETUP([bits])