From 1fe6a9b9ed92da4845f8c8cef10372a3e711a8ca Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 12 Sep 2017 15:32:52 +0300 Subject: tests: add procqueue test 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. --- tests/testsuite.at | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index 09a77c3..ea8498c 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,2 +1,8 @@ AT_INIT AT_BANNER([Regression tests.]) + +AT_SETUP([procqueue]) +AT_KEYWORDS([procqueue]) +cat $abs_srcdir/procqueue/pq_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/procqueue/pq_test], [0], [expout]) +AT_CLEANUP -- cgit v1.2.3