libguestfs: Skip broken gobject tests.
[goaljobs-goals.git] / config.ml
1 (* This contains lots of configuration specifics which are
2  * unlikely to be useful unless you are me ...
3  *)
4
5 open Goaljobs
6 open Printf
7
8 (* General. *)
9 let buildtmp = sprintf "%s/tmp/builds" (Sys.getenv "HOME")
10
11 (* Fedora *)
12 let fedora_dir = Sys.getenv "HOME" // "d/fedora"
13 let fedora_repo pkg branch = fedora_dir // pkg // branch
14 let fedora_specfile pkg branch =
15   sprintf "%s/%s.spec" (fedora_repo pkg branch) pkg
16
17 (* libguestfs *)
18 let libguestfs_query_mins = 60
19
20 let websites_repo =
21   sprintf "%s/d/websites" (Sys.getenv "HOME")
22 let libguestfs_website_repo =
23   sprintf "%s/libguestfs" websites_repo
24 let libguestfs_builder_repo =
25   sprintf "%s/libguestfs-builder" websites_repo
26 let libguestfs_download_repo =
27   sprintf "%s/libguestfs-download" websites_repo
28
29 let libguestfs_localconfigure source =
30   let configure =
31     match source with
32       `Git -> "./autogen.sh"
33     | `Tarball -> "./configure" in
34   sprintf "\
35 #!/bin/bash -
36 . localenv
37
38 # erlang is disabled because it is broken in Rawhide:
39 # https://bugzilla.redhat.com/show_bug.cgi?id=1316206
40
41 %s \\
42   --prefix /usr \\
43   --disable-static \\
44   --with-default-backend=libvirt \\
45   --enable-werror \\
46   --enable-gtk-doc \\
47   --disable-golang \\
48   --disable-erlang \\
49   -C \\
50   \"$@\"
51 " configure
52
53 let libguestfs_localenv supermin =
54   "\
55 # Use the real virt-builder configuration from /etc.
56 export XDG_CONFIG_DIRS=/etc
57
58 # Fails under valgrind because of a leak in the fuse library,
59 # although I could not work out exactly why.
60 export SKIP_TEST_PARALLEL_MOUNT_LOCAL=1
61
62 # Fails under valgrind because cpio subprocess has a memory leak.
63 export SKIP_TEST_FILE_ARCHITECTURE_11=1
64 export SKIP_TEST_FILE_ARCHITECTURE_15=1
65
66 # Fails under valgrind because xzcat subprocess has a memory leak.
67 export SKIP_TEST_FILE_ARCHITECTURE_17=1
68
69 # This test fails because we build the ISO after encoding the checksum
70 # of the ISO in the test itself.  Need to fix the test to work out the
71 # checksum at runtime.
72 export SKIP_TEST_CHECKSUM_DEVICE=1
73
74 # Disable parallel virt-alignment-scan & virt-df tests (RHBZ#1025942).
75 export SKIP_TEST_VIRT_ALIGNMENT_SCAN_GUESTS_SH=1
76 export SKIP_TEST_VIRT_DF_GUESTS_SH=1
77
78 # fusermount behaviour seems to have broken the test (RHBZ#1220751).
79 export SKIP_TEST_FUSE_UMOUNT_RACE_SH=1
80 export SKIP_TEST_GUESTMOUNT_FD=1
81
82 # xfs_admin has no effect in Rawhide (RHBZ#1233220).
83 export SKIP_TEST_XFS_ADMIN=1
84 export SKIP_TEST_XFS_MISC_PL=1
85
86 # syslinux broken by mtools (RHBZ#1275087).
87 export SKIP_TEST_SYSLINUX_PL=1
88
89 # See https://www.redhat.com/archives/libguestfs/2015-November/msg00144.html
90 export SKIP_TEST_INOTIFY_ADD_WATCH=1
91
92 # libguestfs: error: mkfs_btrfs: /dev/sda1: not enough free space
93 # (RHBZ#1291715).
94 export SKIP_TEST_BTRFS_IMAGE_0=1
95
96 # Yawn, btrfs broken again. RHBZ#1372037
97 export SKIP_TEST_BTRFS_DEVICES_SH=1
98
99 # Kernel takes lots of RAM for virtio-scsi RHBZ#1478201
100 export SKIP_TEST_255_DISKS_SH=1
101 export SKIP_TEST_ADD_LOTS_OF_DISKS_SH=1
102
103 # virtio-9p modules don't all get loaded RHBZ#1499896
104 export SKIP_TEST_9P_SH=1
105
106 # These tests are broken by libvirt not supporting qemu >= 2.10 locking.
107 # REMOVE THIS when fixed.
108 export SKIP_TEST820RHBZ912499_PY=1
109
110 # gobject is broken
111 # https://bugzilla.redhat.com/show_bug.cgi?id=1524125
112 export SKIP_RUN_LIVE_TESTS=1
113 " ^
114     match supermin with
115     | None -> ""
116     | Some (supermin, supermin_helper) ->
117       sprintf "\
118 # Needs a modified path to supermin binaries:
119 export SUPERMIN=%s
120 export SUPERMIN_HELPER=%s
121
122 " supermin supermin_helper