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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | cd testsuite | ||
3 | 2 | ||
4 | echo -n "---- test-lz4 ----" | 3 | # Define test work dir |
5 | make -C tests test-lz4 > /dev/null 2>&1 | 4 | WORKDIR=@PTEST_PATH@/tests/ |
6 | 5 | ||
7 | if [ $? -eq 0 ]; then | 6 | # Run test |
8 | echo "PASS" | 7 | cd ${WORKDIR} |
9 | else | ||
10 | echo "FAIL" | ||
11 | fi | ||
12 | |||
13 | echo -n "---- test-fasttest ----" | ||
14 | make -C tests test-fasttest > /dev/null 2>&1 | ||
15 | if [ $? -eq 0 ]; then | ||
16 | echo "PASS" | ||
17 | else | ||
18 | echo "FAIL" | ||
19 | fi | ||
20 | 8 | ||
21 | echo -n "---- test-frametest ----" | 9 | case_name="test_frame" |
22 | make -C tests test-frametest > /dev/null 2>&1 | 10 | ./frametest |
23 | if [ $? -eq 0 ]; then | 11 | ret=$? |
24 | echo "PASS" | 12 | if [[ ${ret} == "0" ]]; then |
13 | echo "PASS: lz4/$case_name" | ||
25 | else | 14 | else |
26 | echo "FAIL" | 15 | echo "FAIL: lz4/$case_name" |
27 | fi | 16 | fi |
28 | 17 | ||
29 | echo -n "---- test-fullbench ----" | ||
30 | make -C tests test-fullbench > /dev/null 2>&1 | ||
31 | if [ $? -eq 0 ]; then | ||
32 | echo "PASS" | ||
33 | else | ||
34 | echo "FAIL" | ||
35 | fi | ||
36 | |||
37 | echo -n "---- test-fuzzer ----" | ||
38 | make -C tests test-fuzzer > /dev/null 2>&1 | ||
39 | if [ $? -eq 0 ]; then | ||
40 | echo "PASS" | ||
41 | else | ||
42 | echo "FAIL" | ||
43 | fi | ||