mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-06 10:20:24 +00:00
all.sh: move top-level code to a function
Now the output of grep '^[^ {}#]' tests/scripts/all-*.sh | grep -v '()' is clean, with the only results being: - shopt -s extglob which is needing for parsing the rest - usage message Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
7b556951f9
commit
e4e65aa10a
@ -433,9 +433,11 @@ fatal_signal () {
|
|||||||
kill -$1 $$
|
kill -$1 $$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_set_signal_handlers () {
|
||||||
trap 'fatal_signal HUP' HUP
|
trap 'fatal_signal HUP' HUP
|
||||||
trap 'fatal_signal INT' INT
|
trap 'fatal_signal INT' INT
|
||||||
trap 'fatal_signal TERM' TERM
|
trap 'fatal_signal TERM' TERM
|
||||||
|
}
|
||||||
|
|
||||||
# Number of processors on this machine. Used as the default setting
|
# Number of processors on this machine. Used as the default setting
|
||||||
# for parallel make.
|
# for parallel make.
|
||||||
@ -979,6 +981,7 @@ run_component () {
|
|||||||
main () {
|
main () {
|
||||||
# Preliminary setup
|
# Preliminary setup
|
||||||
pre_set_shell_options
|
pre_set_shell_options
|
||||||
|
pre_set_signal_handlers
|
||||||
pre_check_environment
|
pre_check_environment
|
||||||
pre_load_helpers
|
pre_load_helpers
|
||||||
pre_load_components
|
pre_load_components
|
||||||
|
Loading…
x
Reference in New Issue
Block a user