#!/bin/sh RPM_SOURCE_DIR="/root/rpmbuild/SOURCES" RPM_BUILD_DIR="/root/rpmbuild/BUILD" RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic" RPM_ARCH="x86_64" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="libvirt" RPM_PACKAGE_VERSION="0.9.4" RPM_PACKAGE_RELEASE="23.el6" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C export LANG unset CDPATH DISPLAY ||: RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/libvirt-0.9.4-23.el6.x86_64" export RPM_BUILD_ROOT PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH set -x umask 022 cd "/root/rpmbuild/BUILD" cd 'libvirt-0.9.4' unset DISPLAY cd tests # The following test doesn't currently work in a mock build root for i in daemon-conf do rm -f $i printf "#!/bin/sh\nexit 0\n" > $i chmod +x $i done for i in nodeinfotest.c do printf '#include "testutils.h"\nint main(void){return EXIT_AM_SKIP;}\n' >$i done make check exit 0