1 Star 0 Fork 0

crazyydevil/libguestfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
installcheck.sh.in 3.61 KB
一键复制 编辑 原始数据 按行查看 历史
Richard W.M. Jones 提交于 2019-11-12 11:40 . v2v: Remove virt-v2v.
#!/bin/bash
# @configure_input@
#
# (C) Copyright 2015 Red Hat Inc.
#
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
# Run 'make check' on installed packages.
#
# The version of installed libguestfs being tested, and the version of
# the libguestfs source tree must be the same.
unset CDPATH
export LANG=C
set -e
set -x
# Grrrrrrr autoconf.
prefix=@prefix@
exec_prefix=@exec_prefix@
# Remove all libtool crappage.
find -name 'lt-*' | grep '/.libs/lt-' | xargs -r rm
# Copy the installed library into libtool directory.
rm -f lib/.libs/libguestfs.so*
cp @libdir@/libguestfs.so lib/.libs/
cp @libdir@/libguestfs.so.0 lib/.libs/
cp @libdir@/libguestfs.so.0.* lib/.libs/
# Copy installed binaries into the right places.
cp @bindir@/libguestfs-test-tool test-tool/
cp @bindir@/guestfish fish/
cp @bindir@/guestmount fuse/
cp @bindir@/virt-alignment-scan align/
cp @bindir@/virt-builder builder/
cp @bindir@/virt-builder-repository builder/
cp @bindir@/virt-cat cat/
cp @bindir@/virt-copy-in fish/
cp @bindir@/virt-copy-out fish/
cp @bindir@/virt-customize customize/
cp @bindir@/virt-dib dib/
cp @bindir@/virt-diff diff/
cp @bindir@/virt-df df/
cp @bindir@/virt-edit edit/
cp @bindir@/virt-filesystems cat/
cp @bindir@/virt-format format/
cp @bindir@/virt-get-kernel get-kernel/
cp @bindir@/virt-inspector inspector/
cp @bindir@/virt-ls cat/
cp @bindir@/virt-make-fs make-fs/
cp @bindir@/virt-rescue rescue/
cp @bindir@/virt-resize resize/
cp @bindir@/virt-sparsify sparsify/
cp @bindir@/virt-sysprep sysprep/
cp @bindir@/virt-tar-in fish/
cp @bindir@/virt-tar-out fish/
cp @bindir@/virt-win-reg tools/
# virt-list-filesystems, virt-list-partitions and virt-tar are not
# tested, because they are not routinely installed by Linux distros
# (being legacy programs).
# XXX No language bindings are copied at the moment.
# Copy the installed appliance.
rm -rf appliance/supermin.d
cp -r @libdir@/guestfs/supermin.d appliance/
# Try to force the appliance not to get rebuilt:
touch appliance/stamp-supermin
rm -rf "tmp/.guestfs-$(id -u)"
# Run the tests.
make check -k
# Check the library and some critical binaries didn't get rebuilt
# during the 'make check', which would invalidate the results of
# the test.
compare () {
sum1=`md5sum $1 | @AWK@ '{print $1}'`
sum2=`md5sum $2 | @AWK@ '{print $1}'`
if [ "$sum1" != "$sum2" ]; then
echo "$2 was overwritten during the test. Test results are invalid."
exit 1
fi
}
compare @libdir@/libguestfs.so lib/.libs/libguestfs.so
compare @bindir@/guestfish fish/guestfish
compare @bindir@/guestmount fuse/guestmount
compare @bindir@/virt-df df/virt-df
compare @libdir@/guestfs/supermin.d/daemon.tar.gz \
appliance/supermin.d/daemon.tar.gz
# Now do a make clean to remove all the above.
make clean >/dev/null 2>&1 ||:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/crazyydevil/libguestfs.git
git@gitee.com:crazyydevil/libguestfs.git
crazyydevil
libguestfs
libguestfs
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385