Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345863

Summary: Create unit tests for Helgrind
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: ValgrindAssignee: Daniel Henrique Barboza <danielhb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ebaron, jjohnstn, wainersm
Version: unspecified   
Target Milestone: 0.8.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 350100    
Attachments:
Description Flags
Patch containing the Helgrind test suite
none
Patch containing the Helgrind test suite
none
diff of files in patch as attached to bugzilla and patch generated from git commit 2153e3cb0f none

Description Andrew Overholt CLA 2011-05-15 20:26:06 EDT
We need to write some JUnit tests for the Helgrind component of the Valgrind feature.
Comment 1 Andrew Overholt CLA 2011-05-17 11:12:56 EDT
Re-assigning to Daniel.
Comment 2 Daniel Henrique Barboza CLA 2011-05-18 10:01:27 EDT
Created attachment 195975 [details]
Patch containing the Helgrind test suite

Hello,

I've created a JUnit tests plugin for Helgrind. The attached patch contains all the source code of the project (named org.eclipse.linuxtools.valgrind.helgrind.tests). 

On the same patch I've added this new plugin into the valgrind-tests feature and added one needed line on MANIFEST.MF of Helgrind plug-in (which I only noticed missing while making this test plugin).


And, for any legal purpose, I assert that this new plug-in code was made by me, I am allowed to contribute it to this open source project and this code is being contributed under the terms of EPL.
Comment 3 Andrew Overholt CLA 2011-05-18 10:04:08 EDT
Thanks, Daniel!  It's too late to get this approved for Indigo (the IP log is due today) but I'll submit it for IP approval and then we can commit it as soon as it's approved.
Comment 4 Andrew Overholt CLA 2011-05-18 10:36:24 EDT
CQ:  https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5196
Comment 5 Andrew Overholt CLA 2011-05-18 11:08:06 EDT
Daniel, can you please re-generate the patch without the .class files?
Comment 6 Daniel Henrique Barboza CLA 2011-05-18 12:59:21 EDT
Created attachment 196006 [details]
Patch containing the Helgrind test suite

Re-sending the patch without the .class files.
Comment 7 Andrew Overholt CLA 2011-06-21 16:35:09 EDT
Daniel, is it possible for you to publish a git repository with your changes?  Something on GitHub would be nice.  You can fork from here:

https://github.com/eclipse/linuxtools

Then, we can follow this page:

http://wiki.eclipse.org/Development_Resources/Handling_Git_Contributions

and since I just got word that the CQ has been approved, I can pull from there and then push to the canonical git.eclipse.org repo.

Let me know if this won't work and we'll figure something else out.  Thanks!
Comment 8 Daniel Henrique Barboza CLA 2011-06-22 09:57:29 EDT
Hi,

I'm kind of new on GitHub but I think I figured it out. My contribution is at:

https://github.com/danielhb/linuxtools/commit/2153e3cb0f3c350595d589fdd94cf28115380891


Again, for any legal purpose, I assert that this new plug-in code was made by me,
I am allowed to contribute it to this open source project and this code is
being contributed under the terms of EPL.


Let me know if any problem happens. 


Thanks,


- daniel
Comment 9 Andrew Overholt CLA 2011-06-22 10:48:12 EDT
Created attachment 198410 [details]
diff of files in patch as attached to bugzilla and patch generated from git commit 2153e3cb0f

Thanks, Daniel.  I wanted to be sure that your commit there was the same as what you attached (that which was reviewed by the Eclipse legal team).  I noticed a few files different (I used the lsdiff command to look at what files were in each patch).  Was this intentional?  If it's a big enough divergence, we'll have to get it reviewed, especially since there appear to be more files in the git commit.
Comment 10 Daniel Henrique Barboza CLA 2011-06-22 11:36:15 EDT
Hi Andrew,

Strange, these files weren't expected. They are empty template files.

Let me clean them up and commit to github again without them.
Comment 11 Daniel Henrique Barboza CLA 2011-06-22 13:40:16 EDT
Okay Andrew, think I got it right now: 


https://github.com/danielhb/linuxtools/commit/3103bea0dceb75a22e65f716d7cfc602a124586e
Comment 12 Andrew Overholt CLA 2011-06-22 16:16:53 EDT
Thanks, Daniel.  That worked much better.  I've committed this work and opened bug 350099 to track making the tests pass.

Following [1], I'm marking the bug as iplog+ (since we didn't just apply the attached patch).

[1]
http://wiki.eclipse.org/Development_Resources/Handling_Git_Contributions
Comment 13 Andrew Overholt CLA 2011-06-22 16:19:31 EDT
I've pushed Daniel's cdd81a6ee600ef97e14fa191743415ea6457f576 and added a few changes between there and c0ad5754bd65b202b7e19591c41c3949a89b4d9e.