summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/lldpd/files
diff options
context:
space:
mode:
authorXiangyu Chen <xiangyu.chen@eng.windriver.com>2022-11-11 16:22:00 +0800
committerKhem Raj <raj.khem@gmail.com>2022-11-11 11:45:17 -0800
commit7fe87bea09081575a6536cf044d6bc62803b1acd (patch)
tree444563825036248808adce303e368b9c99b601e0 /meta-networking/recipes-daemons/lldpd/files
parent5192a8bfc3418acdfde44c7e463bc0ce9151d96c (diff)
downloadmeta-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-xmeta-networking/recipes-daemons/lldpd/files/run-ptest16
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 000000000..da686eb46
--- /dev/null
+++ b/meta-networking/recipes-daemons/lldpd/files/run-ptest
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3num_fail=0
4
5for test in tests/check*
6do
7 ./"$test" \
8 && echo "PASS: $test" \
9 || {
10 echo "FAIL: $test"
11 num_fail=$(( ${num_fail} + 1))
12 }
13
14done
15
16exit $num_fail