From: Romain Forlot Date: Tue, 2 May 2017 15:51:18 +0000 (+0200) Subject: Add 'CAN-binder/libs/isotp-c/' from commit 'ee24440b7c123ab1b0317e57be33e837a1cb51f1' X-Git-Tag: 5.0.2~276 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f44a5b1549bc4c8a84d0dedf4a8b1e4220a34f42;p=apps%2Fagl-service-can-low-level.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 00000000,00000000..96a3694f 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 00000000,00000000..aae6d232 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 00000000,31bfdeb3..31bfdeb3 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 00000000,e6fd5cc0..e6fd5cc0 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 00000000,00000000..330d61f4 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 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 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 00000000,90165ba6..90165ba6 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 00000000,98030483..98030483 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 00000000,7f1d5473..7f1d5473 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 00000000,00000000..4781636b 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 00000000,ce87f1bd..ce87f1bd 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 00000000,3a3658c7..3a3658c7 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 00000000,3b7fd26d..3b7fd26d 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 00000000,35b7a2a6..35b7a2a6 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 00000000,6788914a..6788914a 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 00000000,e849bb2c..e849bb2c 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 00000000,1af32668..1af32668 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 00000000,a9eed39e..a9eed39e 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 00000000,73b47af0..73b47af0 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 00000000,607f9061..607f9061 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 00000000,29cf5dec..29cf5dec mode 000000,100644..100644 --- a/CAN-binder/libs/isotp-c/tests/test_send.c +++ b/CAN-binder/libs/isotp-c/tests/test_send.c