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: 3.99.1~101 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=0242c26c2f5dc96387bca7efb118364c800f4ee7;p=apps%2Flow-level-can-service.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 0000000,0000000..834a305 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 0000000,0000000..d9c0194 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 0000000,0000000..31bfdeb 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 0000000,96eaa17..96eaa17 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 0000000,0000000..330d61f 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 0000000,4adf3ce..4adf3ce 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 0000000,aa0d7fd..aa0d7fd 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 0000000,6f24309..6f24309 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 0000000,ee24440..ee24440 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 0000000,0000000..4781636 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 0000000,2be6bdd..2be6bdd 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 0000000,126e5d4..126e5d4 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 0000000,0114384..0114384 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 0000000,4305834..4305834 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 0000000,4ebc150..4ebc150 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 0000000,fd1e4b2..fd1e4b2 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 0000000,81200cc..81200cc mode 000000,100644..100644 --- a/CAN-binder/libs/uds-c/tests/test_core.c +++ b/CAN-binder/libs/uds-c/tests/test_core.c