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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,595c75298fbdce96 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Is Aunit helpful? Date: Thu, 05 Aug 2010 21:57:35 +0100 Organization: A noiseless patient Spider Message-ID: References: <8a1e58c0-2330-4475-8013-97df103dd85e@o19g2000yqb.googlegroups.com> <82r5ids1o9.fsf@stephe-leake.org> <20100805211820.52c18cb5.tero.koskinen@iki.fi> <8d166cfb-4850-42b6-ac25-d9ac00df7565@q35g2000yqn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 5 Aug 2010 20:57:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="13365"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u4PO5+6OXdgk6sMaG65QmEJvtHe1CFCI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:PStZ7HfN5GIE7OegrSD06hE7TOk= Xref: g2news1.google.com comp.lang.ada:12892 Date: 2010-08-05T21:57:35+01:00 List-Id: Ada novice writes: > On Aug 5, 8:18 pm, Tero Koskinen wrote: > >> AdaCommons wiki has a small article and an >> example:http://www.adacommons.org/AUnit >> >> http://www.adacommons.org/AUnit_Calculator_Example >> >> The example is for AUnit 1.x. It most likely doesn't work out of the >> box with AUnit 2.x or 3.x, since every AUnit major version has >> somewhat different API. >> > > Thanks. I did find this example earlier but the commands given there: > > gnatmake -Pcalc > ./harness -v > > doesn't seem right. Though gnatmake -Pcalc is correct and works, I > don't understand what the additional "./harness " is for. To run the test! harness is the executable (harness.exe on Windows). On Unix systems it's normal not to include the current directory in the path; so to run the program you have to say where it is, ".", and the directory separator is a plain slash, not that nasty backslash. On Windows you probably just need to say "harness -v".