diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2020-01-15 11:01:24 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-01-20 14:33:49 +0000 |
commit | a0403d3769d3027639e35874c09808ce5c0ba860 (patch) | |
tree | 2cce8edf58ad8fd11864475886b5028d4d0e1570 /tests | |
parent | e7d835ca8c704f7cd256702a31a15b79824e21a4 (diff) |
ta_control: move timing advance code from osmo-bts-trx to common
The timing advance controller that is implemented in loops.c of
osmo-bts-trx only works for osmo-bts-trx and not for any of the phy
based bts. Lets move the timing advance controller into the common part
and make it available for every bts. Also lets add a unit-test.
Change-Id: If7ddf74db3abc9b9872abe620a0aeebe3327e70a
Related: SYS#4567
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/ta_control/Makefile.am | 6 | ||||
-rw-r--r-- | tests/ta_control/ta_control_test.c | 77 | ||||
-rw-r--r-- | tests/ta_control/ta_control_test.ok | 609 | ||||
-rw-r--r-- | tests/testsuite.at | 6 |
5 files changed, 699 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 1eb28d6f..57687eef 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = paging cipher agch misc handover tx_power power meas +SUBDIRS = paging cipher agch misc handover tx_power power meas ta_control if ENABLE_SYSMOBTS SUBDIRS += sysmobts diff --git a/tests/ta_control/Makefile.am b/tests/ta_control/Makefile.am new file mode 100644 index 00000000..4c89dd29 --- /dev/null +++ b/tests/ta_control/Makefile.am @@ -0,0 +1,6 @@ +AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include +AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOCODEC_CFLAGS) $(LIBOSMOTRAU_CFLAGS) $(LIBOSMOABIS_CFLAGS) +LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOCODEC_LIBS) $(LIBOSMOTRAU_LIBS) $(LIBOSMOABIS_LIBS) +noinst_PROGRAMS = ta_control_test +EXTRA_DIST = ta_control_test.ok +ta_control_test_LDADD = $(top_builddir)/src/common/libbts.a $(LDADD) diff --git a/tests/ta_control/ta_control_test.c b/tests/ta_control/ta_control_test.c new file mode 100644 index 00000000..2e981b38 --- /dev/null +++ b/tests/ta_control/ta_control_test.c @@ -0,0 +1,77 @@ +/* Test cases for tx_control.c Timing Advance Computation */ + +/* (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> + * All Rights Reserved + * + * Author: Philipp Maier + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <stdint.h> + +#include <osmocom/core/talloc.h> +#include <osmocom/core/application.h> +#include <osmo-bts/logging.h> +#include <osmo-bts/gsm_data.h> +#include <osmo-bts/ta_control.h> + +void lchan_ms_ta_ctrl_test(int16_t toa256_start, unsigned int steps) +{ + struct gsm_lchan lchan = { }; + unsigned int i; + uint8_t rqd_ta_after; + uint8_t rqd_ta_before; + int16_t toa256 = toa256_start; + + /* Arbitrary value, high enough so that a computation can happen. */ + lchan.meas.num_ul_meas = 10; + + printf("toa256_start = %u / 256 = %u, steps = %u\n", toa256_start, + toa256_start / 256, steps); + + for (i = 0; i < steps; i++) { + printf("Step #%u\n", i); + printf(" lchan.rqd_ta (before) = %u\n", lchan.rqd_ta); + printf(" toa256 (before) = %u / 256 = %u\n", toa256, + toa256 / 256); + + rqd_ta_before = lchan.rqd_ta; + + lchan.meas.ms_toa256 = toa256; + lchan_ms_ta_ctrl(&lchan); + + rqd_ta_after = lchan.rqd_ta; + toa256 -= (rqd_ta_after - rqd_ta_before) * 256; + + printf(" lchan.rqd_ta (after) = %u\n", lchan.rqd_ta); + printf(" toa256 (after) = %u / 256 = %u\n", toa256, + toa256 / 256); + } + + printf("Done.\n"); + printf("\n"); +} + +int main(int argc, char **argv) +{ + void *tall_bts_ctx; + + tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context"); + osmo_init_logging2(tall_bts_ctx, &bts_log_info); + + lchan_ms_ta_ctrl_test(16 * 256, 20); + lchan_ms_ta_ctrl_test(4000, 50); + lchan_ms_ta_ctrl_test(12345, 50); +} diff --git a/tests/ta_control/ta_control_test.ok b/tests/ta_control/ta_control_test.ok new file mode 100644 index 00000000..8ebe5d54 --- /dev/null +++ b/tests/ta_control/ta_control_test.ok @@ -0,0 +1,609 @@ +toa256_start = 4096 / 256 = 16, steps = 20 +Step #0 + lchan.rqd_ta (before) = 0 + toa256 (before) = 4096 / 256 = 16 + lchan.rqd_ta (after) = 1 + toa256 (after) = 3840 / 256 = 15 +Step #1 + lchan.rqd_ta (before) = 1 + toa256 (before) = 3840 / 256 = 15 + lchan.rqd_ta (after) = 2 + toa256 (after) = 3584 / 256 = 14 +Step #2 + lchan.rqd_ta (before) = 2 + toa256 (before) = 3584 / 256 = 14 + lchan.rqd_ta (after) = 3 + toa256 (after) = 3328 / 256 = 13 +Step #3 + lchan.rqd_ta (before) = 3 + toa256 (before) = 3328 / 256 = 13 + lchan.rqd_ta (after) = 4 + toa256 (after) = 3072 / 256 = 12 +Step #4 + lchan.rqd_ta (before) = 4 + toa256 (before) = 3072 / 256 = 12 + lchan.rqd_ta (after) = 5 + toa256 (after) = 2816 / 256 = 11 +Step #5 + lchan.rqd_ta (before) = 5 + toa256 (before) = 2816 / 256 = 11 + lchan.rqd_ta (after) = 6 + toa256 (after) = 2560 / 256 = 10 +Step #6 + lchan.rqd_ta (before) = 6 + toa256 (before) = 2560 / 256 = 10 + lchan.rqd_ta (after) = 7 + toa256 (after) = 2304 / 256 = 9 +Step #7 + lchan.rqd_ta (before) = 7 + toa256 (before) = 2304 / 256 = 9 + lchan.rqd_ta (after) = 8 + toa256 (after) = 2048 / 256 = 8 +Step #8 + lchan.rqd_ta (before) = 8 + toa256 (before) = 2048 / 256 = 8 + lchan.rqd_ta (after) = 9 + toa256 (after) = 1792 / 256 = 7 +Step #9 + lchan.rqd_ta (before) = 9 + toa256 (before) = 1792 / 256 = 7 + lchan.rqd_ta (after) = 10 + toa256 (after) = 1536 / 256 = 6 +Step #10 + lchan.rqd_ta (before) = 10 + toa256 (before) = 1536 / 256 = 6 + lchan.rqd_ta (after) = 11 + toa256 (after) = 1280 / 256 = 5 +Step #11 + lchan.rqd_ta (before) = 11 + toa256 (before) = 1280 / 256 = 5 + lchan.rqd_ta (after) = 12 + toa256 (after) = 1024 / 256 = 4 +Step #12 + lchan.rqd_ta (before) = 12 + toa256 (before) = 1024 / 256 = 4 + lchan.rqd_ta (after) = 13 + toa256 (after) = 768 / 256 = 3 +Step #13 + lchan.rqd_ta (before) = 13 + toa256 (before) = 768 / 256 = 3 + lchan.rqd_ta (after) = 14 + toa256 (after) = 512 / 256 = 2 +Step #14 + lchan.rqd_ta (before) = 14 + toa256 (before) = 512 / 256 = 2 + lchan.rqd_ta (after) = 15 + toa256 (after) = 256 / 256 = 1 +Step #15 + lchan.rqd_ta (before) = 15 + toa256 (before) = 256 / 256 = 1 + lchan.rqd_ta (after) = 16 + toa256 (after) = 0 / 256 = 0 +Step #16 + lchan.rqd_ta (before) = 16 + toa256 (before) = 0 / 256 = 0 + lchan.rqd_ta (after) = 16 + toa256 (after) = 0 / 256 = 0 +Step #17 + lchan.rqd_ta (before) = 16 + toa256 (before) = 0 / 256 = 0 + lchan.rqd_ta (after) = 16 + toa256 (after) = 0 / 256 = 0 +Step #18 + lchan.rqd_ta (before) = 16 + toa256 (before) = 0 / 256 = 0 + lchan.rqd_ta (after) = 16 + toa256 (after) = 0 / 256 = 0 +Step #19 + lchan.rqd_ta (before) = 16 + toa256 (before) = 0 / 256 = 0 + lchan.rqd_ta (after) = 16 + toa256 (after) = 0 / 256 = 0 +Done. + +toa256_start = 4000 / 256 = 15, steps = 50 +Step #0 + lchan.rqd_ta (before) = 0 + toa256 (before) = 4000 / 256 = 15 + lchan.rqd_ta (after) = 1 + toa256 (after) = 3744 / 256 = 14 +Step #1 + lchan.rqd_ta (before) = 1 + toa256 (before) = 3744 / 256 = 14 + lchan.rqd_ta (after) = 2 + toa256 (after) = 3488 / 256 = 13 +Step #2 + lchan.rqd_ta (before) = 2 + toa256 (before) = 3488 / 256 = 13 + lchan.rqd_ta (after) = 3 + toa256 (after) = 3232 / 256 = 12 +Step #3 + lchan.rqd_ta (before) = 3 + toa256 (before) = 3232 / 256 = 12 + lchan.rqd_ta (after) = 4 + toa256 (after) = 2976 / 256 = 11 +Step #4 + lchan.rqd_ta (before) = 4 + toa256 (before) = 2976 / 256 = 11 + lchan.rqd_ta (after) = 5 + toa256 (after) = 2720 / 256 = 10 +Step #5 + lchan.rqd_ta (before) = 5 + toa256 (before) = 2720 / 256 = 10 + lchan.rqd_ta (after) = 6 + toa256 (after) = 2464 / 256 = 9 +Step #6 + lchan.rqd_ta (before) = 6 + toa256 (before) = 2464 / 256 = 9 + lchan.rqd_ta (after) = 7 + toa256 (after) = 2208 / 256 = 8 +Step #7 + lchan.rqd_ta (before) = 7 + toa256 (before) = 2208 / 256 = 8 + lchan.rqd_ta (after) = 8 + toa256 (after) = 1952 / 256 = 7 +Step #8 + lchan.rqd_ta (before) = 8 + toa256 (before) = 1952 / 256 = 7 + lchan.rqd_ta (after) = 9 + toa256 (after) = 1696 / 256 = 6 +Step #9 + lchan.rqd_ta (before) = 9 + toa256 (before) = 1696 / 256 = 6 + lchan.rqd_ta (after) = 10 + toa256 (after) = 1440 / 256 = 5 +Step #10 + lchan.rqd_ta (before) = 10 + toa256 (before) = 1440 / 256 = 5 + lchan.rqd_ta (after) = 11 + toa256 (after) = 1184 / 256 = 4 +Step #11 + lchan.rqd_ta (before) = 11 + toa256 (before) = 1184 / 256 = 4 + lchan.rqd_ta (after) = 12 + toa256 (after) = 928 / 256 = 3 +Step #12 + lchan.rqd_ta (before) = 12 + toa256 (before) = 928 / 256 = 3 + lchan.rqd_ta (after) = 13 + toa256 (after) = 672 / 256 = 2 +Step #13 + lchan.rqd_ta (before) = 13 + toa256 (before) = 672 / 256 = 2 + lchan.rqd_ta (after) = 14 + toa256 (after) = 416 / 256 = 1 +Step #14 + lchan.rqd_ta (before) = 14 + toa256 (before) = 416 / 256 = 1 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #15 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #16 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #17 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #18 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #19 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #20 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #21 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #22 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #23 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #24 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #25 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #26 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #27 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #28 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #29 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #30 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #31 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #32 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #33 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #34 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #35 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #36 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #37 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #38 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #39 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #40 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #41 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #42 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #43 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #44 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #45 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #46 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #47 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #48 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Step #49 + lchan.rqd_ta (before) = 15 + toa256 (before) = 160 / 256 = 0 + lchan.rqd_ta (after) = 15 + toa256 (after) = 160 / 256 = 0 +Done. + +toa256_start = 12345 / 256 = 48, steps = 50 +Step #0 + lchan.rqd_ta (before) = 0 + toa256 (before) = 12345 / 256 = 48 + lchan.rqd_ta (after) = 1 + toa256 (after) = 12089 / 256 = 47 +Step #1 + lchan.rqd_ta (before) = 1 + toa256 (before) = 12089 / 256 = 47 + lchan.rqd_ta (after) = 2 + toa256 (after) = 11833 / 256 = 46 +Step #2 + lchan.rqd_ta (before) = 2 + toa256 (before) = 11833 / 256 = 46 + lchan.rqd_ta (after) = 3 + toa256 (after) = 11577 / 256 = 45 +Step #3 + lchan.rqd_ta (before) = 3 + toa256 (before) = 11577 / 256 = 45 + lchan.rqd_ta (after) = 4 + toa256 (after) = 11321 / 256 = 44 +Step #4 + lchan.rqd_ta (before) = 4 + toa256 (before) = 11321 / 256 = 44 + lchan.rqd_ta (after) = 5 + toa256 (after) = 11065 / 256 = 43 +Step #5 + lchan.rqd_ta (before) = 5 + toa256 (before) = 11065 / 256 = 43 + lchan.rqd_ta (after) = 6 + toa256 (after) = 10809 / 256 = 42 +Step #6 + lchan.rqd_ta (before) = 6 + toa256 (before) = 10809 / 256 = 42 + lchan.rqd_ta (after) = 7 + toa256 (after) = 10553 / 256 = 41 +Step #7 + lchan.rqd_ta (before) = 7 + toa256 (before) = 10553 / 256 = 41 + lchan.rqd_ta (after) = 8 + toa256 (after) = 10297 / 256 = 40 +Step #8 + lchan.rqd_ta (before) = 8 + toa256 (before) = 10297 / 256 = 40 + lchan.rqd_ta (after) = 9 + toa256 (after) = 10041 / 256 = 39 +Step #9 + lchan.rqd_ta (before) = 9 + toa256 (before) = 10041 / 256 = 39 + lchan.rqd_ta (after) = 10 + toa256 (after) = 9785 / 256 = 38 +Step #10 + lchan.rqd_ta (before) = 10 + toa256 (before) = 9785 / 256 = 38 + lchan.rqd_ta (after) = 11 + toa256 (after) = 9529 / 256 = 37 +Step #11 + lchan.rqd_ta (before) = 11 + toa256 (before) = 9529 / 256 = 37 + lchan.rqd_ta (after) = 12 + toa256 (after) = 9273 / 256 = 36 +Step #12 + lchan.rqd_ta (before) = 12 + toa256 (before) = 9273 / 256 = 36 + lchan.rqd_ta (after) = 13 + toa256 (after) = 9017 / 256 = 35 +Step #13 + lchan.rqd_ta (before) = 13 + toa256 (before) = 9017 / 256 = 35 + lchan.rqd_ta (after) = 14 + toa256 (after) = 8761 / 256 = 34 +Step #14 + lchan.rqd_ta (before) = 14 + toa256 (before) = 8761 / 256 = 34 + lchan.rqd_ta (after) = 15 + toa256 (after) = 8505 / 256 = 33 +Step #15 + lchan.rqd_ta (before) = 15 + toa256 (before) = 8505 / 256 = 33 + lchan.rqd_ta (after) = 16 + toa256 (after) = 8249 / 256 = 32 +Step #16 + lchan.rqd_ta (before) = 16 + toa256 (before) = 8249 / 256 = 32 + lchan.rqd_ta (after) = 17 + toa256 (after) = 7993 / 256 = 31 +Step #17 + lchan.rqd_ta (before) = 17 + toa256 (before) = 7993 / 256 = 31 + lchan.rqd_ta (after) = 18 + toa256 (after) = 7737 / 256 = 30 +Step #18 + lchan.rqd_ta (before) = 18 + toa256 (before) = 7737 / 256 = 30 + lchan.rqd_ta (after) = 19 + toa256 (after) = 7481 / 256 = 29 +Step #19 + lchan.rqd_ta (before) = 19 + toa256 (before) = 7481 / 256 = 29 + lchan.rqd_ta (after) = 20 + toa256 (after) = 7225 / 256 = 28 +Step #20 + lchan.rqd_ta (before) = 20 + toa256 (before) = 7225 / 256 = 28 + lchan.rqd_ta (after) = 21 + toa256 (after) = 6969 / 256 = 27 +Step #21 + lchan.rqd_ta (before) = 21 + toa256 (before) = 6969 / 256 = 27 + lchan.rqd_ta (after) = 22 + toa256 (after) = 6713 / 256 = 26 +Step #22 + lchan.rqd_ta (before) = 22 + toa256 (before) = 6713 / 256 = 26 + lchan.rqd_ta (after) = 23 + toa256 (after) = 6457 / 256 = 25 +Step #23 + lchan.rqd_ta (before) = 23 + toa256 (before) = 6457 / 256 = 25 + lchan.rqd_ta (after) = 24 + toa256 (after) = 6201 / 256 = 24 +Step #24 + lchan.rqd_ta (before) = 24 + toa256 (before) = 6201 / 256 = 24 + lchan.rqd_ta (after) = 25 + toa256 (after) = 5945 / 256 = 23 +Step #25 + lchan.rqd_ta (before) = 25 + toa256 (before) = 5945 / 256 = 23 + lchan.rqd_ta (after) = 26 + toa256 (after) = 5689 / 256 = 22 +Step #26 + lchan.rqd_ta (before) = 26 + toa256 (before) = 5689 / 256 = 22 + lchan.rqd_ta (after) = 27 + toa256 (after) = 5433 / 256 = 21 +Step #27 + lchan.rqd_ta (before) = 27 + toa256 (before) = 5433 / 256 = 21 + lchan.rqd_ta (after) = 28 + toa256 (after) = 5177 / 256 = 20 +Step #28 + lchan.rqd_ta (before) = 28 + toa256 (before) = 5177 / 256 = 20 + lchan.rqd_ta (after) = 29 + toa256 (after) = 4921 / 256 = 19 +Step #29 + lchan.rqd_ta (before) = 29 + toa256 (before) = 4921 / 256 = 19 + lchan.rqd_ta (after) = 30 + toa256 (after) = 4665 / 256 = 18 +Step #30 + lchan.rqd_ta (before) = 30 + toa256 (before) = 4665 / 256 = 18 + lchan.rqd_ta (after) = 31 + toa256 (after) = 4409 / 256 = 17 +Step #31 + lchan.rqd_ta (before) = 31 + toa256 (before) = 4409 / 256 = 17 + lchan.rqd_ta (after) = 32 + toa256 (after) = 4153 / 256 = 16 +Step #32 + lchan.rqd_ta (before) = 32 + toa256 (before) = 4153 / 256 = 16 + lchan.rqd_ta (after) = 33 + toa256 (after) = 3897 / 256 = 15 +Step #33 + lchan.rqd_ta (before) = 33 + toa256 (before) = 3897 / 256 = 15 + lchan.rqd_ta (after) = 34 + toa256 (after) = 3641 / 256 = 14 +Step #34 + lchan.rqd_ta (before) = 34 + toa256 (before) = 3641 / 256 = 14 + lchan.rqd_ta (after) = 35 + toa256 (after) = 3385 / 256 = 13 +Step #35 + lchan.rqd_ta (before) = 35 + toa256 (before) = 3385 / 256 = 13 + lchan.rqd_ta (after) = 36 + toa256 (after) = 3129 / 256 = 12 +Step #36 + lchan.rqd_ta (before) = 36 + toa256 (before) = 3129 / 256 = 12 + lchan.rqd_ta (after) = 37 + toa256 (after) = 2873 / 256 = 11 +Step #37 + lchan.rqd_ta (before) = 37 + toa256 (before) = 2873 / 256 = 11 + lchan.rqd_ta (after) = 38 + toa256 (after) = 2617 / 256 = 10 +Step #38 + lchan.rqd_ta (before) = 38 + toa256 (before) = 2617 / 256 = 10 + lchan.rqd_ta (after) = 39 + toa256 (after) = 2361 / 256 = 9 +Step #39 + lchan.rqd_ta (before) = 39 + toa256 (before) = 2361 / 256 = 9 + lchan.rqd_ta (after) = 40 + toa256 (after) = 2105 / 256 = 8 +Step #40 + lchan.rqd_ta (before) = 40 + toa256 (before) = 2105 / 256 = 8 + lchan.rqd_ta (after) = 41 + toa256 (after) = 1849 / 256 = 7 +Step #41 + lchan.rqd_ta (before) = 41 + toa256 (before) = 1849 / 256 = 7 + lchan.rqd_ta (after) = 42 + toa256 (after) = 1593 / 256 = 6 +Step #42 + lchan.rqd_ta (before) = 42 + toa256 (before) = 1593 / 256 = 6 + lchan.rqd_ta (after) = 43 + toa256 (after) = 1337 / 256 = 5 +Step #43 + lchan.rqd_ta (before) = 43 + toa256 (before) = 1337 / 256 = 5 + lchan.rqd_ta (after) = 44 + toa256 (after) = 1081 / 256 = 4 +Step #44 + lchan.rqd_ta (before) = 44 + toa256 (before) = 1081 / 256 = 4 + lchan.rqd_ta (after) = 45 + toa256 (after) = 825 / 256 = 3 +Step #45 + lchan.rqd_ta (before) = 45 + toa256 (before) = 825 / 256 = 3 + lchan.rqd_ta (after) = 46 + toa256 (after) = 569 / 256 = 2 +Step #46 + lchan.rqd_ta (before) = 46 + toa256 (before) = 569 / 256 = 2 + lchan.rqd_ta (after) = 47 + toa256 (after) = 313 / 256 = 1 +Step #47 + lchan.rqd_ta (before) = 47 + toa256 (before) = 313 / 256 = 1 + lchan.rqd_ta (after) = 48 + toa256 (after) = 57 / 256 = 0 +Step #48 + lchan.rqd_ta (before) = 48 + toa256 (before) = 57 / 256 = 0 + lchan.rqd_ta (after) = 48 + toa256 (after) = 57 / 256 = 0 +Step #49 + lchan.rqd_ta (before) = 48 + toa256 (before) = 57 / 256 = 0 + lchan.rqd_ta (after) = 48 + toa256 (after) = 57 / 256 = 0 +Done. + diff --git a/tests/testsuite.at b/tests/testsuite.at index 2d1cefd3..d9bc1cee 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -49,3 +49,9 @@ AT_KEYWORDS([meas]) cat $abs_srcdir/meas/meas_test.ok > expout AT_CHECK([$abs_top_builddir/tests/meas/meas_test], [], [expout], [ignore]) AT_CLEANUP + +AT_SETUP([ta_control]) +AT_KEYWORDS([ta_control]) +cat $abs_srcdir/ta_control/ta_control_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/ta_control/ta_control_test], [], [expout], [ignore]) +AT_CLEANUP |