Merge branch 'mbedtls-1.3' into development

* mbedtls-1.3:
  Use link-time garbage collection in memory.sh
  scripts/memory.sh only work on Linux
  Add missing 'const' on selftest data
  Use only headers for doxygen (no doc in C files)
  Add missing extern "C" guard in aesni.h
  Fix compile error with renego disabled
  Remove slow PKCS5 test
  Stop checking key-cert match systematically
  Make tests/*.sh runnable from anywhere
  Update visual C files
This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-11 10:30:21 +00:00
commit 57a26da593
13 changed files with 70 additions and 64 deletions

View file

@ -12,7 +12,7 @@ CONFIG_H='include/mbedtls/config.h'
CLIENT='mini_client'
CFLAGS_EXEC=-fno-asynchronous-unwind-tables
CFLAGS_EXEC='-fno-asynchronous-unwind-tables -Wl,--gc-section -ffunction-sections'
CFLAGS_MEM=-g3
if [ -r $CONFIG_H ]; then :; else
@ -25,6 +25,11 @@ if grep -i cmake Makefile >/dev/null; then
exit 1
fi
if [ $( uname ) != Linux ]; then
echo "Only work on Linux" >&2
exit 1
fi
if git status | grep -F $CONFIG_H >/dev/null 2>&1; then
echo "config.h not clean" >&2
exit 1
@ -54,7 +59,7 @@ do_config()
cd programs
CFLAGS=$CFLAGS_EXEC make OFLAGS=-Os ssl/$CLIENT >/dev/null
strip ssl/$CLIENT
stat -f '%z' ssl/$CLIENT
stat -c '%s' ssl/$CLIENT
cd ..
printf " Peak ram usage... "