summaryrefslogtreecommitdiff
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* Update uncrustifyKHANH LUONG HONG DUY2021-06-301-2736/+0
| | | | | | | | | | | | | | | | | | Remove indentation of preprocessor directives inside #if blocks Remove space after # of #if blocks Remove newline between '}' and 'else' Remove newline between 'else if' and '{' Remove space inside braces Remove blank lines before '}' Ignore braces on single-line of 'while' statement Change code width to 100 columns Add aligning all preprocessors Add the span for aligning comments that end lines to 2 Add spaces to indent 'case' from 'switch' to 4 Add braces on a single-line 'do', 'while', 'for', 'if' statement Add braces to all blocks of an 'if'/'else if'/'else' chain Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
* set DLT_NETWORK_TRACE_ENABLE by cmakedefineFelix Herrmann2020-07-061-0/+34
| | | | | Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
* simplify and fix android version scriptFelix Herrmann2020-07-061-46/+31
| | | | | | | fix issues caused by 3.3 cmake upgrade and PROJECT variable introduction. Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com>
* execute unittests with cmakeFelix Herrmann2020-07-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now you can do make test after make :) === Sample build and test: $ cmake -Bbuild -H. \ -DDLT_IPC=UNIX_SOCKET \ -DWITH_DLT_ADAPTOR=ON \ -DWITH_DLT_UNIT_TESTS=ON \ -DWITH_DLT_CXX11_EXT=ON \ -DWITH_DLT_MONITOR=OFF \ -DWITH_DLT_USE_IPv6=OFF $ cd build $ make $ make test Running tests... Test project /home/fherrmann/git/dlt-daemon/build Start 1: gtest_dlt_common 1/5 Test #1: gtest_dlt_common ................. Passed 0.02 sec Start 2: gtest_dlt_user 2/5 Test #2: gtest_dlt_user ................... Passed 1.01 sec Start 3: gtest_dlt_daemon_common 3/5 Test #3: gtest_dlt_daemon_common .......... Passed 0.01 sec Start 4: dlt_env_ll_unit_test 4/5 Test #4: dlt_env_ll_unit_test ............. Passed 0.04 sec Start 5: gtest_dlt_daemon_event_handler 5/5 Test #5: gtest_dlt_daemon_event_handler ... Passed 1.01 sec 100% tests passed, 0 tests failed out of 5 Total Test time (real) = 2.09 sec === Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
* Android: Enable Android buildFelix Herrmann2020-07-061-0/+81
| | | | | Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
* Code beautification using uncrustifyChristoph Lipka2018-12-211-0/+2736
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>