From: Romain Forlot <romain.forlot@iot.bzh> Date: Tue, 2 May 2017 15:51:18 +0000 (+0200) Subject: Add 'CAN-binder/libs/isotp-c/' from commit 'ee24440b7c123ab1b0317e57be33e837a1cb51f1' X-Git-Tag: 3.99.1~104 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f44a5b1549bc4c8a84d0dedf4a8b1e4220a34f42;p=apps%2Flow-level-can-service.git Add 'CAN-binder/libs/isotp-c/' from commit 'ee24440b7c123ab1b0317e57be33e837a1cb51f1' git-subtree-dir: CAN-binder/libs/isotp-c git-subtree-mainline: d170c9faeae2cf29c19f3523714ecdf58be73bed git-subtree-split: ee24440b7c123ab1b0317e57be33e837a1cb51f1 --- f44a5b1549bc4c8a84d0dedf4a8b1e4220a34f42 diff --cc CAN-binder/libs/isotp-c/.gitignore index 0000000,0000000..96a3694 new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/isotp-c/.gitignore @@@ -1,0 -1,0 +1,6 @@@ ++*.o ++.DS_Store ++*~ ++*.bin ++*.gcno ++build diff --cc CAN-binder/libs/isotp-c/.gitmodules index 0000000,0000000..aae6d23 new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/isotp-c/.gitmodules @@@ -1,0 -1,0 +1,3 @@@ ++[submodule "deps/canutil"] ++ path = deps/bitfield-c ++ url = https://github.com/openxc/canutil diff --cc CAN-binder/libs/isotp-c/.travis.yml index 0000000,31bfdeb..31bfdeb mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/.travis.yml +++ b/CAN-binder/libs/isotp-c/.travis.yml diff --cc CAN-binder/libs/isotp-c/CHANGELOG.mkd index 0000000,e6fd5cc..e6fd5cc mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/CHANGELOG.mkd +++ b/CAN-binder/libs/isotp-c/CHANGELOG.mkd diff --cc CAN-binder/libs/isotp-c/LICENSE index 0000000,0000000..330d61f new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/isotp-c/LICENSE @@@ -1,0 -1,0 +1,24 @@@ ++Copyright (c) 2013 Ford Motor Company ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ * Redistributions of source code must retain the above copyright ++ notice, this list of conditions and the following disclaimer. ++ * Redistributions in binary form must reproduce the above copyright ++ notice, this list of conditions and the following disclaimer in the ++ documentation and/or other materials provided with the distribution. ++ * Neither the name of the <organization> nor the ++ names of its contributors may be used to endorse or promote products ++ derived from this software without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY ++DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ++LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ++ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --cc CAN-binder/libs/isotp-c/Makefile index 0000000,90165ba..90165ba mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/Makefile +++ b/CAN-binder/libs/isotp-c/Makefile diff --cc CAN-binder/libs/isotp-c/README.mkd index 0000000,9803048..9803048 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/README.mkd +++ b/CAN-binder/libs/isotp-c/README.mkd diff --cc CAN-binder/libs/isotp-c/deps/bitfield-c index 0000000,7f1d547..7f1d547 mode 000000,160000..160000 --- a/CAN-binder/libs/isotp-c/deps/bitfield-c +++ b/CAN-binder/libs/isotp-c/deps/bitfield-c diff --cc CAN-binder/libs/isotp-c/runtests.sh index 0000000,0000000..4781636 new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/isotp-c/runtests.sh @@@ -1,0 -1,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)" diff --cc CAN-binder/libs/isotp-c/src/isotp/isotp.c index 0000000,ce87f1b..ce87f1b mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/isotp.c +++ b/CAN-binder/libs/isotp-c/src/isotp/isotp.c diff --cc CAN-binder/libs/isotp-c/src/isotp/isotp.h index 0000000,3a3658c..3a3658c mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/isotp.h +++ b/CAN-binder/libs/isotp-c/src/isotp/isotp.h diff --cc CAN-binder/libs/isotp-c/src/isotp/isotp_types.h index 0000000,3b7fd26..3b7fd26 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/isotp_types.h +++ b/CAN-binder/libs/isotp-c/src/isotp/isotp_types.h diff --cc CAN-binder/libs/isotp-c/src/isotp/receive.c index 0000000,35b7a2a..35b7a2a mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/receive.c +++ b/CAN-binder/libs/isotp-c/src/isotp/receive.c diff --cc CAN-binder/libs/isotp-c/src/isotp/receive.h index 0000000,6788914..6788914 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/receive.h +++ b/CAN-binder/libs/isotp-c/src/isotp/receive.h diff --cc CAN-binder/libs/isotp-c/src/isotp/send.c index 0000000,e849bb2..e849bb2 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/send.c +++ b/CAN-binder/libs/isotp-c/src/isotp/send.c diff --cc CAN-binder/libs/isotp-c/src/isotp/send.h index 0000000,1af3266..1af3266 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/src/isotp/send.h +++ b/CAN-binder/libs/isotp-c/src/isotp/send.h diff --cc CAN-binder/libs/isotp-c/tests/common.c index 0000000,a9eed39..a9eed39 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/tests/common.c +++ b/CAN-binder/libs/isotp-c/tests/common.c diff --cc CAN-binder/libs/isotp-c/tests/test_core.c index 0000000,73b47af..73b47af mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/tests/test_core.c +++ b/CAN-binder/libs/isotp-c/tests/test_core.c diff --cc CAN-binder/libs/isotp-c/tests/test_receive.c index 0000000,607f906..607f906 mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/tests/test_receive.c +++ b/CAN-binder/libs/isotp-c/tests/test_receive.c diff --cc CAN-binder/libs/isotp-c/tests/test_send.c index 0000000,29cf5de..29cf5de mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/tests/test_send.c +++ b/CAN-binder/libs/isotp-c/tests/test_send.c