-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/18/2013 10:48 AM, Stephen Gallagher wrote: > Some of the tests (such as the sysdb tests) are highly I/O > limited. By running them on a ramdisk, we can significantly speed > up the test runs when doing a distcheck or RPM build. > > The RPM specfile is not conditionalized like the Makefile because > it is highly Fedora/RHEL-centric and is therefore guaranteed to be > available. > > For non-RPM/distcheck builds, you can always pass > --with-test-dir=/dev/shm to configure (which is done automatically > in the contrib/fedora/bashrc_sssd script fedconfig macro).
Forgot the patch... Also, this patch fixes https://fedorahosted.org/sssd/ticket/1840 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFHKicACgkQeiVVYja6o6MDEACfZ5rYphGJ6dCXaqq6gjil2HIi Bx0AmwQ/e0bpeho8477DvvjDJp9LXCTi =y1HP -----END PGP SIGNATURE-----
>From 5237806bfc1f24edf935a419a872c98ca2e2c2b7 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher <sgall...@redhat.com> Date: Mon, 18 Mar 2013 10:39:50 -0400 Subject: [PATCH] BUILD: Always run distcheck and RPM tests in /dev/shm Some of the tests (such as the sysdb tests) are highly I/O limited. By running them on a ramdisk, we can significantly speed up the test runs when doing a distcheck or RPM build. https://fedorahosted.org/sssd/ticket/1840 --- Makefile.am | 8 +++++++- configure.ac | 2 ++ contrib/sssd.spec.in | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 79e6e571cc12fd38f78ef0b031bb867b0b650eb0..d192f0488180e920d4e11daa422de8be9af446cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,11 @@ +extra_distcheck_flags = +if HAVE_DEVSHM + extra_distcheck_flags += --with-test-dir=/dev/shm +endif + DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \ - --enable-all-experimental-features + --enable-all-experimental-features \ + $(extra_distcheck_flags) SUBDIRS = po diff --git a/configure.ac b/configure.ac index af976151ad3c90bfcb056dd7d8d24bbc8b884ca5..9c95a6d488e29d25ceeefd5b69a8e63654313fa5 100644 --- a/configure.ac +++ b/configure.ac @@ -270,6 +270,8 @@ AM_CONDITIONAL([HAVE_DOXYGEN], [test x$DOXYGEN != xfalse ]) AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x]) +AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm]) + abs_build_dir=`pwd` AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory]) AC_SUBST([abs_builddir], $abs_build_dir) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 7f124f5cd9dc602481cb5f4ae7a5a9418b6c8bf9..710a9d34eee8b1468ffce432412c9c0735a97113 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -254,6 +254,7 @@ done autoreconf -ivf %configure \ + --with-test-dir=/dev/shm \ --with-db-path=%{dbpath} \ --with-mcache-path=%{mcpath} \ --with-pipe-path=%{pipepath} \ -- 1.8.1.4
0001-BUILD-Always-run-distcheck-and-RPM-tests-in-dev-shm.patch.sig
Description: PGP signature
_______________________________________________ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/sssd-devel