diff options
| author | Xiangyu Chen <xiangyu.chen@eng.windriver.com> | 2022-11-11 16:22:00 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-11-11 11:45:17 -0800 |
| commit | 7fe87bea09081575a6536cf044d6bc62803b1acd (patch) | |
| tree | 444563825036248808adce303e368b9c99b601e0 /meta-networking/recipes-daemons/lldpd/files | |
| parent | 5192a8bfc3418acdfde44c7e463bc0ce9151d96c (diff) | |
| download | meta-openembedded-7fe87bea09081575a6536cf044d6bc62803b1acd.tar.gz | |
lldpd: add ptest for lldpd package
Signed-off-by: Xiangyu Chen <xiangyu.chen@eng.windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/lldpd/files')
| -rwxr-xr-x | meta-networking/recipes-daemons/lldpd/files/run-ptest | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/lldpd/files/run-ptest b/meta-networking/recipes-daemons/lldpd/files/run-ptest new file mode 100755 index 0000000000..da686eb465 --- /dev/null +++ b/meta-networking/recipes-daemons/lldpd/files/run-ptest | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | num_fail=0 | ||
| 4 | |||
| 5 | for test in tests/check* | ||
| 6 | do | ||
| 7 | ./"$test" \ | ||
| 8 | && echo "PASS: $test" \ | ||
| 9 | || { | ||
| 10 | echo "FAIL: $test" | ||
| 11 | num_fail=$(( ${num_fail} + 1)) | ||
| 12 | } | ||
| 13 | |||
| 14 | done | ||
| 15 | |||
| 16 | exit $num_fail | ||
