diff --git a/meta-oe/recipes-extended/libyang/libyang/run-ptest b/meta-oe/recipes-extended/libyang/libyang/run-ptest
index 1c9f8f47f..4517725b4 100644
--- a/meta-oe/recipes-extended/libyang/libyang/run-ptest
+++ b/meta-oe/recipes-extended/libyang/libyang/run-ptest
@@ -2,28 +2,55 @@
 # Valid tests to run
 tests="utest_binary \
        utest_bits \
+       utest_boolean \
        utest_common \
+       utest_decimal64 \
+       utest_diff \
+       utest_empty \
+       utest_enumeration \
        utest_hash_table \
+       utest_identityref \
        utest_inet_types \
+       utest_inout \
+       utest_instanceid \
+       utest_int16 \
+       utest_int32 \
+       utest_int64 \
        utest_int8 \
        utest_json \
+       utest_leafref \
        utest_list \
+       utest_lyb \
        utest_merge \
        utest_metadata \
+       utest_nacm \
+       utest_new \
+       utest_parser_json \
+       utest_parser_xml \
        utest_parser_yang \
        utest_parser_yin \
        utest_pattern \
+       utest_printer_tree \
+       utest_printer_xml \
        utest_printer_yang \
        utest_printer_yin \
+       utest_plugins \
        utest_range \
        utest_schema \
+       utest_schema_mount \
        utest_set \
        utest_string \
        utest_tree_data \
        utest_tree_schema_compile \
-       utest_types \
+       utest_uint16 \
+       utest_uint32 \
+       utest_uint64 \
+       utest_uint8 \
+       utest_union \
+       utest_validation \
        utest_xml \
        utest_xpath \
+       utest_yangdata \
        utest_yang_types \
        utest_yanglib"
 
diff --git a/meta-oe/recipes-extended/libyang/libyang_2.0.194.bb b/meta-oe/recipes-extended/libyang/libyang_2.0.194.bb
index 548dcdd2f..16630a715 100644
--- a/meta-oe/recipes-extended/libyang/libyang_2.0.194.bb
+++ b/meta-oe/recipes-extended/libyang/libyang_2.0.194.bb
@@ -15,23 +15,25 @@ SRC_URI = "git://github.com/CESNET/libyang.git;branch=master;protocol=https \
 
 S = "${WORKDIR}/git"
 
-# Due to valgrind not supported on these arches:
-COMPATIBLE_HOST:riscv32 = "null"
-COMPATIBLE_HOST:armv5 = "null"
-COMPATIBLE_HOST:riscv64 = "null"
-
 # Main dependencies
 inherit cmake pkgconfig lib_package ptest
 DEPENDS = "libpcre2"
 DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}"
 
-# Ptest dependencies
-RDEPENDS:${PN}-ptest += "valgrind"
-
 EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
-EXTRA_OECMAKE += " ${@bb.utils.contains('PTEST_ENABLED', '1', '-DENABLE_TESTS=ON', '', d)}"
+EXTRA_OECMAKE += " ${@bb.utils.contains('PTEST_ENABLED', '1', '-DENABLE_TESTS=ON -DENABLE_VALGRIND_TESTS=OFF', '', d)}"
 
-do_install_ptest () {
-    cp -fR ${B}/tests/ ${D}${PTEST_PATH}/
+do_compile:prepend () {
+    if [ ${PTEST_ENABLED} = "1" ]; then
+        sed -i -e 's|${S}|${PTEST_PATH}|g' ${B}/tests/tests_config.h
+        sed -i -e 's|${B}|${PTEST_PATH}|g' ${B}/tests/tests_config.h
+    fi
 }
 
+do_install_ptest () {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -f ${B}/tests/utest_* ${D}${PTEST_PATH}/tests/
+    cp -fR ${S}/tests/modules ${D}${PTEST_PATH}/tests/
+    install -d ${D}${PTEST_PATH}/tests/plugins
+    cp -f ${B}/tests/plugins/plugin_*.so ${D}${PTEST_PATH}/tests/plugins/
+}
