Abhijit A. Mahabal wrote:
> 
> On Mon, 10 May 2004, Steve Fink wrote:
> 
> >   use File::Basename qw(dirname);
> >   use lib dirname($INC{"P6C/Parser.pm"})."/../../../../lib";
> 
> I had already tried that, and it doesn't seem to work. I guess it is some
> timing issue:  $INC{"P6C/Parser.pm"} gets defined after P6C::Parser.pm is
> loaded (I think).
> 
> >
> > Just make sure
> >
> >   cd t; perl parser/foo.t
> >
> > works too.
> >
> 
> It doesn't yet :( We do need a clean solution.

It doesn't work for any of them. You can only run the tests from the
languages/perl6 directory. This needs to change at some point. 

Even worse, I started working on some unit tests for the various P6C
modules and discovered some really nasty 'use' circles (X uses Y uses Z
uses X), that meant the modules had to be loaded in a very specific
order. I cleaned up a few of them, but I'm sure there are more lurking.

Anyway, yeah, we need a clean solution. All suggestions cheerfully
welcomed. :)

And don't forget, this is just a prototype. All the code will be
replaced as soon as we get a working grammar engine.

Allison

Reply via email to