-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove out of date cppcheck suppressions; fix hook for deleted files * Stop using suppressions * Try adding custom findcmocka * Vain attempt to debug deps bs * Vain attempt to debug deps bs #2 * Deps BS: Try stealing a simpler travis setup * Deps BS: Add find module (facepalm) * GCC: Update sanitizer specs * CI: Add arm64 target * CI: Migrate rest of script * CI: Debug clang formaat * CI: Try different multine strings * CI: Explicitly install clangf8 * CI: Explicitly install clangf8 * CI: More clf8 tweaks * CI: Install cppcheck * CI: Fix YAML syntax * CI: Get rid of the qemu hack * CI: Build cmocka in a separte dir to avoid confusing cppcheck * CI: Fix format hook to find the right files * CI: Make format hook chatty in CI
- Loading branch information
Showing
10 changed files
with
114 additions
and
199 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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,49 @@ | ||
# - Try to find CMocka | ||
# Once done this will define | ||
# | ||
# CMOCKA_ROOT_DIR - Set this variable to the root installation of CMocka | ||
# | ||
# Read-Only variables: | ||
# CMOCKA_FOUND - system has CMocka | ||
# CMOCKA_INCLUDE_DIR - the CMocka include directory | ||
# CMOCKA_LIBRARIES - Link these to use CMocka | ||
# CMOCKA_DEFINITIONS - Compiler switches required for using CMocka | ||
# | ||
#============================================================================= | ||
# Copyright (c) 2011-2012 Andreas Schneider <asn@cryptomilk.org> | ||
# | ||
# Distributed under the OSI-approved BSD License (the "License"); | ||
# see accompanying file Copyright.txt for details. | ||
# | ||
# This software is distributed WITHOUT ANY WARRANTY; without even the | ||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the License for more information. | ||
#============================================================================= | ||
# | ||
|
||
find_path(CMOCKA_INCLUDE_DIR | ||
NAMES | ||
cmocka.h | ||
PATHS | ||
${CMOCKA_ROOT_DIR}/include | ||
) | ||
|
||
find_library(CMOCKA_LIBRARY | ||
NAMES | ||
cmocka cmocka_shared | ||
PATHS | ||
${CMOCKA_ROOT_DIR}/include | ||
) | ||
|
||
if (CMOCKA_LIBRARY) | ||
set(CMOCKA_LIBRARIES | ||
${CMOCKA_LIBRARIES} | ||
${CMOCKA_LIBRARY} | ||
) | ||
endif (CMOCKA_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(CMocka DEFAULT_MSG CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR) | ||
|
||
# show the CMOCKA_INCLUDE_DIR and CMOCKA_LIBRARIES variables only in the advanced view | ||
mark_as_advanced(CMOCKA_INCLUDE_DIR CMOCKA_LIBRARIES) |
This file contains 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,10 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Usage: ./clang-format.sh <extra arguments> | ||
|
||
DIRS="src test examples demo" | ||
SOURCES=$(find ${DIRS} -name "*.c") | ||
SOURCES+=" $(find ${DIRS} -name "*.h")" | ||
SOURCES+=" $(find ${DIRS} -name "*.cpp")" | ||
|
||
# TravisCI workaround to use new clang-format while avoiding painful aliasing | ||
# into the subshell | ||
if which clang-format-8; then | ||
clang-format-8 --verbose -style=file -i **/*.c **/*.h **/*.cpp | ||
clang-format-8 $@ -style=file -i ${SOURCES} | ||
else | ||
clang-format --verbose -style=file -i **/*.c **/*.h **/*.cpp | ||
clang-format $@ -style=file -i ${SOURCES} | ||
fi | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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