From 9d2b15dc8a97ceefc5cd2e95a885bd306ec992be Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 14 Sep 2017 15:20:50 +0430 Subject: tests: add pq_rtp test 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. --- tests/testsuite.at | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index bffbc52..1127f2b 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -7,7 +7,7 @@ cat $abs_srcdir/procqueue/pq_test.ok > expout AT_CHECK([$abs_top_builddir/tests/procqueue/pq_test], [0], [expout]) AT_CLEANUP -AT_SETUP([pq_file]) +AT_SETUP([io/pq_file]) AT_KEYWORDS([pq_file]) cat $abs_srcdir/io/pq_file_test.ok > expout AT_CHECK([ @@ -15,3 +15,10 @@ AT_CHECK([ $abs_top_builddir/tests/io/io_sample.txt], [0], [expout]) AT_CLEANUP + +AT_SETUP([io/pq_rtp]) +AT_KEYWORDS([pq_rtp]) +cat $abs_srcdir/io/pq_rtp_test.ok > expout +AT_CHECK([ + $abs_top_builddir/tests/io/pq_rtp_test], [0], [expout]) +AT_CLEANUP -- cgit v1.2.3