diff options
Diffstat (limited to 'meta/recipes-support/lz4/files/run-ptest')
-rw-r--r-- | meta/recipes-support/lz4/files/run-ptest | 46 |
1 files changed, 10 insertions, 36 deletions
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest index d3bfc49f1c..f4a46a4f2c 100644 --- a/meta/recipes-support/lz4/files/run-ptest +++ b/meta/recipes-support/lz4/files/run-ptest @@ -1,43 +1,17 @@ #!/bin/sh -cd testsuite -echo -n "---- test-lz4 ----" -make -C tests test-lz4 > /dev/null 2>&1 +# Define test work dir +WORKDIR=@PTEST_PATH@/tests/ -if [ $? -eq 0 ]; then - echo "PASS" -else - echo "FAIL" -fi - -echo -n "---- test-fasttest ----" -make -C tests test-fasttest > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "PASS" -else - echo "FAIL" -fi +# Run test +cd ${WORKDIR} -echo -n "---- test-frametest ----" -make -C tests test-frametest > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "PASS" +case_name="test_frame" +./frametest +ret=$? +if [[ ${ret} == "0" ]]; then + echo "PASS: lz4/$case_name" else - echo "FAIL" + echo "FAIL: lz4/$case_name" fi -echo -n "---- test-fullbench ----" -make -C tests test-fullbench > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "PASS" -else - echo "FAIL" -fi - -echo -n "---- test-fuzzer ----" -make -C tests test-fuzzer > /dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "PASS" -else - echo "FAIL" -fi |