X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=config.ml;h=e6d5e3c5c6b0f9321a47379c23c96eb9743f9d01;hb=e9c34d60d744b25170f82c60cd300a67711a971f;hp=6db20f5bce81d197c0ca0207dc7288f8a5c36617;hpb=50790d6953d8bc68fd373f1c09949f7bff385050;p=goaljobs-goals.git diff --git a/config.ml b/config.ml index 6db20f5..e6d5e3c 100644 --- a/config.ml +++ b/config.ml @@ -8,9 +8,17 @@ open Printf (* General. *) let buildtmp = sprintf "%s/tmp/builds" (Sys.getenv "HOME") +(* Fedora *) +let fedora_dir = Sys.getenv "HOME" // "d/fedora" +let fedora_repo pkg branch = fedora_dir // pkg // branch +let fedora_specfile pkg branch = + sprintf "%s/%s.spec" (fedora_repo pkg branch) pkg + (* libguestfs *) -let libguestfs_website_cvs = - sprintf "%s/d/redhat/websites/libguestfs" (Sys.getenv "HOME") +let libguestfs_query_mins = 60 + +let libguestfs_website_repo = + sprintf "%s/d/websites/libguestfs" (Sys.getenv "HOME") let libguestfs_localconfigure source = let configure = @@ -21,21 +29,60 @@ let libguestfs_localconfigure source = #!/bin/bash - . localenv +# NB: --enable-valgrind-daemon is disabled because we +# should be checking production builds. + %s \\ --prefix /usr \\ --disable-static \\ --with-default-backend=libvirt \\ - --enable-gcc-warnings \\ + --enable-werror \\ --enable-gtk-doc \\ - --enable-valgrind-daemon \\ + --disable-golang \\ -C \\ \"$@\" " configure -let libguestfs_localenv = "\ -# Parallel test runs out of resources starting qemu, unclear why. +let libguestfs_localenv supermin = + "\ +# Fails under valgrind because of a leak in the fuse library, +# although I could not work out exactly why. export SKIP_TEST_PARALLEL_MOUNT_LOCAL=1 # Fails under valgrind because cpio subprocess has a memory leak. export SKIP_TEST_FILE_ARCHITECTURE_11=1 -" +export SKIP_TEST_FILE_ARCHITECTURE_15=1 + +# Fails under valgrind because xzcat subprocess has a memory leak. +export SKIP_TEST_FILE_ARCHITECTURE_17=1 + +# This test fails because we build the ISO after encoding the checksum +# of the ISO in the test itself. Need to fix the test to work out the +# checksum at runtime. +export SKIP_TEST_CHECKSUM_DEVICE=1 + +# Disable parallel virt-alignment-scan & virt-df tests (RHBZ#1025942). +export SKIP_TEST_VIRT_ALIGNMENT_SCAN_GUESTS_SH=1 +export SKIP_TEST_VIRT_DF_GUESTS_SH=1 + +# fusermount behaviour seems to have broken the test (RHBZ#1220751). +export SKIP_TEST_FUSE_UMOUNT_RACE_SH=1 +export SKIP_TEST_GUESTMOUNT_FD=1 + +# xfs_admin has no effect in Rawhide (RHBZ#1233220). +export SKIP_TEST_XFS_ADMIN=1 +export SKIP_TEST_XFS_MISC_PL=1 + +# syslinux broken by mtools (RHBZ#1275087). +export SKIP_TEST_SYSLINUX_PL=1 + +" ^ + match supermin with + | None -> "" + | Some (supermin, supermin_helper) -> + sprintf "\ +# Needs a modified path to supermin binaries: +export SUPERMIN=%s +export SUPERMIN_HELPER=%s + +" supermin supermin_helper