summaryrefslogtreecommitdiffstats
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-12 19:07:52 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:21:00 +0100
commit3e9e57fb400218a74c44f9e3ffb70cf5291410a4 (patch)
tree5c076e2f4ef5c9d10c9160b694198e230e4f3717 /tests/testsuite.at
parent1fe6a9b9ed92da4845f8c8cef10372a3e711a8ca (diff)
tests: add pq_file test
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.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index ea8498c..bffbc52 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -6,3 +6,12 @@ AT_KEYWORDS([procqueue])
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_KEYWORDS([pq_file])
+cat $abs_srcdir/io/pq_file_test.ok > expout
+AT_CHECK([
+ $abs_top_builddir/tests/io/pq_file_test \
+ $abs_top_builddir/tests/io/io_sample.txt],
+ [0], [expout])
+AT_CLEANUP