aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bitcomp/BitcompTest.cpp
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-22 12:42:15 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-22 12:52:12 +0200
commit30ade8dc59790055713946c7277bb12155afe5b9 (patch)
treeb91d11984aa3a9203e9ae03295df2333f6671243 /tests/bitcomp/BitcompTest.cpp
parent127c836ed488259f79c049ec7844dbc72a7865f0 (diff)
bitcomptest: minimize linkage
Diffstat (limited to 'tests/bitcomp/BitcompTest.cpp')
-rw-r--r--tests/bitcomp/BitcompTest.cpp32
1 files changed, 11 insertions, 21 deletions
diff --git a/tests/bitcomp/BitcompTest.cpp b/tests/bitcomp/BitcompTest.cpp
index 00d6ea8b..d7f48f89 100644
--- a/tests/bitcomp/BitcompTest.cpp
+++ b/tests/bitcomp/BitcompTest.cpp
@@ -1,21 +1,15 @@
-#include "egprs_rlc_compression.h"
-#include "decoding.h"
-#include "bts.h"
-#include "tbf.h"
+#include <stdint.h>
+#include <string.h>
+
+#include "rlc.h"
#include "gprs_debug.h"
-#include "pcu_utils.h"
-#include "gprs_bssgp_pcu.h"
-#include "pcu_l1_if.h"
+#include "egprs_rlc_compression.h"
extern "C" {
-#include "pcu_vty.h"
-
-#include <osmocom/core/application.h>
-#include <osmocom/core/msgb.h>
-#include <osmocom/core/talloc.h>
+#include <osmocom/core/logging.h>
+#include <osmocom/core/bitvec.h>
#include <osmocom/core/utils.h>
-#include <osmocom/vty/vty.h>
-#include <osmocom/gprs/protocol/gsm_04_60.h>
+#include <osmocom/core/application.h>
}
#define NEW 1
@@ -215,20 +209,16 @@ const struct log_info debug_log_info = {
int main(int argc, char **argv)
{
- struct vty_app_info pcu_vty_info = {0};
-
osmo_init_logging(&debug_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
- bssgp_set_log_ss(DBSSGP);
-
- vty_init(&pcu_vty_info);
- pcu_vty_init(&debug_log_info);
- tall_pcu_ctx = talloc_named_const(NULL, 1, "moiji-mobile TbfTest context");
+ tall_pcu_ctx = talloc_named_const(NULL, 1, "BitcompTest context");
if (!tall_pcu_ctx)
abort();
+
test_EPDAN_decode_tree();
+
if (getenv("TALLOC_REPORT_FULL"))
talloc_report_full(tall_pcu_ctx, stderr);
talloc_free(tall_pcu_ctx);