aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-05-22Remove redundant testMax5-533/+1
After switching to libosmocoding there's no need in low-level bursts test which is part of libosmocoding anyway. Change-Id: Icb8caf62ac653a39a7a82f2225e8edeab7f5afb5
2017-05-22osmo-bts-trx: use libosmocodingMax2-24/+17
Remove built-in functions and use libosmocoding instead. Change-Id: I1b41bb1a8de655639107ec1f3b75afc240fd316f
2017-05-09Prepare for extended SI2quater supportMax1-1/+1
SI2quater support as per 3GPP TS 44.018 will require chnages to the way System Information is stored because it uses 1:n instead of 1:1 mapping between SI type and generated SI content. This should not affect other SI types though. To facilitate this transition: * convert the code to always use GSM_LCHAN_SI helper instead of accessing buffer directly * move duplicated code to inline function * add logging for buffer truncation and corresponding length values Requires I74e4e3cb86364cec869a1472a41b4a95af0d50dd in OpenBSC. Change-Id: Ie97be6ead6ce6d2d425fbfac8429bb90afb95acc Related: RT#8792
2017-04-06sysmobts: Don't start with 0dBm TRX output power before rampingHarald Welte1-0/+8
In case a system has a high-gain external PA (like a 40dB PA) connected externally, we cannot simply switch the transceiver to 0 dBm in trx_init() only to then start the ramping at much lower levels once the PHJ completes in trx_init_compl_cb(). The result would be a short 0 + 40 dBm spike followed by later ramping. We want to avoid that spike, particularly its associated inrush current, so let's bring up the board with smething very conservative like -50 dBm, and then ramp from there. Change-Id: I0ad91fce64f65e0213c9fcfde3390ace519055db Fixes: SYS#3259
2017-03-14Check for suitable lchan type when detecting HOMax1-0/+2
Log error when handover RACH is detected on wrong channel: according to 3GPP TS 44.018 it can only be seen on SACCH and DCCH. Change-Id: Iacbcc8441d6cfbb8f808948a8baddde1ebca488a Related: OS#1898
2017-02-10Fix typo in TCH/H interleaving tableMax1-1/+1
According to Table 4 in 3GPP TS 45.003 j=11, b=3 case corresponds to k=91 and not j=12 as was previously used. Change-Id: Iad3cf545b2f7e16276466cc37dd7a1e7858467e5
2017-02-07Add new unit-test for transmit power computation codeHarald Welte6-1/+316
This tests the computations of the tx_power.c code using sysmoBTS 1002, 1020, 1100 and 2050 values, as well as the power ramping code. Change-Id: I1cc88d4c6edff326e2e67d4f869aa02c9b2b1ac5
2016-12-02bursts test: test_pdtch: pre-init result memNeels Hofmeyr1-0/+2
Fixes: CID#57943 Change-Id: I4547f47c4150759d5c4ab790e34e91b784b03b39
2016-12-01Remove duplicated codeMax2-0/+4
Remove lchan deactivation related code duplication to facilitate future use for dynamic CCCH re-activation. Change-Id: Id0d3b19dbfaa16d1734321a07a6eb0355bfd77c9
2016-11-08Fix tests linking with libosmocodecMax3-6/+6
Change-Id: I051302f867d70dfbc39bd52d75101eb262f87459
2016-10-14msgb ctx: use new msgb_talloc_ctx_init() in various main()sNeels Hofmeyr4-15/+4
Change-Id: I31d62d5e1f0b272985fdef5013270d385c4b988a
2016-09-30DTX: move scheduling check inside repeat_last_sidMax1-2/+2
Note: this also require changes to properly link against libosmocodec - see 2bb65be159dfdabf664fec569b343320301701b0 in libosmocore. Change-Id: I96594cf3aa1013d505bd20069d5bf261d9a2aefb
2016-06-17dyn PDCH: add bts_model_ts_connect() and _disconnect() stubsNeels Hofmeyr2-0/+9
Enhance bts_model_ API in preparation of dyn PDCH switching. These will be used to re-connect a TCH/F_PDCH TS in a different mode: either as TCH/F or as PDCH. All implementations so far return -ENOTSUP, and thus will cause a IPAC PDCH ACT or DEACT *NACK* to be sent to the BSC as soon as these messages are handled. Also add stubs in tests. Change-Id: I21e60c028a1333431c3ed000f788b654d1170b0d
2016-06-17fix two compiler warnings: add two opaque struct declarationsNeels Hofmeyr1-0/+3
Change-Id: Ie12eeff753e399b28a816893ac4d23e1cd391025
2016-06-17tests/stubs.c: remove unused stubsNeels Hofmeyr1-17/+0
Change-Id: I53a839a332980bca67ae0b7d3e36b97afe406e5b
2016-06-12Use libosmocodec for AMR RTPMax1-2/+2
Use libosmocodec function to parse RTP with AMR payload in sysmoBTS and LC15. This replaces "manual" parsing of AMR frame with function covered by test suite and makes adding DTXd support easier. Related: OS#1563 Change-Id: I1464f9a12e3f92926d03d5dd5d18e8f0f7206dd9 Reviewed-on: https://gerrit.osmocom.org/204 Tested-by: Jenkins Builder Reviewed-by: Harald Welte <laforge@gnumonks.org>
2016-02-15port sysmobts to phy_link/phy_instance abstractionHarald Welte1-0/+4
2016-01-22merge bts-specific main function into common/main.c:bts_main()Harald Welte3-5/+0
This removes a lot of copy+paste duplication between different BTS models.
2016-01-16use existing #define for FR/EFR frame length (33/31)Harald Welte1-3/+4
2016-01-15fix some format specifiersAlexander Huemer1-4/+5
2015-11-05tests/Makefile.am: Don't use sysmobts SUBDIRS twiceHarald Welte1-4/+0
probably a git merge artefact of some sort...
2015-11-05Don't blindly link against '-lortp' but use pkg-config for thatHarald Welte4-8/+8
This also ensures that a missing ortp library dependency is discovered at configure time already
2015-09-22fixup tests after bts_model_adjst_ms_pwrHarald Welte1-0/+1
2015-09-22tests: Update busrsts_test build.Alexander Chemeris2-1/+4
We've added logging calls to the bursts processing. Add logging facility initializatoin to the test code.
2015-09-22tests: Update bursts_test to accommodate BER calculations.Alexander Chemeris2-9/+50
2015-09-22build: Use AM_CPPFLAGS in Makefile.amMartin Hauke2-2/+2
Since automake 1.13 INCLUDES is depricated and causes a warning Inspired from similar patches by Alexander Huemer for other osmocom projects.
2015-09-22tests: make tests for sysmobts conditionalMartin Hauke1-0/+4
2015-09-22Add test case for successful handover and unsuccessful handoverAndreas Eversberg5-1/+293
2015-09-22TRX: Support for TCH/H and GSM half rate transcodingAndreas Eversberg1-0/+76
2015-09-22TRX: Add support for EFR transcodingAndreas Eversberg1-6/+13
2015-09-22TRX: Replaced GSM 06.10 ordering table by table in libosmocodecAndreas Eversberg1-2/+2
2015-09-22TRX: Cleanup of channel transcodingAndreas Eversberg2-10/+7
2015-09-22TRX: Add test code for PDTCH transcodingAndreas Eversberg2-1/+94
2015-09-22TRX: Allow transcoding of TCH FR with MSB first (RTP) or LSB first (E1)Andreas Eversberg1-2/+2
2015-09-22Fix: Check right result on bursts_testAndreas Eversberg1-1/+1
2015-09-22Add test routing to test transcoding of TCH FR / FACCH framesAndreas Eversberg2-25/+119
2015-09-22ABIS: Introduce bts_model_abis_close to indicate ABIS link failure.Andreas Eversberg2-0/+5
sysmocom-bts model shuts down on link loss, but other models may not want this, so shutdown is moved tor bts_model_abis_close of osmo-bts-sysmo.
2015-09-22Add test code for testing GSM burst transcodingAndreas Eversberg5-1/+226
2015-09-22fix: make sysmobts tests only when sysmobts is enabledIvan Kluchnikov1-1/+5
2015-09-22move MS power control handling from sysmobts to common partHarald Welte1-5/+10
MS uplink power control is required in pretty much any BTS, and we cannot assume that they PHY / L1 will always take care of it by itself. So the correspondign code is moved to common/power_control.c and called from the generic part of L1SAP. The corresponding VTY paramter has been moved from the sysmobts-specific trx VTY node to the common BTS VTY node.
2015-09-22l1sap: Port code to new ciphering handlingHarald Welte1-3/+7
... introduced in 2cc37035d73191b71b9ba9c0d559a0da6a5f35e5
2015-09-22Add BCCH message to PH-/MPH-/TCH-SAP interfaceAndreas Eversberg1-0/+2
This first part moves BCCH message primitives from osmo-bts-sysmo to common part. A new file "common/l1sap.c" is introduced to implement handling of layer 1 messages from/to BTS model.
2015-02-05power: Make it possible to force a power levelHolger Hans Peter Freyther1-0/+4
Use the standard RSL commands to order a logical channel to use a fixed power level. The code is not fully verified and there was a last minute change to invoke bts_model_adjst_ms_pwr.
2015-02-05power/sysmobts: Add a manual ms power level controlHolger Hans Peter Freyther2-0/+58
Currently the DSP is instructed to achieve a given uplink power target but there are circumstances (e.g. EMV testing) where we need more control over it. The "manual/software/osmo" power control can only be implemented per TRX and not per lchan. Add a very very basic control that checks the MS Power used by the phone, the actual receive level and then adjust the power. The code doesn't take the history into account, if the phone can not reach the requested power level the code will be stuck (e.g. no timeout based on multiframes). It has a mode for a fixed power control but no way to set it yet. The change of the mode requires a restart of the software.
2015-01-10misc: Fix up testcase after 5a03e129a633637d0a6b57b3b5aa6d6596b938feHolger Hans Peter Freyther1-1/+1
In 5a03e129a633637d0a6b57b3b5aa6d6596b938fe we generalized the structural parser so we need to update the expected behavior of that routine.
2014-12-16sysmobts: Remove unused global variablesHolger Hans Peter Freyther1-2/+0
We do not need to have these variables anymore. Just remove them.
2014-08-09sysmobts: Add a unit test that checks of the behaviorHolger Hans Peter Freyther2-3/+78
We need to build a lot more code to be able to test these two new routines. I didn't want to move the code to a utils file as the check is called from a hot path. Add accessors to the inlined variant to be used by the unit test. While writing the unit tests I noticed that a re-transmission of the ciphering command would lead to an attempt to enable ciphering again. I am not sure that this MphConfig is idempotent.
2014-07-31sysmobts: Add testcase for ETSI/12.21 messageHolger Hans Peter Freyther2-0/+18
2014-07-31sysmobts: Extend the testcase for a Osmo message as wellHolger Hans Peter Freyther1-16/+36
2014-07-31sysmobts: Verify the structure of IPA and OML messagesHolger Hans Peter Freyther3-1/+79
Extend the router to verify that the message received is properly encoded. The code can deal with the basic structure of ETSI OML and vendor specific messages for ip.access and the osmocom project.