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

Hari Shreedharan commented on FLUME-1174:
-----------------------------------------

Actually, I am not sure Will or I mentioned any in-memory testing. ExecSource 
is just supposed to run any command. As long as you run a command that produces 
an output we can verify in the test, we will be testing the functionality of 
the source, so even echo or ping is a valid test, as long as we can verify the 
output in some realistic way. 

Anyway, you are free to choose your way of testing it. Choose a command that 
exists on either OS, or something something like I suggested, one test for 
Windows, one for POSIX systems. 

Thanks for the effort, Alex!
                
> Attempt to build Flume v1.1.0 on Windows 7 x64 fails
> ----------------------------------------------------
>
>                 Key: FLUME-1174
>                 URL: https://issues.apache.org/jira/browse/FLUME-1174
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.1.0
>         Environment: Windows 7 - 64 Bit - jdk1.7u4 - mvn 3.0.4
>            Reporter: Jeff Lord
>            Assignee: Alexander Lorenz-Alten
>
> It looks as if the src is expecting to be built on Linux.
> Attempting to build on Windows 7 fails with the below error that references a 
> missing /etc/passwd file.
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec
> Running org.apache.flume.TestCounterGroup
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec
> Results :
> Failed tests:   testRestart(org.apache.flume.source.TestExecSource)
> Tests in error:
>   test(org.apache.flume.serialization.TestBodyTextEventSerializer): Unable to 
> de
> lete file: src\test\resources\events.txt
>   testProcess(org.apache.flume.source.TestExecSource): \etc\passwd (The 
> system c
> annot find the path specified)
> Tests run: 114, Failures: 1, Errors: 2, Skipped: 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to