[SSSD] Data dir and cwrap tests

Nikolai Kondrashov Nikolai.Kondrashov at redhat.com
Wed Dec 17 17:11:35 UTC 2014


On 12/17/2014 06:44 PM, Lukas Slebodnik wrote:
> You can use different prefix even with make check.

Sure, but then it won't be just any "make check" anymore. It will require a
special "configure" invocation to work.

> "make distcheck" uses it in such way. It doesn't make sense to reinvent wheel.
> The only difference is that make distcheck does not run program. It just calls
> "make install" and "make uninstall" (very simplified version)
>
> Here is simplified part of distcheck. We can use similar approach.
>
> distcheck: dist
>        GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
>      chmod -R a-w $(distdir)
>      chmod u+w $(distdir)
>      mkdir $(distdir)/_build $(distdir)/_inst
>      chmod a-w $(distdir)
>      test -d $(distdir)/_build || exit 0; \
>      dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
>        && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
>        && am__cwd=`pwd` \
>        && $(am__cd) $(distdir)/_build \
>        && ../configure \
>          $(AM_DISTCHECK_CONFIGURE_FLAGS) \
>          $(DISTCHECK_CONFIGURE_FLAGS) \
>          --srcdir=.. --prefix="$$dc_install_base" \
>                                ^^^^^^^^^^^^^^^^^
>                              custom prefix in make distcheck
>        && $(MAKE) $(AM_MAKEFLAGS) \

Yes, it invokes "configure" and does a separate build.

I'm not sure what you're suggesting and I wouldn't like to guess.
Could you please clarify?

Thank you.

Nick



More information about the sssd-devel mailing list