2010-04-26 13:44:05 +04:00
|
|
|
#!/bin/bash
|
2009-06-22 20:29:05 +04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Red Hat, Inc.
|
|
|
|
# Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it would 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
|
2009-07-16 21:26:54 +04:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-06-22 20:29:05 +04:00
|
|
|
#
|
|
|
|
# all tests should use a common language setting to prevent golden
|
|
|
|
# output mismatches.
|
|
|
|
export LANG=C
|
|
|
|
|
|
|
|
PATH=".:$PATH"
|
|
|
|
|
|
|
|
HOSTOS=`uname -s`
|
2017-09-12 17:44:53 +03:00
|
|
|
arch=`uname -m`
|
2018-03-29 14:20:53 +03:00
|
|
|
[[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch"
|
2009-06-22 20:29:05 +04:00
|
|
|
|
|
|
|
export PWD=`pwd`
|
|
|
|
|
2017-09-12 17:44:52 +03:00
|
|
|
# make sure we have a standard umask
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
_optstr_add()
|
|
|
|
{
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
echo "$1,$2"
|
|
|
|
else
|
|
|
|
echo "$2"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2009-06-22 20:29:05 +04:00
|
|
|
# make sure this script returns success
|
2015-01-04 04:53:48 +03:00
|
|
|
true
|