tried to run core\integration, but some of the tests there failed.
For example:
<testcase time="6.161"
classname="org.wso2.carbon.integration.core.StartCarbonServerTest"
name="testSecurity">
<error message="Unable to start server"
type="java.lang.RuntimeException">java.lang.RuntimeException: Unable to
start server
at
org.wso2.carbon.integration.core.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:102)
at
org.wso2.carbon.integration.core.ServerUtils.startServerUsingCarbonZip(ServerUtils.java:115)
at
org.wso2.carbon.integration.core.CarbonIntegrationTestCase.setUp(CarbonIntegrationTestCase.java:71)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.io.IOException: Cannot run program "bat" (in
directory
"D:\EclipseWorkspaces\stratos\stratos\carbon\core\integration\core\target\.\carbontmp\core\..\..\distribution\target\wso2carbon-core-3.2.0-SNAPSHOT"):
CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at
org.wso2.carbon.integration.core.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:64)
... 23 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot
find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 25 more
Caused by: java.io.IOException: Cannot run program "bat" (in
directory
"D:\EclipseWorkspaces\stratos\stratos\carbon\core\integration\core\target\.\carbontmp\core\..\..\distribution\target\wso2carbon-core-3.2.0-SNAPSHOT"):
CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at
org.wso2.carbon.integration.core.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:64)
... 23 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot
find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 25 more
On Tue, May 3, 2011 at 5:14 PM, Amila Maha Arachchi <[email protected]> wrote:
> You have to build core/integration with tests. Its ok to skip other tests.
> But it is necessary to build core/integration with tests.
>
> Regards,
> AmilaM.
>
>
> On Tue, May 3, 2011 at 7:41 PM, stoil valchkov <[email protected]>wrote:
>
>> No, I skipped almost all the tests to get faster build, will try it this
>> way.
>>
>> Thanks
>>
>>
>> On Tue, May 3, 2011 at 4:50 PM, Pradeep Fernando <[email protected]>wrote:
>>
>>> hi,
>>>
>>> did you build the carbon-core , with tests ?
>>>
>>> --Pradeep.
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev