diff options
| author | Qiu Tingting <qiutt@fujitsu.com> | 2023-04-06 10:23:30 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-02 10:25:40 +0100 |
| commit | 9ca04fc169d512579238fff4ba337dcc23e42af4 (patch) | |
| tree | 6f82795afb0df53b65acf87b4b05e81a79ce3a28 /meta/recipes-support/lz4/files | |
| parent | 768c89e306d0486acf8bc76cecef90436f6551b3 (diff) | |
| download | poky-9ca04fc169d512579238fff4ba337dcc23e42af4.tar.gz | |
lz4: Add ptest support
Add a ptest for lz4.
- It is taking around 9 min to execute with kvm, so added it to PTEST_SLOW.
- It contains one case: test_frame.
- Below is the run log:
START: ptest-runner
2023-04-06T00:36
BEGIN: /usr/lib/lz4/ptest
Starting lz4frame tester (64-bits, 1.9.4)
Seed = 7314
Basic tests completed
All tests completed
PASS: lz4/test_frame
DURATION: 573
END: /usr/lib/lz4/ptest
2023-04-06T00:45
STOP: ptest-runner
TOTAL: 1 FAIL: 0
(From OE-Core rev: 2ee144a0bfb88823bfa788697bb7afc9a572c413)
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/lz4/files')
| -rw-r--r-- | meta/recipes-support/lz4/files/run-ptest | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-support/lz4/files/run-ptest b/meta/recipes-support/lz4/files/run-ptest new file mode 100644 index 0000000000..f4a46a4f2c --- /dev/null +++ b/meta/recipes-support/lz4/files/run-ptest | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Define test work dir | ||
| 4 | WORKDIR=@PTEST_PATH@/tests/ | ||
| 5 | |||
| 6 | # Run test | ||
| 7 | cd ${WORKDIR} | ||
| 8 | |||
| 9 | case_name="test_frame" | ||
| 10 | ./frametest | ||
| 11 | ret=$? | ||
| 12 | if [[ ${ret} == "0" ]]; then | ||
| 13 | echo "PASS: lz4/$case_name" | ||
| 14 | else | ||
| 15 | echo "FAIL: lz4/$case_name" | ||
| 16 | fi | ||
| 17 | |||
