On (17/12/14 19:11), Nikolai Kondrashov wrote:
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?
It would be better to start from beginnig. You just mentioned some problems.
and I just wanted to give a hint not a full plan.
You haven't mentioned your desing(proposal/plan). IMO, there are more ways how
to run cwrap tests. I can see what's your problem but I cannot image you plan.
Could you describe (aproximatelly in ten points) what was your plan?
Then I will try fit idea from previous mail to your design.
LS