2013-07-04 08:05:39 +00:00
|
|
|
|
|
|
|
prepare_list=""
|
|
|
|
setup_list=""
|
|
|
|
run_list=""
|
|
|
|
cleanup_list=""
|
|
|
|
finish_list=""
|
|
|
|
|
|
|
|
function main
|
|
|
|
{
|
|
|
|
ok=1
|
2013-11-07 09:33:43 +00:00
|
|
|
main_start_time=$(date +'%Y%m%d%H%M%S')
|
2013-07-04 08:05:39 +00:00
|
|
|
for script in $prepare_list; do
|
|
|
|
if (( ok )); then
|
2014-02-04 09:42:11 +00:00
|
|
|
(( main_verbose_script )) && echo "calling $script"
|
2013-07-04 08:05:39 +00:00
|
|
|
$script || ok=0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for script in $setup_list; do
|
|
|
|
if (( ok )); then
|
2014-02-04 09:42:11 +00:00
|
|
|
(( main_verbose_script )) && echo "calling $script"
|
2013-07-04 08:05:39 +00:00
|
|
|
$script || ok=0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for script in $run_list; do
|
|
|
|
if (( ok )); then
|
2014-02-04 09:42:11 +00:00
|
|
|
(( main_verbose_script )) && echo "calling $script"
|
2013-07-04 08:05:39 +00:00
|
|
|
$script || ok=0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for script in $cleanup_list; do
|
2014-02-04 09:42:11 +00:00
|
|
|
(( main_verbose_script )) && echo "calling $script"
|
2013-07-04 08:05:39 +00:00
|
|
|
$script
|
|
|
|
done
|
|
|
|
for script in $finish_list; do
|
2014-02-04 09:42:11 +00:00
|
|
|
(( main_verbose_script )) && echo "calling $script"
|
2013-07-04 08:05:39 +00:00
|
|
|
$script
|
|
|
|
done
|
|
|
|
return $(( !ok ))
|
|
|
|
}
|
2013-11-07 09:33:43 +00:00
|
|
|
|
|
|
|
function main_test_no_longer_in_use
|
|
|
|
{
|
|
|
|
echo "This test is kept only for historical reasons and does not run anymore"
|
|
|
|
}
|