From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA21934; Wed, 12 Sep 2001 18:09:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA21773 for ; Wed, 12 Sep 2001 18:09:41 +0200 (MET DST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8CG9eT09055 for ; Wed, 12 Sep 2001 18:09:40 +0200 (MET DST) Received: from localhost (patrick@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f8CG9Qn72619; Wed, 12 Sep 2001 12:09:27 -0400 (EDT) (envelope-from patrick@watson.org) Date: Wed, 12 Sep 2001 12:09:26 -0400 (EDT) From: Patrick M Doane To: "John L. Masson" cc: caml-list@inria.fr Subject: Re: [Caml-list] FORT (or other test frameworks) In-Reply-To: <87g09s1kn0.fsf@tacitus.worthmedia.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi John, On 12 Sep 2001, John L. Masson wrote: > Hello list, > > Is anyone here using FORT? Does anyone have any examples or > documentation for it? > > I've read, and I thought understood, the source, but I can't get a > testscript to run. > > If I just pass it to the 'fort' executable (i.e. 'fort testsuite.ml'), > the Fort module and its functions are not available to the script. I would expect this to work... have you installed the executable? The 'fort' executable will need to find the bytecode data for the Fort module and will search in the OCAMLLIB directory. Also, inside testsuite.ml you will need to refer to the Fort functions with a qualified prefix (e.g. Fort.test) or include an 'open Fort;;' directive at the top. > I can compile the script, and link to fort.cmo and fortmain.cmo, and > this executable produces a report, but it shows no tests were run. > > If I don't link fortmain.cmo, nothing happens at all. It may be worthwhile to think about linking Fort into an application, but there is currently no way to separate the report generation from script execution. > What am I doing wrong? If you're still having problems, feel free to e-mail me. Thanks! Patrick ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr