diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-14 15:26:32 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-11-14 20:01:58 +0100 |
commit | 2149b0ff4744e8b4849f3addca67328b0507159a (patch) | |
tree | 53da1dcd22b515d5beaa46388cbcc98089d5557d /tests | |
parent | f0e66d90f83181a818f8f1c7535ccf6e76952523 (diff) |
power_control.c: Apply latests improvements from loops.c
Several improvements have been made lately to MS Power Control loop from
osmo-bts-trx in loops.c. Let's port these to the common algorithm.
Related: OS#1851
Change-Id: I579967cc8bb69dc76a315c6c9d3a351f5961d92f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/power/power_test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/power/power_test.c b/tests/power/power_test.c index dbae8fa6..30fbb643 100644 --- a/tests/power/power_test.c +++ b/tests/power/power_test.c @@ -17,7 +17,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <osmocom/core/talloc.h> +#include <osmocom/core/application.h> + #include <osmo-bts/bts.h> +#include <osmo-bts/logging.h> #include <osmo-bts/l1sap.h> #include <osmo-bts/power_control.h> @@ -80,6 +84,11 @@ int main(int argc, char **argv) { printf("Testing power loop...\n"); + tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context"); + msgb_talloc_ctx_init(tall_bts_ctx, 0); + + osmo_init_logging2(tall_bts_ctx, &bts_log_info); + test_power_loop(); printf("Power loop test OK\n"); |