From: Romain Forlot Date: Tue, 2 May 2017 15:52:11 +0000 (+0200) Subject: Add 'CAN-binder/libs/uds-c/' from commit 'ca20db3dd978871bbb9f01f3c862b510c03d1dc4' X-Git-Tag: 5.0.2~273 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=0242c26c2f5dc96387bca7efb118364c800f4ee7;p=apps%2Fagl-service-can-low-level.git Add 'CAN-binder/libs/uds-c/' from commit 'ca20db3dd978871bbb9f01f3c862b510c03d1dc4' git-subtree-dir: CAN-binder/libs/uds-c git-subtree-mainline: 3102ec9ce009d0f28355c5b7df9c5bd5013e6e75 git-subtree-split: ca20db3dd978871bbb9f01f3c862b510c03d1dc4 --- 0242c26c2f5dc96387bca7efb118364c800f4ee7 diff --cc CAN-binder/libs/uds-c/.gitignore index 00000000,00000000..834a305d new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/uds-c/.gitignore @@@ -1,0 -1,0 +1,5 @@@ ++*.o ++.DS_Store ++*~ ++*.bin ++build diff --cc CAN-binder/libs/uds-c/.gitmodules index 00000000,00000000..d9c0194b new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/uds-c/.gitmodules @@@ -1,0 -1,0 +1,6 @@@ ++[submodule "deps/bitfield-c"] ++ path = deps/bitfield-c ++ url = https://github.com/openxc/bitfield-c ++[submodule "deps/isotp-c"] ++ path = deps/isotp-c ++ url = https://github.com/openxc/isotp-c diff --cc CAN-binder/libs/uds-c/.travis.yml index 00000000,00000000..31bfdeb3 new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/uds-c/.travis.yml @@@ -1,0 -1,0 +1,8 @@@ ++language: c ++compiler: ++ - gcc ++script: make test ++before_install: ++ - git submodule update --init ++ - sudo apt-get update -qq ++ - sudo apt-get install check diff --cc CAN-binder/libs/uds-c/CHANGELOG.mkd index 00000000,96eaa178..96eaa178 mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/CHANGELOG.mkd +++ b/CAN-binder/libs/uds-c/CHANGELOG.mkd diff --cc CAN-binder/libs/uds-c/LICENSE index 00000000,00000000..330d61f4 new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/uds-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/uds-c/Makefile index 00000000,4adf3ceb..4adf3ceb mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/Makefile +++ b/CAN-binder/libs/uds-c/Makefile diff --cc CAN-binder/libs/uds-c/README.mkd index 00000000,aa0d7fd7..aa0d7fd7 mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/README.mkd +++ b/CAN-binder/libs/uds-c/README.mkd diff --cc CAN-binder/libs/uds-c/deps/bitfield-c index 00000000,6f243098..6f243098 mode 000000,160000..160000 --- a/CAN-binder/libs/uds-c/deps/bitfield-c +++ b/CAN-binder/libs/uds-c/deps/bitfield-c diff --cc CAN-binder/libs/uds-c/deps/isotp-c index 00000000,ee24440b..ee24440b mode 000000,160000..160000 --- a/CAN-binder/libs/uds-c/deps/isotp-c +++ b/CAN-binder/libs/uds-c/deps/isotp-c diff --cc CAN-binder/libs/uds-c/runtests.sh index 00000000,00000000..4781636b new file mode 100644 --- /dev/null +++ b/CAN-binder/libs/uds-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/uds-c/src/uds/extras.c index 00000000,2be6bdd8..2be6bdd8 mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/src/uds/extras.c +++ b/CAN-binder/libs/uds-c/src/uds/extras.c diff --cc CAN-binder/libs/uds-c/src/uds/extras.h index 00000000,126e5d42..126e5d42 mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/src/uds/extras.h +++ b/CAN-binder/libs/uds-c/src/uds/extras.h diff --cc CAN-binder/libs/uds-c/src/uds/uds.c index 00000000,0114384d..0114384d mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/src/uds/uds.c +++ b/CAN-binder/libs/uds-c/src/uds/uds.c diff --cc CAN-binder/libs/uds-c/src/uds/uds.h index 00000000,43058342..43058342 mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/src/uds/uds.h +++ b/CAN-binder/libs/uds-c/src/uds/uds.h diff --cc CAN-binder/libs/uds-c/src/uds/uds_types.h index 00000000,4ebc150c..4ebc150c mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/src/uds/uds_types.h +++ b/CAN-binder/libs/uds-c/src/uds/uds_types.h diff --cc CAN-binder/libs/uds-c/tests/common.c index 00000000,fd1e4b2c..fd1e4b2c mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/tests/common.c +++ b/CAN-binder/libs/uds-c/tests/common.c diff --cc CAN-binder/libs/uds-c/tests/test_core.c index 00000000,81200cca..81200cca mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/tests/test_core.c +++ b/CAN-binder/libs/uds-c/tests/test_core.c