[MonoDevelop] Nunit configure patch

Christian Hergert christian.hergert at gmail.com
Fri Mar 31 01:48:59 EST 2006


Attached is a patch to get things started on the autofoo. Everything
seems to work, except the script in AC_ARG_ENABLE doesnt seem to get
run unless --enable-nunit={yes|no} is appened to configure. I imagine
this is because of the defaults. Any other auto masters out there want
to chime in?

-- Christian

On 3/29/06, Lluis Sanchez <lluis at ximian.com> wrote:
> El mié, 29-03-2006 a las 01:00 -0800, Christian Hergert escribió:
> > This doesnt solve the problem. Not all distributions package the mono
> > provided nunit. Debian/Ubuntu actually package the upstream nunit and
> > therefore use nunit.pc.
> >
> > This can be fixed with the following.
> >
> > dnl nunit
> > PKG_CHECK_MODULES(NUNIT, nunit >= 2.2.0,
> > [
> >   NUNIT_LIBS=$NUNIT_LIBS
> > ],
> > [
> >   PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit >= 1.1.9)
> >   NUNIT_LIBS=$MONO_NUNIT_LIBS
> > ])
> >
> > This still leaves one issue. This only links against that specific
> > nunit. You can still have runtime issues if the proper nunit lib isnt
> > available, or loads another nunit, as the upstream and mono provided
> > ones are typically slightly different, and suffer from separate bugs
> > (at least this was the case a while back).
> >
> > We might just consider providing nunit in contrib and linking directly.
>
> Using a private copy of NUnit isn't a solution either. A public release
> of NUnit will still be needed to compile the nunit projects. So you'll
> end up compiling your projects with the installed NUnit, and running
> them with the private copy of the add-in.
>
> I think the best we can do right now is to fix the compilation issue,
> and add a dependency in the NUnit add-in to make sure it is not loaded
> if nunit is not installed.
>
> So, how should the compilation be fixed? there is a patch in
> http://bugzilla.ximian.com/show_bug.cgi?id=76814. Is this good? I
> already applied the patch that removes unneeded nunit references.
>
> Lluis.
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nunit.diff
Type: text/x-patch
Size: 2301 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060330/ea1f547a/nunit.bin


More information about the Monodevelop-list mailing list