diff options
Diffstat (limited to 'meta-oe/recipes-extended/magic-enum/magic-enum/run-ptest')
-rw-r--r-- | meta-oe/recipes-extended/magic-enum/magic-enum/run-ptest | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/magic-enum/magic-enum/run-ptest b/meta-oe/recipes-extended/magic-enum/magic-enum/run-ptest new file mode 100644 index 0000000000..865da9f69e --- /dev/null +++ b/meta-oe/recipes-extended/magic-enum/magic-enum/run-ptest | |||
@@ -0,0 +1,27 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # SPDX-FileCopyrightText: 2024 Bosch Sicherheitssysteme GmbH | ||
4 | # | ||
5 | # SPDX-License-Identifier: MIT | ||
6 | |||
7 | fail_count=0 | ||
8 | all_count=0 | ||
9 | |||
10 | for test_suite in tests/test_* | ||
11 | do | ||
12 | if "./$test_suite" | ||
13 | then | ||
14 | echo "PASS: $test_suite" | ||
15 | else | ||
16 | echo "FAIL: $test_suite" | ||
17 | fail_count=$((fail_count + 1)) | ||
18 | fi | ||
19 | all_count=$((all_count + 1)) | ||
20 | done | ||
21 | |||
22 | if [ $fail_count -eq 0 ] | ||
23 | then | ||
24 | echo "PASS: All $all_count tests passed" | ||
25 | else | ||
26 | echo "FAIL: $fail_count of $all_count tests failed" | ||
27 | fi | ||