You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2015/07/17 23:44:10 UTC

[jira] [Updated] (HADOOP-10854) unit tests for the shell scripts

     [ https://issues.apache.org/jira/browse/HADOOP-10854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated HADOOP-10854:
--------------------------------------
    Attachment: HADOOP-10854.00.patch

-00:
* Initial version: directory layout, pom.xml changes for common
* 30+ tests for some of hadoop-functions.sh
* requires bats installed
* optionally, perl + TAP::Harness + XML::Generator to convert TAP to JUnix XML for Jenkins' usage

To trigger:

 mvn test -Pshelltest

(It does *not* honor -DskipTests, so you can run mvn test -Pshelltest -DskipTests to just run the shell tests.  Running mvn test (no profile) will NOT trigger the shell tests.)

After discussing this was [~raviprak], it's probably better to do this in stages.  So let's do this initial version to lay the ground work. 

> unit tests for the shell scripts
> --------------------------------
>
>                 Key: HADOOP-10854
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10854
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: scripts
>            Reporter: Allen Wittenauer
>              Labels: scripts
>         Attachments: HADOOP-10854.00.patch
>
>
> With HADOOP-9902 moving a lot of the core functionality to functions, we should build some unit tests for them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)