2013-07-04 08:05:39 +00:00
|
|
|
#!/bin/bash
|
2013-12-10 14:32:40 +00:00
|
|
|
# Copyright 2010-2013 Frank Liepold / 1&1 Internet AG
|
|
|
|
#
|
|
|
|
# Email: frank.liepold@1und1.de
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
#####################################################################
|
2013-07-04 08:05:39 +00:00
|
|
|
|
2014-02-04 09:42:11 +00:00
|
|
|
## default for this directory: <git-repository>/test_suite.
|
|
|
|
## Normally this should not be changed
|
|
|
|
main_base_directory=$(dirname ${BASH_SOURCE[0]})
|
2013-07-04 08:05:39 +00:00
|
|
|
|
2014-02-04 09:42:11 +00:00
|
|
|
## flag to print debug messages
|
|
|
|
main_verbose_script=1
|
2013-08-06 12:29:21 +00:00
|
|
|
|
2013-11-07 09:33:43 +00:00
|
|
|
## file to implement a primitive locking mechanism to avoid concurrent runs
|
2014-02-04 09:42:11 +00:00
|
|
|
## of the test suite on the same host.
|
|
|
|
## The use case specific file names must be provided in
|
|
|
|
## global_user_dir/global.conf
|
2013-11-07 09:33:43 +00:00
|
|
|
declare -g -A main_lock_file_list
|
|
|
|
|
|
|
|
## errorcode to prevent lib_exit from removing lock files
|
2013-12-10 14:32:40 +00:00
|
|
|
## (main_lock_file_list)
|
2014-02-03 07:06:13 +00:00
|
|
|
main_prevent_remove_lock_files_exit_code=42
|
2013-11-07 09:33:43 +00:00
|
|
|
|
2013-12-30 14:58:22 +00:00
|
|
|
## stack level from which the callstack should be printed in function
|
|
|
|
## lib_vmsg
|
|
|
|
## As default we skip the top three, because in general these are constantly
|
|
|
|
## stdin, start_test.sh and 00_main.sh
|
|
|
|
main_min_stack_level=3
|
|
|
|
|
2013-07-04 08:05:39 +00:00
|
|
|
## associative array containing functions (as indexes) to be called in case of
|
|
|
|
## unexpected errors or signals. See also lib_exit
|
|
|
|
## The values of the array are the parameter lists for the function calls
|
|
|
|
|
|
|
|
declare -g -A main_error_recovery_functions
|
|
|
|
|
2013-12-10 14:32:40 +00:00
|
|
|
## for batch ssh access from our work station to the involved hosts we need a
|
|
|
|
## id file without password.
|
2013-07-04 08:05:39 +00:00
|
|
|
|
2014-04-24 11:35:04 +00:00
|
|
|
main_ssh_idfile_opt="-i ${MARS_SSH_KEYFILE:-$HOME/.ssh/id_dsa_no_pw}"
|
2013-07-04 08:05:39 +00:00
|
|
|
|