[ 
https://issues.apache.org/jira/browse/HDFS-3923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453602#comment-13453602
 ] 

Colin Patrick McCabe commented on HDFS-3923:
--------------------------------------------

Yeah, it will definitely be nice to have automated tests for libwebhdfs.  We 
can extend {{native_mini_dfs}} by adding a function like this:

{code}
int nmdGetNameNodeWebHdfsPort(const struct NativeMiniDfsCluster *cl);
{code}

Then we could create a NativeMiniDfsCluster at the beginning of the libwebhdfs 
tests, and use that cluster to test against.  This way Jenkins can run the unit 
tests automatically to spot any regressions.

For example, {{test_libhdfs_threaded}} uses this strategy.  It should be pretty 
easy to re-use the {{native_mini_dfs}} library-- just add it to 
{{target_link_libraries}} for the test.
                
> libwebhdfs testing code cleanup
> -------------------------------
>
>                 Key: HDFS-3923
>                 URL: https://issues.apache.org/jira/browse/HDFS-3923
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>
> 1. Testing code cleanup for libwebhdfs
> 1.1 Tests should generate a test-specific filename and should use TMPDIR 
> appropriately.
> 2. Enabling automate testing

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to