Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 204409 - Send stdout to tests log
Summary: Send stdout to tests log
Status: CLOSED WONTFIX
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 204363
  Show dependency tree
 
Reported: 2007-09-24 02:40 EDT by Eike Stepper CLA
Modified: 2010-06-29 09:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2007-09-24 02:40:56 EDT
Nick said:
There should be a way to redirect standard out and standard err to the same file. Usually, I use 2>&1 | tee somefile.txt but in this case we might need to also add the -consolelog when launching the tests so that the log data is in the console log AND the build log, if that's what you need.
Comment 1 Eike Stepper CLA 2007-09-24 04:53:34 EDT
No idea where to add "2>&1 | tee somefile.txt" ;-(
Nick, can you do it please?

I don't think I need stdout in the build.log because it can grow very large. If I detect an error I can build with -noclean and look into emft.eclipse.org filesystem.
Comment 2 Nick Boldt CLA 2007-09-24 12:20:30 EDT
/org.eclipse.emf.net4j.releng/builder/tests/configs/local/relengbuildgtk.sh and /org.eclipse.emf.cdo.releng/builder/tests/configs/local/relengbuildgtk.sh already logging everything to console file; I added the 2>&1 thing so as to trap stderr too.
Comment 3 Eike Stepper CLA 2007-09-24 12:23:42 EDT
What does that mean?
Where can I look at the console log?
Comment 5 Nick Boldt CLA 2007-09-24 14:48:27 EDT
The best I can suggests is to hack org.eclipse.test/library.xml, or use the few variables you have access to to pass in more vmargs via your /org.eclipse.emf.net4j/tests/org.eclipse.net4j.tests/test.xml:

    <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
      <!-- 
      <property name="vmargs" value=""/>
      <property name="extraVMargs" value=""/>
      <property name="test-output" value=""/>
      -->
      ...

If passing in more args won't help, then we'll have to devise a 'replace the standard library.xml with something else' approach, which I've had to do in the past for EMF. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=171756 for how to hack your build to replace library.xml with your own changes.
Comment 6 Eike Stepper CLA 2007-09-24 18:27:34 EDT
I really don't want to hack things that I don't know.
Is it really so hard to receive stdout messages in the buildlog or somewhere else?
Then I prefer to build my own linux machine just to see what happens during linux tests.
Comment 7 Nick Boldt CLA 2007-09-24 23:02:34 EDT
(In reply to comment #6)
> I really don't want to hack things that I don't know.
> Is it really so hard to receive stdout messages in the buildlog or somewhere
> else?
> Then I prefer to build my own linux machine just to see what happens during
> linux tests.

Well, you could adopt your own version of org.eclipse.test and check it out from another location in CVS. As long as the mapfile is accurate, it won't be a hack, it'll be your own EPL'd version. ;-)

As to building your own build server / running the build locally... by all means. You can either follow the config steps in http://wiki.eclipse.org/EMF_Build_Server_Setup, or just build inside Eclipse (not headless), then use the various Export options to create zips and test results. 

From there you should be able to use a promoteToEclipse.sh-like script to upload the folder w/ the zips and test results to dev.eclipse.org.

See /cvsroot/modeling/releng-common/ for server config stuff and build/promote scripts (in tools/scripts/).
Comment 8 Eike Stepper CLA 2007-09-25 04:24:28 EDT
No, I didn't mean to produce builds with an on server.
It could only help me to track down linux related problems (filesystem, ...) in the case that we don't manage to get the stdout into some file with out build.
Comment 9 Eike Stepper CLA 2008-04-07 05:24:40 EDT
later
Comment 10 Eike Stepper CLA 2008-06-10 02:29:44 EDT
Reversioned due to graduation
Comment 11 Eclipse Webmaster CLA 2009-08-30 02:49:07 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 12 Eike Stepper CLA 2009-10-31 18:11:51 EDT
Closing. Please reopen if you feel this should be addressed.