mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
6283847857
Basic test that "make install" works; this requires msgfmt so add gettext to the packages. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1506095371-23160-1-git-send-email-pbonzini@redhat.com> [Rebase to master. - Fam] Signed-off-by: Fam Zheng <famz@redhat.com>
55 lines
1.0 KiB
Bash
Executable File
55 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Common routines for docker test scripts.
|
|
#
|
|
# Copyright (c) 2016 Red Hat Inc.
|
|
#
|
|
# Authors:
|
|
# Fam Zheng <famz@redhat.com>
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2
|
|
# or (at your option) any later version. See the COPYING file in
|
|
# the top-level directory.
|
|
|
|
requires()
|
|
{
|
|
for c in $@; do
|
|
if ! echo "$FEATURES" | grep -wq -e "$c"; then
|
|
echo "Prerequisite '$c' not present, skip"
|
|
exit 0
|
|
fi
|
|
done
|
|
}
|
|
|
|
build_qemu()
|
|
{
|
|
config_opts="--enable-werror \
|
|
${TARGET_LIST:+--target-list=${TARGET_LIST}} \
|
|
--prefix=$INSTALL_DIR \
|
|
$QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \
|
|
$@"
|
|
echo "Configure options:"
|
|
echo $config_opts
|
|
$QEMU_SRC/configure $config_opts && make $MAKEFLAGS
|
|
}
|
|
|
|
test_fail()
|
|
{
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
prep_fail()
|
|
{
|
|
echo "$@"
|
|
exit 2
|
|
}
|
|
|
|
install_qemu()
|
|
{
|
|
make install $MAKEFLAGS DESTDIR=$PWD/=destdir
|
|
ret=$?
|
|
rm -rf $PWD/=destdir
|
|
return $ret
|
|
}
|