diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-12 15:32:52 +0300 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:21:00 +0100 |
commit | 1fe6a9b9ed92da4845f8c8cef10372a3e711a8ca (patch) | |
tree | 4ff6dc395c5529efbe198ee0de7da475a4a3e83f /tests/testsuite.at | |
parent | f069eb37fe48df4e6897d0614e008b676e06db8e (diff) |
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.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 6 |
1 files changed, 6 insertions, 0 deletions
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 |