aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-09-01add functions for bit-reversalHarald Welte3-1/+43
Sometimes we need stuff like reversing every bit in each byte (but not the byte-order).
2011-07-24sms: SMS where cropped (from VTY), concatenation of SMS where not possibleDennis Wehrle1-14/+212
Additionally it wasn't possible to send concatenated sms from the vty. To send multiple sms, it is necessary to use padding bits and add a user_data_header. Therefore the gsm_7bit_encode function was splitted to gsm_7bit_encode and gsm_septets2octets. gsm_septets2octets: this is the old gsm_7bit_encode function + additional padding parameter Additionally the gsm_7bit_decode function was modified to take account for the user_data_header. With the new gsm_get_octet_len function you can get the octet length for a given septet length. I also added several sms tests.
2011-05-07msgfile: use namespace prefix osmo_* and use more descriptive names0.3.0Pablo Neira Ayuso1-4/+4
Summary of changes: s/msg_entry/osmo_config_entry/g s/msg_entries/osmo_config_list/g s/msg_entry_parse/osmo_config_list_parse/g minor glitch included in this patch while I was at it: -#include "linuxlist.h" +#include <osmocom/core/linuxlist.h>
2011-05-07select: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso1-1/+1
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-07timer: use namespace prefix osmo_timer*Pablo Neira Ayuso1-8/+8
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-04-18misc: Remove the sys/types.h include from various filesHolger Hans Peter Freyther1-1/+0
We used this include for the u_int{8,16,32}_t types but we do not need this anymore.
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]0.2.0Pablo Neira Ayuso5-8/+8
This patch moves all GSM-specific definitions to include/osmocom/gsm. Moreover, the headers in include/osmocore/ have been moved to include/osmocom/core. This has been proposed by Harald Welte and Sylvain Munaunt. Tested with `make distcheck'. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-23This patch moves the GSM-specific functions to the new libraryPablo Neira Ayuso3-3/+3
libosmogsm which is provided by libosmocore. I have also moved generate_backtrace() to backtrace.c instead of gsm_utils.c, otherwise the timer and msgfile tests depend on libosmogsm. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2010-12-29smscb: Add some simple decoding routines for SMSCB.Holger Hans Peter Freyther3-1/+47
2010-10-26msgfile: Allow to have comments in the simple CSV file0.1.26Holger Hans Peter Freyther1-0/+1
2010-10-11ussd: Verify that parsing is stil working and print the decoded text.Holger Hans Peter Freyther1-0/+5
2010-10-11ussd: Add next test that show that we access the data out of boundsHolger Hans Peter Freyther1-0/+23
This test is showing that the internal ASN1 code is not checking the size properly.
2010-10-11ussd: Add a test case, switch parsing to use a gsm48_hdr and lenHolger Hans Peter Freyther3-1/+69
The current USSD code is not doing any size checks, add a test case to find out how easily we access the data out of bounds. Begin to use the length in some places.
2010-10-08msgfile: Add a file parser for a simple file formatHolger Hans Peter Freyther4-0/+59
This file format will be used to store per country code, per network code messages. This will be used for various things ranging from access control, to messages...
2010-07-21tests: don't hardcode length values of expected encoding gsm_7bit_encode:Nico Golde1-11/+10
make sure to return the number of actually written bytes gsm_7bit_decode: calculate length of resulting septets from input length before decoding The input length to gsm_7bit_decode reflects the number of encoded bytes to be decoded. As the decoding is done on the input in septetes we need to take this into account and recalculate the length.
2010-07-20tests: Separate encoding/decoding test to verify them independlyHolger Hans Peter Freyther1-17/+78
Use the current test result as test data for future regression testing. The encode function appears to add too many zeros to the text.
2010-07-20* rewrite GSM 7bit default encoding/decoding based on a lookup table as the ↵Nico Golde1-1/+16
previous code produced wrong encodings for certain characters.
2010-03-07add option --disable-tests to disable building of test binariesHarald Welte1-0/+2
2010-02-26[timer] Fix compile warning of the timer testHolger Hans Peter Freyther1-2/+3
2010-02-20fix config.h directoryHarald Welte1-1/+1
2010-02-20add missing automake / autoconf filesHarald Welte3-0/+12
2010-02-20intial checkin of the libosmocore projectHarald Welte2-0/+123