X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=libs%2Fuds-c%2Fruntests.sh;fp=libs%2Fuds-c%2Fruntests.sh;h=4781636b8fd12aa61572f3745d64f8e7e8b1f19c;hb=32e25cbca210a359b09768537b6f443fe90a3070;hp=0000000000000000000000000000000000000000;hpb=76c43dec62b2e21cd6446360c00d4fe6b437533f;p=apps%2Fagl-service-can-low-level.git diff --git a/libs/uds-c/runtests.sh b/libs/uds-c/runtests.sh new file mode 100644 index 00000000..4781636b --- /dev/null +++ b/libs/uds-c/runtests.sh @@ -0,0 +1,17 @@ +echo "Running unit tests:" + +for i in $1/*.bin +do + if test -f $i + then + if ./$i + then + echo $i PASS + else + echo "ERROR in test $i:" + exit 1 + fi + fi +done + +echo "${txtbld}$(tput setaf 2)All unit tests passed.$(tput sgr0)"