[racket] Help: Running racket programs from command line

From: A Z (ukbc57 at gmail.com)
Date: Tue Sep 28 22:30:50 EDT 2010

Hello John,

I have the same test for all the files.

Thanks
Colum

On Tue, Sep 28, 2010 at 9:48 PM, John Clements <clements at brinckerhoff.org>wrote:

>
> On Sep 28, 2010, at 5:27 PM, A Z wrote:
>
> > Hello,
> >
> > Can anyone please tell me how to process all the files in a directory.
> >
> > This is what I am doing:
> >
> > (check-progs (directory-list "/home/racket/progs"))
> >
> > (define (check-progs flist)
> >   (if(list? flist)
> >      (if(null? (cdr flist))
> >         '()
> >         (check-progs (cdr flist)))
> >      (process (simple-form-path (car flist)))))
> >
> >
> > (define (process path)
> >   (local-require path)
> >   (local-require rackunit)
> >   (check-equal? (twice 2) 4)
> >
>
> Hmm... perhaps the first question is this: usually, you have different
> tests for each file.  Is that not true for you?
>
> John Clements
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100928/ed7970d3/attachment.html>

Posted on the users mailing list.