diff options
| author | Sofiane HAMAM <sofiane.hamam@smile.fr> | 2025-03-05 18:04:35 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-06 06:58:00 -0800 |
| commit | 06a5e82a83e9626dfcb7f62f5bee0b4e40d89056 (patch) | |
| tree | 4567474b5a7a01d787717a242bb9b0f73220b454 /meta-networking/recipes-connectivity/wolfssl/files/run-ptest | |
| parent | 9b4dfdb14f0c6e231146cf54e4aab74625793219 (diff) | |
| download | meta-openembedded-06a5e82a83e9626dfcb7f62f5bee0b4e40d89056.tar.gz | |
Wolfssl: add ptest
Add ptest for Wolfssl package.
Set IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-wolfssl to 700M
enough to avoid a "No space left on device".
BEGIN: /usr/lib/wolfssl/ptest
Wolfssl ptest logs are stored in /tmp/wolfss_temp.qvuQ9h/ptest.log
Test script returned: 0
unit_test: Success for all configured tests.
PASS: Wolfssl
DURATION: 7
END: /usr/lib/wolfssl/ptest
Signed-off-by: Sofiane HAMAM <sofiane.hamam@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/wolfssl/files/run-ptest')
| -rw-r--r-- | meta-networking/recipes-connectivity/wolfssl/files/run-ptest | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wolfssl/files/run-ptest b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest new file mode 100644 index 0000000000..ff66f4ef6c --- /dev/null +++ b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | echo "############ Running Wolfssl Ptest ##########" | ||
| 4 | |||
| 5 | log_file=ptest.log | ||
| 6 | temp_dir=$(mktemp -d /tmp/wolfss_temp.XXXXXX) | ||
| 7 | echo "Wolfssl ptest logs are stored in ${temp_dir}/${log_file}" | ||
| 8 | |||
| 9 | ./test/unit.test > "$temp_dir/$log_file" 2>&1 | ||
| 10 | |||
| 11 | echo "Test script returned: $?" | ||
| 12 | |||
| 13 | MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file) | ||
| 14 | |||
| 15 | if [ -n "$MAGIC_SENTENCE" ]; then | ||
| 16 | echo "$MAGIC_SENTENCE" | ||
| 17 | echo "PASS: Wolfssl" | ||
| 18 | else | ||
| 19 | echo "#### Issue with at least one test !####" | ||
| 20 | echo "FAIL: Wolfssl" | ||
| 21 | fi | ||
| 22 | NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file) | ||
| 23 | |||
| 24 | exit $NUM_FAILS | ||
