aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12tests: enable / disable codec tests conditionallyVadim Yanitskiy3-1/+26
As the libosmogapk actually relies on external libraries for audio coding, we should enable / disable particular codec tests depending on the build configuration. Closes: OS#2926 Change-Id: Ie4711294c43ff88b17431615883abf96d1ae02a6
2018-01-15procqueue: introduce and use shared cat_name definitionsVadim Yanitskiy2-7/+9
Let's use the common string representation for item category names, defined in the shared header, instead of defining them in every file. Change-Id: Ie0c449d77fa383cad27f67b8ce902bd071342dbb
2017-12-31tests: add format / codec transcoding testsVadim Yanitskiy2-0/+221
This test group is intended to check the format / codec transcoding capabilities of the library. The reference files are used to ensure that encoding or decoding was successful. The following formats are currently being tested: - amr_efr - gsm - racal_hr - racal_fr - racal_efr - ti_hr - ti_fr - ti_efr - rtp_efr - rtp_hr_etsi - rtp_hr_ietf
2017-12-31tests: add pq_rtp testVadim Yanitskiy4-1/+377
This test is intended to check the RTP source / sink operability. To do this, two processing queues are being allocated: "generator": source/random -> sink/rtp "checker": source/rtp -> sink/checker The first one generates some amount of random bytes (payload), and stores them inside a buffer that is shared between both queues. After generation, a payload is being sent from the first queue via an RTP sink, and then being received by the second via an RTP source. As both queues do use a shared buffer, the last item of the second queue (named 'sink/checker') is able to compare a received payload with expected.
2017-12-31tests: add pq_file testVadim Yanitskiy5-0/+182
This test is intended to check the file source / sink operability. To do that, the following processing chain is being composed: source/file -> proc/dummy -> sink/file (stdout) The source item opens the sample file named 'io_sample.txt' for reading. The next processing item simply converts all uppercase latters to the lowercase. The last one writes the result to stdout. This processing cycle is being repeated several times with different block length values.
2017-12-31tests: add procqueue testVadim Yanitskiy4-0/+450
This test is intended to validate the processing queue management API. Moreover, the talloc debugging API is used to ensure that there are no memory leaks. First, four processing queues are being allocated. One of them is empty, while others have different count of items. Then the human-readable description is being generated for all of them. And finally, the processing and exit cllback are being tested. During the test execution, the talloc NULL-context tracking feature is enabled, allowing to observe every memory allocation within the libosmogapk, and to detect memory leaks.
2017-12-31Init automake test environmentVadim Yanitskiy29-0/+171