X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=config.ml;h=50ff28f9ec57a45d7b11cee43370f3a8ccc1f1a8;hb=d561a25015bb195b483cb22b1167074c17611997;hp=251bfa823213956844f85e36756945130add6d09;hpb=7948877db13807dbc83a6de6aecd34218aae014a;p=goaljobs-goals.git diff --git a/config.ml b/config.ml index 251bfa8..50ff28f 100644 --- a/config.ml +++ b/config.ml @@ -8,11 +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_query_mins = 5 +let libguestfs_query_mins = 60 -let libguestfs_website_cvs = - sprintf "%s/d/redhat/websites/libguestfs" (Sys.getenv "HOME") +let libguestfs_website_repo = + sprintf "%s/d/websites/libguestfs" (Sys.getenv "HOME") let libguestfs_localconfigure source = let configure = @@ -23,21 +29,39 @@ 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 = + let skips = + shlines "grep SKIP_ %s" (fedora_specfile "libguestfs" "master") in + + "\ +# 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 -" + +" ^ String.concat "\n" skips ^ + 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