hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Min Zhou <coderp...@gmail.com>
Subject How can I run the other test cases except those defined in CoreTestDriver?
Date Sun, 22 Aug 2010 05:16:43 GMT
Hi all,

When I run the command
bin/hadoop jar hadoop-common-test-*.jar
org.apache.hadoop.io.file.tfile.TestTFileSeqFileComparison
a prompt is showed like below
Valid program names are:
  testarrayfile: A test for flat files of binary key/value pairs.
  testipc: A test for ipc.
  testrpc: A test for rpc.
  testsetfile: A test for flat files of binary key/value pairs.

AFAIK, this script finds the Main-class from a jar file essentially through
RunJar, which firstly lookup the mainfest to decide whether this jar has
defined a main class or not. If there is no defination, the first one of the
uneaten arguments from the command line will be considered as the main
class's name.  But org/apache/hadoop/test/CoreTestDriver has been taken as
the main class of hadoop test in build.xml.  Therefore,  I  can only run 4
testcases ( testarrayfile, testipc, testrpc,  testsetfile). How can I  run
the other test cases except those defined in that class? By running ant test
-Dxxx ?


Thanks,
Min


-- 
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message