cjson: Add ptest

cjson use pure CMake test framework named CTest.
CMake generate CTestTestfile.cmake containing fully defined path.
This path need to be altered on install step to match the ptest directory.

The json_patch_tests doesn't works because of file access and is skip.

Signed-off-by: David Pierret <david.pierret@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 4079e92284)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
David Pierret
2023-10-16 14:37:25 +02:00
committed by Armin Kuster
parent 3e1b5753c7
commit 486fa9a037
3 changed files with 31 additions and 2 deletions
@@ -36,6 +36,7 @@ PTESTS_FAST_META_OE = "\
uthash \
xmlsec1 \
zeromq \
cjson \
"
PTESTS_FAST_META_OE:append:x86 = " mcelog"
PTESTS_FAST_META_OE:append:x86-64 = " mcelog"