summaryrefslogtreecommitdiffstats
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-14 15:20:50 +0430
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:21:00 +0100
commit9d2b15dc8a97ceefc5cd2e95a885bd306ec992be (patch)
tree5f336a7faec969526c6582a955e1a28694eb5a8b /tests/testsuite.at
parent3e9e57fb400218a74c44f9e3ffb70cf5291410a4 (diff)
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.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at9
1 files changed, 8 insertions, 1 deletions
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