I know there is a whole lot here and on the wiki regarding unit
testing on headless linux boxes, as well as working with CI tools, so
my apologies if this is covered elsewhere... I have spent about the
last hour trying to track something down, hopefully I didn't overlook
anything.  I tried all of the tips from the wiki without success.

I am using flex mojos 3.5.0 and Flex SDK 3.4, CI is Hudson on a CentOS
box.

Anyway, I will try to keep this as simple as possible and provide
detail as needed.  I ran into trouble with a project, so I added a
Hudson job to build the FlexUnit sample project referenced on the unit
testing wiki page, and got the same results with the sample project; I
can pull the code down and build it (mvn clean install) manually as
root without any problems, however when Hudson (which runs all of its
jobs as root) runs the same command the test-run phase hangs
indefinitely (or at least for 15 or so minutes, as long as I waited).

The debug output for the test-run phase is:

[INFO] [flexmojos:test-run]
[INFO] Flexmojos 3.5.0
[INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[INFO] Running tests /usr/local/hudson/jobs/flexmojos-test/workspace/
flexunit-example/target/test-classes/TestRunner.swf
[DEBUG] [org.sonatype.flexmojos.test.monitor.AsVmPing] opened server
socket on port 13540
[DEBUG] [org.sonatype.flexmojos.test.monitor.ResultHandler] opened
server socket on port 13539
[DEBUG] [LAUNCHER] ASVmLauncher starting
[DEBUG] [LAUNCHER] exec: flashplayer - /usr/local/hudson/jobs/
flexmojos-test/workspace/flexunit-example/target/test-classes/
TestRunner.swf
[DEBUG] [LAUNCHER] Creating process
[WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
[DEBUG] [LAUNCHER] Process created java.lang.unixproc...@670d6e40
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [LAUNCHER] Output pumpers ON
[DEBUG] [LAUNCHER] Waiting for flashplayer termination
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [org.sonatype.flexmojos.test.monitor.AsVmPing] accepting data
from client
[DEBUG] [CONTROL] AsVmControl handleRequest
[DEBUG] [CONTROL] query status
[DEBUG] [CONTROL] received status
[DEBUG] [CONTROL] status is: <policy-file-request/>�
[DEBUG] [CONTROL] query status
[DEBUG] [CONTROL] received status
[DEBUG] [CONTROL] status is: null
[DEBUG] [CONTROL] query status
[DEBUG] [org.sonatype.flexmojos.test.monitor.ResultHandler] accepting
data from client
[DEBUG] [RESULT] Recivied data: <policy-file-request/>
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler RUNNING
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler RUNNING
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler RUNNING
[DEBUG] [RESULT] Socket buffer
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler DONE
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler DONE
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger DONE
[DEBUG] [MOJO] resultHandler DONE

and loops like this indefinitely.

I hope this is enough information, please let me know if anything else
would be helpful (pom files etc).

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://flexmojos.sonatype.org/

Reply via email to