mars/test_suite/scripts/modules/00_main.sh
Frank Liepold 18fd90d538 test_suite: current state
Signed-off-by: Thomas Schoebel-Theuer <schoebel@bell.site>
2013-11-07 10:38:21 +01:00

45 lines
911 B
Bash

prepare_list=""
setup_list=""
run_list=""
cleanup_list=""
finish_list=""
function main
{
ok=1
main_start_time=$(date +'%Y%m%d%H%M%S')
for script in $prepare_list; do
if (( ok )); then
(( verbose_script )) && echo "calling $script"
$script || ok=0
fi
done
for script in $setup_list; do
if (( ok )); then
(( verbose_script )) && echo "calling $script"
$script || ok=0
fi
done
for script in $run_list; do
if (( ok )); then
(( verbose_script )) && echo "calling $script"
$script || ok=0
fi
done
for script in $cleanup_list; do
(( verbose_script )) && echo "calling $script"
$script
done
for script in $finish_list; do
(( verbose_script )) && echo "calling $script"
$script
done
return $(( !ok ))
}
function main_test_no_longer_in_use
{
echo "This test is kept only for historical reasons and does not run anymore"
}