diff options
author | Kwang Son <k.son@samsung.com> | 2021-08-08 23:24:45 -0400 |
---|---|---|
committer | kwang son <k.son@samsung.com> | 2021-08-10 02:36:34 +0000 |
commit | e6a9eef049112d88efd533dfa83dbd0805e7a187 (patch) | |
tree | 9757170f8116e6894f93d6e4898d48dcdae926a9 /test/README.md | |
parent | a24a8343bc410d7eab3decacf99d217d08aa7168 (diff) | |
download | mediavision-e6a9eef049112d88efd533dfa83dbd0805e7a187.tar.gz mediavision-e6a9eef049112d88efd533dfa83dbd0805e7a187.tar.bz2 mediavision-e6a9eef049112d88efd533dfa83dbd0805e7a187.zip |
test: Add mv_test
media vision unit test based on Gtest
media vision already has testsuites and assessment but each has some limitations.
See test/README.md more details.
Change-Id: I1d62adaeac92efe5ddc9cc6fa7a350e1aa3c846a
Signed-off-by: Kwang Son <k.son@samsung.com>
Diffstat (limited to 'test/README.md')
-rw-r--r-- | test/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/README.md b/test/README.md new file mode 100644 index 00000000..310adf8b --- /dev/null +++ b/test/README.md @@ -0,0 +1,26 @@ +# mv_test +media vision unit test based on [GTEST](https://github.com/google/googletest) + +## Why? +media vision already has testsuites and assessment but each has some limitations. +1. testsuite - ITC(interactive test case) based which is mean when you modify some of vision code, you need type ITC commands on terminal. ITC hides some resource allocation and logics, it makes hard to debug code. +2. assessment - it's basically testsuite with timer so most of code are duplicated. + +mv_test try convert testsuite ITC to unit test and timer function. + +## How test? +First test needs dataset https://github.sec.samsung.net/k-son/mv_test.git +Install dataset on target using install.sh script and type `$ mv_test` + +### ASAN build command +`$ gbs build -A $ARCH --include-all --extra-packs asan-force-options,sanitizer-devel` +install libasan on target and on target terminal `$ ASAN_OPTIONS=detect_leaks=1 mv_test` + +## FAQ +### What about Tizen TCT? +Tizen tct is for public API verification. It's still valid however mv_test is more focus on internal APIs. +Another point is Tizen tct has huge amount of datset of other packages which is not related with media vision so build takes long, and complicated. + +### Why gtest? +I tried with libcheck but since Tizen API is C/C++, hard to cover all of C++ modules (interal API is more rely on C++). +libcheck also needs runtime dependancy.
\ No newline at end of file |