aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2009-06-10move openbsc into its own subdirectoryHarald Welte12-470/+0
2009-06-06Revert "[db] Keep track of the current gsm_network"Holger Freyther1-1/+1
This was a stupid decision. We will have to assign the network at some other place. The problem will be a problem when we have two gsm_networks in one process and the same subscriber is traveling in both networks.
2009-06-06[tests] Do no free objects that are allocated on the stackHolger Freyther1-4/+0
gcc4.4 warns about these kind of objects. Fix that.
2009-05-23An application that has own events and file descriptors, must pollHarald Welte1-1/+1
select function ob libbsc. A "polling" flag is used to enable polling. In this case select() will not sleep until file descriptor events occurr or nearest timer expires. Also a return value will indicate if there was an event that has been handled. If there was an event, the application decides to poll again and don't wait. In case for bsc_hack, the polling flag is not set. select will sleep as usual. (Andreas Eversberg)
2009-05-23* rename the timer functions to avoid name collisions with libmisdn.Harald Welte1-5/+5
* the return value of bsc_update_timers() is required for applications to find out if a timer was fired (Andreas Eversberg)
2009-05-21Fix compilation issues on OS X - mainly #include file changes (Lars Immisch)Harald Welte1-1/+1
2009-04-19[db] Keep track of the current gsm_networkHolger Freyther1-1/+1
2009-04-12[tests] Change the db_test to link to the libopenbsc.aHolger Freyther2-2/+6
This should keep the test compiling in the future. It will link to the libopenbsc.a to get all symbols. We do this in the other tests too.
2009-03-30Store incoming SMS into SQL databaseHarald Welte1-2/+5
* gsm_util now uses caller-allocated data (rather than callee-allocated) * correctly parse destination address * parse (but not transcode) non-default encodings of SMS * reject SMS to unknown destination number * resolve target subscriber id and store incoming SMS (without header) in 'sms' table What we're now missing is the sending part, i.e. a regular task iterating over all pending SMS and trying to deliver them. Also, check for pending SMS once we get a LOCATION UPDATE.
2009-02-23[sms] Add test case for the 7-bit coding/decoding...Holger Freyther1-0/+17
we don't pass it yet.
2009-02-23[sms] Remove hardcoded size and use the SIZE_OF trick..Holger Freyther1-1/+1
2009-02-20[build] Create a libbsc.a as noinst_LIBRARY, link bsc_hack and tests against itHolger Freyther4-29/+7
Link the tests against the libbsc.a to avoid most of the breakage when creating new symbols.
2009-02-11[misc] Another set of build fixes...Holger Freyther2-2/+7
We should compile the src into an archive file and then link to it.
2009-02-10[tests] Fix building... add another stub...Holger Freyther1-0/+1
2009-02-06[tests] Fix the tests... link againHolger Freyther2-1/+3
2009-01-27[tests] build fixHolger Freyther1-0/+1
2009-01-04Add test case that is not registering the timer againHolger Freyther1-0/+8
yesterday's crash with the llist_del instead of using del_timer was due this kind of bug. Add a test case.
2009-01-01Change the subscriber and database backendHolger Freyther2-14/+49
gsm_subscriber is now refcounted, the db backend is leaking a lot less, db_get_subscriber will allocate the subscr record now, subscr_* will look up a subscriber in the list of currently active subscribers and add an ref to this one. The db test cases pass, more testing will be when next to the bts
2009-01-01Do not call rsl_chan_release directly but use the use_count of the lchanHolger Freyther1-0/+1
Call use_lchan early in allocate_loc_updating_req, do not directly call rsl_chan_release but go through channel alloc to take the use_count into account.
2008-12-31Move the db_test.c to a specific test directoryHolger Freyther3-1/+76
2008-12-31Make the test compile againHolger Freyther1-0/+1
2008-12-29Implement sending SMS and send one on network registrationDaniel Willmann2-0/+3
2008-12-29ACK sms-submitDaniel Willmann1-2/+9
2008-12-28Add stubs to test gsm0408 functionality including LAIHolger Freyther3-1/+85
2008-12-28Add second test SMSDaniel Willmann2-23/+77
2008-12-28working state up to location update and classmark inquiryHarald Welte1-0/+2
2008-12-28Add SMS (GSM 04.11) testing programDaniel Willmann3-1/+55
2008-12-28Start implementing GSM 04.11 (short message service)Daniel Willmann1-3/+3
2008-12-27sms.txt: Analyze CP-DATA, RP-DATA, TPDUDaniel Willmann1-0/+32
2008-12-27smsHarald Welte1-0/+1
2008-12-27Prefix debug symbols with debug_ to reduce the namesapce pollutionHolger Freyther1-2/+2
2008-12-27Add code to parse a debug category stringHolger Freyther3-1/+39
Use strdup to be able to use strtok on the category string and add a test case. Also safe some more information to be able to use color in the print statement.
2008-12-27Make the test timer a noinst programHolger Freyther1-1/+1
2008-12-27Introduce a simple timer API....Holger Freyther3-0/+68
One can use add_timer or schedule_timer to add a timer. After the timeout time has been reached the callback will be called. One can call add_time/schedule_timer and del_timer from within the callback.