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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fda5a12bddfaf1a7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada-Python inter-language testing Date: 17 Jan 2005 14:11:21 -0500 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1105989110 34601 212.85.156.195 (17 Jan 2005 19:11:50 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 17 Jan 2005 19:11:50 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:7875 Date: 2005-01-17T14:11:21-05:00 Matteo Bertini writes: > I'm doing some coding for an Ada-Python bridge to decouple test-code > from ada-code. > > The idea is: > > (A) Have some Ada code to test. Yes, I have lots of that :). > (B) Write down an Ada package exporting procedures and functions in > a C compatible way. Yuck. No named aggregates, no tagged types! > (C) Write a Pyrex[1] (Python[2] like language for making C modules) > bridge to access Ada exported procedures and functions. If you say so. > (D) Write unit-testing in Python, being free to add/remove/change > test-cases without recompiling and with a lot of introspection > features. And free to spend lots of time chasing bugs in the test framework. If Ada is a good language for writing code, why not write (test) code in Ada? The "introspection" you speak of will be of no benefit; it can't see the Ada code. Just use AUnit. > Considering that the point (B) is error prone and time consuming, Exactly. > could ever someone in the real world need something like this? Not from me. -- -- Stephe