mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 17:25:38 +00:00
Merge remote-tracking branch 'public/pr/2031' into development
This commit is contained in:
commit
3869384ddb
|
@ -664,7 +664,7 @@ WARN_LOGFILE =
|
||||||
# directories like "/usr/src/myproject". Separate the files or directories
|
# directories like "/usr/src/myproject". Separate the files or directories
|
||||||
# with spaces.
|
# with spaces.
|
||||||
|
|
||||||
INPUT = ..
|
INPUT = ../include input
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||||
|
@ -696,7 +696,7 @@ RECURSIVE = YES
|
||||||
# Note that relative paths are relative to the directory from which doxygen is
|
# Note that relative paths are relative to the directory from which doxygen is
|
||||||
# run.
|
# run.
|
||||||
|
|
||||||
EXCLUDE = ../configs
|
EXCLUDE =
|
||||||
|
|
||||||
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
|
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
|
||||||
# directories that are symbolic links (a Unix file system feature) are excluded
|
# directories that are symbolic links (a Unix file system feature) are excluded
|
||||||
|
|
|
@ -105,7 +105,7 @@ $(BINARIES): %$(EXEXT): %.c $(DEP)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -rf $(APPS) *.c *.datax TESTS
|
rm -rf $(BINARIES) *.c *.datax TESTS
|
||||||
else
|
else
|
||||||
del /Q /F *.c *.exe *.datax
|
del /Q /F *.c *.exe *.datax
|
||||||
ifneq ($(wildcard TESTS/.*),)
|
ifneq ($(wildcard TESTS/.*),)
|
||||||
|
|
|
@ -420,25 +420,25 @@ OPENSSL="$OPENSSL" OPENSSL_LEGACY="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_CLI" \
|
||||||
ARMC6_CC="$ARMC6_CC" RUN_ARMCC="$RUN_ARMCC" scripts/output_env.sh
|
ARMC6_CC="$ARMC6_CC" RUN_ARMCC="$RUN_ARMCC" scripts/output_env.sh
|
||||||
|
|
||||||
msg "test: recursion.pl" # < 1s
|
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
|
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
|
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
|
msg "test: check-files.py" # < 1s
|
||||||
cleanup
|
cleanup
|
||||||
tests/scripts/check-files.py
|
record_status tests/scripts/check-files.py
|
||||||
|
|
||||||
msg "test/build: declared and exported names" # < 3s
|
msg "test/build: declared and exported names" # < 3s
|
||||||
cleanup
|
cleanup
|
||||||
tests/scripts/check-names.sh
|
record_status tests/scripts/check-names.sh
|
||||||
|
|
||||||
msg "test: doxygen warnings" # ~ 3s
|
msg "test: doxygen warnings" # ~ 3s
|
||||||
cleanup
|
cleanup
|
||||||
tests/scripts/doxygen.sh
|
record_status tests/scripts/doxygen.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -507,10 +507,10 @@ msg "test: RSA_NO_CRT - main suites (inc. selftests) (ASan build)" # ~ 50s
|
||||||
make test
|
make test
|
||||||
|
|
||||||
msg "test: RSA_NO_CRT - RSA-related part of ssl-opt.sh (ASan build)" # ~ 5s
|
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
|
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: small SSL_OUT_CONTENT_LEN (ASan build)"
|
msg "build: small SSL_OUT_CONTENT_LEN (ASan build)"
|
||||||
cleanup
|
cleanup
|
||||||
|
@ -1039,7 +1039,6 @@ for optimization_flag in -O2 -O3 -Ofast -Os; do
|
||||||
cleanup
|
cleanup
|
||||||
make programs CC="$compiler" DEBUG=1 CFLAGS="$optimization_flag"
|
make programs CC="$compiler" DEBUG=1 CFLAGS="$optimization_flag"
|
||||||
if_build_succeeded gdb -x tests/scripts/test_zeroize.gdb -nw -batch -nx 2>&1 | tee test_zeroize.log
|
if_build_succeeded gdb -x tests/scripts/test_zeroize.gdb -nw -batch -nx 2>&1 | tee test_zeroize.log
|
||||||
if_build_succeeded [ -s test_zeroize.log ]
|
|
||||||
if_build_succeeded grep "The buffer was correctly zeroized" test_zeroize.log
|
if_build_succeeded grep "The buffer was correctly zeroized" test_zeroize.log
|
||||||
if_build_succeeded not grep -i "error" test_zeroize.log
|
if_build_succeeded not grep -i "error" test_zeroize.log
|
||||||
rm -f test_zeroize.log
|
rm -f test_zeroize.log
|
||||||
|
@ -1047,10 +1046,10 @@ for optimization_flag in -O2 -O3 -Ofast -Os; do
|
||||||
done
|
done
|
||||||
|
|
||||||
msg "Lint: Python scripts"
|
msg "Lint: Python scripts"
|
||||||
tests/scripts/check-python-files.sh
|
record_status tests/scripts/check-python-files.sh
|
||||||
|
|
||||||
msg "uint test: generate_test_code.py"
|
msg "uint test: generate_test_code.py"
|
||||||
./tests/scripts/test_generate_test_code.py
|
record_status ./tests/scripts/test_generate_test_code.py
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
#### Termination
|
#### Termination
|
||||||
|
|
|
@ -155,6 +155,11 @@ class IntegrityChecker(object):
|
||||||
".c", ".h", ".sh", ".pl", ".py", ".md", ".function", ".data",
|
".c", ".h", ".sh", ".pl", ".py", ".md", ".function", ".data",
|
||||||
"Makefile", "CMakeLists.txt", "ChangeLog"
|
"Makefile", "CMakeLists.txt", "ChangeLog"
|
||||||
)
|
)
|
||||||
|
self.excluded_directories = ['.git', 'mbed-os']
|
||||||
|
self.excluded_paths = list(map(os.path.normpath, [
|
||||||
|
'cov-int',
|
||||||
|
'examples',
|
||||||
|
]))
|
||||||
self.issues_to_check = [
|
self.issues_to_check = [
|
||||||
PermissionIssueTracker(),
|
PermissionIssueTracker(),
|
||||||
EndOfFileNewlineIssueTracker(),
|
EndOfFileNewlineIssueTracker(),
|
||||||
|
@ -179,12 +184,19 @@ class IntegrityChecker(object):
|
||||||
console = logging.StreamHandler()
|
console = logging.StreamHandler()
|
||||||
self.logger.addHandler(console)
|
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):
|
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):
|
for filename in sorted(files):
|
||||||
filepath = os.path.join(root, filename)
|
filepath = os.path.join(root, filename)
|
||||||
if (os.path.join("yotta", "module") in filepath or
|
if not filepath.endswith(self.files_to_check):
|
||||||
not filepath.endswith(self.files_to_check)):
|
|
||||||
continue
|
continue
|
||||||
for issue_to_check in self.issues_to_check:
|
for issue_to_check in self.issues_to_check:
|
||||||
if issue_to_check.should_check_file(filepath):
|
if issue_to_check.should_check_file(filepath):
|
||||||
|
|
|
@ -41,6 +41,9 @@
|
||||||
# number does not need to be updated often.
|
# number does not need to be updated often.
|
||||||
|
|
||||||
set confirm off
|
set confirm off
|
||||||
|
# We don't need to turn off ASLR, so don't try.
|
||||||
|
set disable-randomization off
|
||||||
|
|
||||||
file ./programs/test/zeroize
|
file ./programs/test/zeroize
|
||||||
break zeroize.c:100
|
break zeroize.c:100
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue