From a070ad4db8e4a35fc34b0610b56dcfc1e2caaad3 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Fri, 5 May 2023 15:23:55 +0800 Subject: lz4: Add ptest support Add a ptest for lz4. It is a backport for http://cgit.openembedded.org/openembedded-core/commit/?id=2ee144a0bfb88823bfa788697bb7afc9a572c413 It should be deleted after yocto version up. SPEC-4753 Signed-off-by: Qiu Tingting Change-Id: Ibca25bbafc7857d30a1c487ac130fb22774cad97 --- meta-agl-test/recipes-support/lz4/files/run-ptest | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta-agl-test/recipes-support/lz4/files/run-ptest (limited to 'meta-agl-test/recipes-support/lz4/files/run-ptest') diff --git a/meta-agl-test/recipes-support/lz4/files/run-ptest b/meta-agl-test/recipes-support/lz4/files/run-ptest new file mode 100644 index 00000000..c662c60e --- /dev/null +++ b/meta-agl-test/recipes-support/lz4/files/run-ptest @@ -0,0 +1,17 @@ +#!/bin/sh + +# Define test work dir +WORKDIR=@PTEST_PATH@/tests/ + +# Run test +cd ${WORKDIR} + +case_name="test_frame" +./frametest +ret=$? +if [[ ${ret} == "0" ]]; then + echo "PASS: lz4/$case_name" +else + echo "FAIL: lz4/$case_name" +fi + -- cgit 1.2.3-korg