Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Separation Generator to a dedicated repo
[apps/low-level-can-service.git]
/
libs
/
uds-c
/
runtests.sh
diff --git a/libs/uds-c/runtests.sh
b/libs/uds-c/runtests.sh
new file mode 100644
(file)
index 0000000..
4781636
--- /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)"