mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 18:45:43 +01:00
Merge remote-tracking branch 'public/pr/2033' into mbedtls-2.1
This commit is contained in:
commit
d10c8ed6d0
@ -384,21 +384,21 @@ fi
|
||||
# Indicative running times are given for reference.
|
||||
|
||||
msg "test: recursion.pl" # < 1s
|
||||
tests/scripts/recursion.pl library/*.c
|
||||
record_status tests/scripts/recursion.pl library/*.c
|
||||
|
||||
msg "test: freshness of generated source files" # < 1s
|
||||
tests/scripts/check-generated-files.sh
|
||||
record_status tests/scripts/check-generated-files.sh
|
||||
|
||||
msg "test: doxygen markup outside doxygen blocks" # < 1s
|
||||
tests/scripts/check-doxy-blocks.pl
|
||||
record_status tests/scripts/check-doxy-blocks.pl
|
||||
|
||||
msg "test: check-files.py" # < 1s
|
||||
cleanup
|
||||
tests/scripts/check-files.py
|
||||
record_status tests/scripts/check-files.py
|
||||
|
||||
msg "test/build: declared and exported names" # < 3s
|
||||
cleanup
|
||||
tests/scripts/check-names.sh
|
||||
record_status tests/scripts/check-names.sh
|
||||
|
||||
if which doxygen >/dev/null; then
|
||||
msg "test: doxygen warnings" # ~ 3s
|
||||
@ -446,7 +446,7 @@ CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan .
|
||||
make
|
||||
|
||||
msg "test: ssl-opt.sh, MFL-related tests"
|
||||
tests/ssl-opt.sh -f "Max fragment length"
|
||||
if_build_succeeded tests/ssl-opt.sh -f "Max fragment length"
|
||||
|
||||
msg "build: Default + SSLv3 (ASan build)" # ~ 6 min
|
||||
cleanup
|
||||
@ -490,10 +490,10 @@ msg "test: RSA_NO_CRT - main suites (inc. selftests) (ASan build)" # ~ 50s
|
||||
make test
|
||||
|
||||
msg "test: RSA_NO_CRT - RSA-related part of ssl-opt.sh (ASan build)" # ~ 5s
|
||||
tests/ssl-opt.sh -f RSA
|
||||
if_build_succeeded tests/ssl-opt.sh -f RSA
|
||||
|
||||
msg "test: RSA_NO_CRT - RSA-related part of compat.sh (ASan build)" # ~ 3 min
|
||||
tests/compat.sh -t RSA
|
||||
if_build_succeeded tests/compat.sh -t RSA
|
||||
|
||||
|
||||
msg "build: cmake, full config, clang" # ~ 50s
|
||||
|
@ -155,6 +155,12 @@ class IntegrityChecker(object):
|
||||
".c", ".h", ".sh", ".pl", ".py", ".md", ".function", ".data",
|
||||
"Makefile", "CMakeLists.txt", "ChangeLog"
|
||||
)
|
||||
self.excluded_directories = ['.git', 'mbed-os']
|
||||
self.excluded_paths = list(map(os.path.normpath, [
|
||||
'cov-int',
|
||||
'examples',
|
||||
'yotta/module'
|
||||
]))
|
||||
self.issues_to_check = [
|
||||
PermissionIssueTracker(),
|
||||
EndOfFileNewlineIssueTracker(),
|
||||
@ -179,12 +185,19 @@ class IntegrityChecker(object):
|
||||
console = logging.StreamHandler()
|
||||
self.logger.addHandler(console)
|
||||
|
||||
def prune_branch(self, root, d):
|
||||
if d in self.excluded_directories:
|
||||
return True
|
||||
if os.path.normpath(os.path.join(root, d)) in self.excluded_paths:
|
||||
return True
|
||||
return False
|
||||
|
||||
def check_files(self):
|
||||
for root, dirs, files in sorted(os.walk(".")):
|
||||
for root, dirs, files in os.walk("."):
|
||||
dirs[:] = sorted(d for d in dirs if not self.prune_branch(root, d))
|
||||
for filename in sorted(files):
|
||||
filepath = os.path.join(root, filename)
|
||||
if (os.path.join("yotta", "module") in filepath or
|
||||
not filepath.endswith(self.files_to_check)):
|
||||
if not filepath.endswith(self.files_to_check):
|
||||
continue
|
||||
for issue_to_check in self.issues_to_check:
|
||||
if issue_to_check.should_check_file(filepath):
|
||||
|
Loading…
Reference in New Issue
Block a user