aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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.
2014-07-31tests: Move the "pcu_direct" symbol into the stubs to be sharedHolger Hans Peter Freyther4-3/+1
2014-07-30sysmobts: Make it possible to slowly ramp up the output powerHolger Hans Peter Freyther2-1/+5
For systems with a bigger PA enabling the full output power at once might draw more current than a power supply can provide. This code will step up the output power in smaller steps to avoid this situation.
2014-05-22common: Ignore "si.valid" outside of _MAX_SYSINFO_TYPEHolger Hans Peter Freyther5-1/+74
Limit the range from 0 to (_MAX_SYSINFO_TYPE - 1) instead of 0 to 31. This way we will never access the lchan->si.buf[] out of bounds. This is only a theoretical issue though as the code filling the lchan->si.buf for the SACCH will not have valid >= _MAX_SYSINFO_TYPE. Add a small regression test to check we still schedule all SIs. Fixes: CID 1040765
2014-03-26oml: Indicate the kind of object passed as the void*Holger Hans Peter Freyther1-1/+1
These routines do not pass the gsm_abis_mo and parsing the FOM header of the msg does not seem to be a good idea either. Pass in the OML object so that the model code can determine what the void pointer is.
2014-03-10handover: Add generic handling for handoverAndreas Eversberg1-0/+2
The BTS layer needs to inform the handover code when an access burst has been received. In turn the handover layer will ask the bts to modify the channel, it will schedule the physical information inform the BSC with the HANDOVER DETECTION and waits for the BTS layer to inform it about the first received frame to stop a timer.
2014-03-10agch: Merge IMM.ASS.REJ if possible when enqueueingJacob Erlbeck1-2/+2
This patch implements merging of IMMEDIATE ASSIGN REJECT messages as suggested in GSM 08.58, 5.7. When a new IMM.ASS.REJ is to be appended to the AGCH queue and the last message in that queue is of the same type, the individual entries (up to 4 per message) of both messages are extracted, combined and stored back. If there are less than 5 entries, all entries fit into the old message and the new one is discarded. Otherwise, the old message will contain 4 entries and the remaining ones are stored into the new one which is then appended to the queue. Ticket: SYS#224 Sponsored-by: On-Waves ehf
2014-03-10agch: Manage AGCH queue lengthJacob Erlbeck2-1/+5
Currently, the AGCH queue length is not limited. This can lead to large delays and network malfunction if there are many IMM.ASS.REJ messages. This patch adds two features: - Don't accept msgs from the RSL layer when the queue is way too full (safety measure, mainly if bts_ccch_copy_msg() is not being called by the L1 layer, currently hard coded to 1000 messages) - Selectively drop IMM.ASS.REJ from the queue output depending on the queue length Ticket: SYS#224 Sponsored-by: On-Waves ehf
2014-03-10agch/pch: Use PCH for AGCH msgsJacob Erlbeck2-3/+16
This patch extends paging_gen_msg() by adding an output parameter is_empty that is true, if only a paging message with dummy entries has been placed into buffer. This feature is then used by bts_ccch_copy_msg() to insert an AGCH message if is_empty is true. Ticket: SYS#224 Sponsored-by: On-Waves ehf
2014-03-10agch/test: Add test for AGCH queue handlingJacob Erlbeck5-1/+282
The first test checks the AGCH may queue length computation. The second test fills the queue by calling bts_agch_enqueue() with a mix of IMM.ASS and IMM.ASS.REJ. Then it drains the queue by calling bts_ccch_copy_msg(). After each of both steps, statistics are printed out. Sponsored-by: On-Waves ehf
2014-01-15misc: Allow to cross-execute the testsuite using qemuHolger Hans Peter Freyther1-2/+2
When cross-compiling osmo-bts/osmo-pcu one can not easily execute the testsuite. By adding the OSMO_QEMU variable in front of the normal execution we can execute the tests. This should work for native and cross builds. $ OSMO_QEMU="qemu-arm -L /opt/poky/1.1.2/sysroots/armv5te-poky-linux-gnueabi/" make check
2013-11-27bts: Fix typos in the log messagesHolger Hans Peter Freyther2-2/+2
2013-10-10sysmobts: Fix the unit test after the internal band changesHolger Hans Peter Freyther1-4/+15