[IIO] Added data validity testcases
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 4 Apr 2019 08:19:00 +0000 (17:19 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 9 Apr 2019 14:07:16 +0000 (23:07 +0900)
commit23491e664f495ee896ad4b451ad5200f28f1a3e5
treef97361161c0daa46252969f043e362184be1aa42
parentcc32bf3a5f25dedb8293d83af84b67dd9923c146
[IIO] Added data validity testcases

1. Added test case to check data validity for the element for various data bytes sizes
2. Added a property of timeout while reading file in non-blocking mode.
This allows looping while reading the file along with EAGAIN error.
3. Corrected mask generation
4. IIO dev file is replaced with fifo. Using threads to make these fifo as
opening it blocks unless both read and write mode are opened together.
5. Added test case to validate data with and without trigger.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
gst/nnstreamer/tensor_source/tensor_src_iio.c
gst/nnstreamer/tensor_source/tensor_src_iio.h
tests/nnstreamer_source/unittest_src_iio.cpp