hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich" <ol...@yahoo-inc.com>
Subject RE: Local and MapReduce Test modes
Date Thu, 24 Apr 2008 14:39:14 GMT
Mathieu,

Sounds reasonable. Can we move this discussion to JIRA?

Olga 

> -----Original Message-----
> From: Mathieu Poumeyrol [mailto:poumeyrol@idm.fr] 
> Sent: Thursday, April 24, 2008 7:08 AM
> To: pig-dev@incubator.apache.org
> Subject: Re: Local and MapReduce Test modes
> 
> All,
> 
> Here is a simple proposal.
> 
> ant test runs twice the junit target, with two different 
> values for the property ${test.exectype}. ant test-local runs 
> all tests locally, ant-test-mapreduce runs them on the minicluster.
> 
> logs are produced in two different subdirectories of 
> build/test : logs- mapreduce and logs-local to avoid confusion.
> 
> PigTestCase implements junit's TestCase, and is responsible 
> for PigServer setup. All current TestCase will have to extend 
> PigTestCase instead of TestCase. They can test this.execType 
> to skip some test method.
> 
> This proposal hardcodes the fact that pig supports two 
> backends in PigTestCase and build.xml, but adding a new 
> backend does not require to change the actual tests. Good 
> enough for now in my opinion.
> 
> The patch contains PigTestCase, changes to build.xml and 
> TestAlgebraicEval as an example of what has to be done to the 
> actual TestCases.
> 
> -- 
> Mathieu
> 

Mime
View raw message