From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7992d2ba081b33a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!j8g2000yql.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Installing AUnit Date: Wed, 18 Mar 2009 10:48:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: <64f82699-dfdf-4987-b66e-cc4fd9f64efe@j8g2000yql.googlegroups.com> References: NNTP-Posting-Host: 82.20.239.213 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1237398512 17181 127.0.0.1 (18 Mar 2009 17:48:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 Mar 2009 17:48:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j8g2000yql.googlegroups.com; posting-host=82.20.239.213; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:4173 Date: 2009-03-18T10:48:32-07:00 List-Id: On Mar 17, 10:47=A0am, "Peter C. Chapin" wrote: > Tim Rowe wrote innews:m_KdnXGtYsdx5CPUnZ2dnUVZ= 8jyWnZ2d@posted.plusnet: > > > I'm trying to install AUnit. I've downloaded the sources, run > > doinstall.bat, accepted all the defaults and -- now what? > > > The test code I'm developing falls over at: > > with Aunit.Test_Cases; > > because it can't find aunit.ads. Fair enough, I need to make it > > available, but searching my system... > > You have to create your own aunit.ads. Its an instantation of > AUnit_Framework.Framework that is customized to your situation. For > example, in one of my projects I'm using this: I'm pretty sure this is AUnit 2 (which I never used, simply because it seemed so much less easy to use than AUnit 1). AUnit 3 seems to give the best of both worlds & I'd recommend it, if only because my old test code built with only minor changes! (looks as though I got it from the AdaCore subversion server - http://svn.eu.adacore.com/anonsvn/US/trunk/AUnit). It will be more complex with AdaGIDE than with GPRs. That said, the code is findable via the AUnit GPRs with a bit of detection. I'm a bit surprised at the locations of the various aunit.ads fines, though. Might be worth reading doinstall.bat to see what it does.