Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 89
Fix gcc warnings in core_http_client.c. Update ci.yml.#101
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
bb14738e1e6fe8f8013218a8605e467392a4b1ff21db5db984bbc37ee5554f354883422c160c811f3e150f2a996b33af431e91031c995041File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -8,34 +8,68 @@ on: | ||
| workflow_dispatch: | ||
| jobs: | ||
| unittest: | ||
| unittests-sanitizer: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Clone This Repo | ||
| uses: actions/checkout@v2 | ||
| - name: Build | ||
| - name: Build with Sanitizers | ||
| run: | | ||
| sudo apt-get install -y lcov | ||
| cmake -S test -B build/ \ | ||
| sudo apt-get install -y cmake lcov | ||
| CFLAGS=" -O0 -Wall -Wextra" | ||
| CFLAGS+=" -Werror -Wno-error=pedantic" | ||
paulbartell marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| CFLAGS+=" -D_FORTIFY_SOURCE=2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment about what this configuration and its value does? | ||
| CFLAGS+=" -Wformat" | ||
| CLFAGS+=" -Wformat-security" | ||
| CFLAGS+=" -Warray-bounds" | ||
| CFLAGS+=" -fsanitize=address,undefined" | ||
| CFLAGS+=" -fsanitize=pointer-compare -fsanitize=pointer-subtract" | ||
| CFLAGS+=" -fsanitize-recover=undefined" | ||
| CFLAGS+=" -fsanitize-address-use-after-scope" | ||
| CFLAGS+=" -fsanitize-undefined-trap-on-error" | ||
| CFLAGS_=" -fstack-protector-all" | ||
| cmake -S test -B build \ | ||
| -G "Unix Makefiles" \ | ||
| -DCMAKE_BUILD_TYPE=Debug \ | ||
| -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -DNDEBUG' | ||
| make -C build/ all | ||
| - name: Test | ||
| -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
| -DCMAKE_C_FLAGS="${CFLAGS}" | ||
| make -C build all | ||
| - name: Run Tests with Sanitizers | ||
| run: | | ||
| cd build/ | ||
| cd build | ||
| make coverage | ||
| ||
| ctest -E system --output-on-failure | ||
| cd .. | ||
| - name: Run Coverage | ||
| unittests-coverage: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Clone This Repo | ||
| uses: actions/checkout@v2 | ||
| - name: Build Tests for Coverage | ||
paulbartell marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| run: | | ||
| make -C build/ coverage | ||
| sudo apt-get install -y cmake lcov | ||
| CFLAGS=" --coverage -O0 -Wall -Wextra" | ||
paulbartell marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| CFLAGS+=" -Werror -Wno-error=pedantic" | ||
| CFLAGS+=" -DNDEBUG" | ||
paulbartell marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| cmake -S test -B build_cov \ | ||
| -G "Unix Makefiles" \ | ||
| -DCMAKE_BUILD_TYPE=Debug \ | ||
| -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
| -DCMAKE_C_FLAGS="${CFLAGS}" | ||
| make -C build_cov all | ||
| - name: Run Tests for Coverage | ||
| run: | | ||
| cd build_cov | ||
| make coverage | ||
| ctest -E system --output-on-failure | ||
| cd .. | ||
| declare -a EXCLUDE=("\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*3rdparty\*") | ||
| echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info | ||
| lcov --rc lcov_branch_coverage=1 --list build/coverage.info | ||
| echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build_cov/coverage.info -o build_cov/coverage.info | ||
| lcov --rc lcov_branch_coverage=1 --list build_cov/coverage.info | ||
| - name: Check Coverage | ||
| uses: FreeRTOS/CI-CD-Github-Actions/coverage-cop@main | ||
| with: | ||
| path: ./build/coverage.info | ||
| path: ./build_cov/coverage.info | ||
| complexity: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.