diff options
Diffstat (limited to 'tests/power/power_test.c')
-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"); |