check: Only test ipack when it is compiled in
[qemu/kevin.git] / tests / qemu-iotests / common.config
blob102aa6878a96f8d7bf2d65d3f727a17ad992d83b
1 #!/bin/bash
3 # Copyright (C) 2009 Red Hat, Inc.
4 # Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it would be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # all tests should use a common language setting to prevent golden
19 # output mismatches.
20 export LANG=C
22 PATH=".:$PATH"
24 HOSTOS=`uname -s`
25 arch=`uname -m`
26 [[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch"
28 export PWD=`pwd`
30 # make sure we have a standard umask
31 umask 022
33 _optstr_add()
35 if [ -n "$1" ]; then
36 echo "$1,$2"
37 else
38 echo "$2"
42 # make sure this script returns success
43 true