-
Notifications
You must be signed in to change notification settings - Fork 499
Issue #222: v1 platform layer #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thirtytwobits
merged 10 commits into
OpenCyphal-Garage:uavcan-v1.0
from
thirtytwobits:uavcan-v1.0
May 29, 2019
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1d707ee
Issue #222: v1 platform layer
thirtytwobits af3f3f9
adding compile-time test
thirtytwobits e32104f
Update ci/native-gcc-build-and-test.sh
thirtytwobits 66e490c
Update libuavcan/include/libuavcan/transport/media/can.hpp
thirtytwobits 019dccb
Tests, docs, and changes per PR comments.
thirtytwobits 61d7a4c
Update libuavcan/include/libuavcan/transport/media/can.hpp
thirtytwobits e77f2b6
updating the docs with media layer design
thirtytwobits 95cfb5c
cleaning up some codacity warnings
thirtytwobits 8840b51
removed \"porting\" as a term.
thirtytwobits 7c40524
Adding newline to end of media.md.
thirtytwobits File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # +----------------------------------------------------------+ | ||
| # | BASH : Modifying Shell Behaviour | ||
| # | (https://www.gnu.org/software/bash/manual) | ||
| # +----------------------------------------------------------+ | ||
| # Treat unset variables and parameters other than the special | ||
| # parameters ‘@’ or ‘*’ as an error when performing parameter | ||
| # expansion. An error message will be written to the standard | ||
| # error, and a non-interactive shell will exit. | ||
| set -o nounset | ||
|
|
||
| # Exit immediately if a pipeline returns a non-zero status. | ||
| set -o errexit | ||
|
|
||
| # If set, the return value of a pipeline is the value of the | ||
| # last (rightmost) command to exit with a non-zero status, or | ||
| # zero if all commands in the pipeline exit successfully. | ||
| set -o pipefail | ||
|
|
||
| # +----------------------------------------------------------+ | ||
| # | This script is one of the common set of commands run as | ||
| # | part of a continuous integration build pipeline. | ||
| # | These scrips are named using the following scheme: | ||
| # | | ||
| # | [build_type]-[(optional)build_type qualifier]-[build|test|report|upload].sh | ||
| # | | ||
| # | Of course, libuavcan is a header-only distribution so | ||
| # | CI is used to verify and test rather than package and | ||
| # | deploy (i.e. There's really no 'I' going on). | ||
| # +----------------------------------------------------------+ | ||
|
|
||
| mkdir -p build_ci_native_gcc | ||
| pushd build_ci_native_gcc | ||
| # GCC is our reference compiler since it does a better job with | ||
| # coverage metrics. | ||
| cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/gcc-native.cmake \ | ||
| -DLIBUAVCAN_EXT_FOLDER=build_ci_ext_gcc \ | ||
| .. | ||
|
|
||
| make -j4 | ||
|
|
||
| # We use ctest to run our compile tests. | ||
| ctest -VV | ||
|
|
||
| # This builds, runs, and reports on our native unit tests. | ||
| # TODO: when we integrate with coveralls or codacity run make cov_info | ||
| # instead to skip the genhtml step. | ||
| make cov_all | ||
|
|
||
| make docs | ||
|
|
||
| popd | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
|
|
||
|
|
||
| find_program(LCOV lcov) | ||
| find_program(GENHTML genhtml) | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
|
|
||
| find_package_handle_standard_args(lcov | ||
| LCOV_FOUND | ||
| ) | ||
|
|
||
| find_package_handle_standard_args(genhtml | ||
| GENHTML_FOUND | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # | ||
| # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| # | ||
| # Toolchain for using gcc on what-ever-platform-this-is (aka "native"). | ||
| # | ||
| set(CMAKE_C_COMPILER gcc) | ||
| set(CMAKE_CXX_COMPILER g++) | ||
| set(CMAKE_ASM_COMPILER gcc) |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.