mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 23:42:32 +00:00
Add -s (short) option to all.sh
On my machine, that reduces running time from about 30 minutes to less than 10 minutes, while maintaining a good probability of catching the most likely issues in practice.
This commit is contained in:
parent
695e0ba014
commit
259b08a5d2
@ -21,12 +21,16 @@ CONFIG_H='include/mbedtls/config.h'
|
|||||||
CONFIG_BAK="$CONFIG_H.bak"
|
CONFIG_BAK="$CONFIG_H.bak"
|
||||||
|
|
||||||
MEMORY=0
|
MEMORY=0
|
||||||
|
SHORT=0
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-m*)
|
-m*)
|
||||||
MEMORY=${1#-m}
|
MEMORY=${1#-m}
|
||||||
;;
|
;;
|
||||||
|
-s)
|
||||||
|
SHORT=1
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown argument: '$1'" >&2
|
echo "Unknown argument: '$1'" >&2
|
||||||
echo "Use the source, Luke!" >&2
|
echo "Use the source, Luke!" >&2
|
||||||
@ -109,6 +113,11 @@ msg "test/build: ref-configs (ASan build)" # ~ 6 min 20s
|
|||||||
tests/scripts/test-ref-configs.pl
|
tests/scripts/test-ref-configs.pl
|
||||||
|
|
||||||
# Most frequent issues are likely to be caught at this point
|
# Most frequent issues are likely to be caught at this point
|
||||||
|
if [ $SHORT -eq 1 ]; then
|
||||||
|
msg "Done, cleaning up"
|
||||||
|
cleanup
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
msg "build: with ASan (rebuild after ref-configs)" # ~ 1 min
|
msg "build: with ASan (rebuild after ref-configs)" # ~ 1 min
|
||||||
make
|
make
|
||||||
|
Loading…
x
Reference in New Issue
Block a user