<div dir="ltr"><div>Hi Jessica,</div><div><br></div><div>Thank you for merging our patches!</div><div>About QA, I took a look in Bugzilla and the "Eclipse Plugin" Test Cases there. I thought something like the following might be reasonable to test the CMake feature:</div>
<div><br></div><div>0. Precondition: Set up at least 2 "Cross development profiles" (e.g. one for "i586-..." and one for "arm...") in the Yocto IDE.</div><div>(Window > Preferences > Yocto Project ADT)</div>
<div><br></div><div>1. Select File -> New -> Project.</div><div><br></div><div>2. Double click C or C++ (two separate test cases).</div><div><br></div><div>3. Expand the category "Yocto ADT CMake Project".</div>
<div><br></div><div>4. Select "Hello World C++ CMake Project" (or "Hello World C CMake Project" if C chosen in Step 2.).</div><div><br></div><div>5. Put a name in the Project name.</div><div><br></div>
<div>6. Click Next.</div><div><br></div><div>7. Add information in the fields about Author, Vendor etc..</div><div><br></div><div>8. Click Finish.</div><div><br></div><div>9. (optional) Right-click on the created project > Properties > C/C++ Build > Settings > choose "CMake Options" in the tab "Tool settings". Change some options there (e.g. enter "--debug-output" in the field "Other flags"). Press Apply and OK.</div>
<div><br></div><div>10. Press the hammer symbol to build the project.</div><div><br></div><div>11. Check the output of the build process:</div><div>a) The console "Configure using CMake [<project name>]" should list the correct C/C++ cross-compilers of the chosen cross development profile (and also provide some more verbose output if "--debug-output" was set in Step 9.)</div>
<div>b) The console "CDT build console [<project name>]" shows the usage of the correct cross-compiler and sysroot (if verbose Makefile generated (this is the default option but can be changed from the "CMake Options") in Step 9.)</div>
<div>c) The file "toolchain.cmake" has been generated with correct cross development settings (compiler, sysroot etc.).</div><div>d) A binary is created in the Debug folder</div><div><br></div><div>12. Change the cross development profile for the project (Right-click on the created project > Properties > Yocto Project Settings > choose</div>
<div>another profile from the drop-down box > Apply > OK) and go back to Step 9. to build the project again with another cross development profile.</div><div><br></div><div>Do you think the test case is OK like this?</div>
<div><br></div><div>Best regards,</div><div>Atanas</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 8:55 PM, Zhang, Jessica <span dir="ltr"><<a href="mailto:jessica.zhang@intel.com" target="_blank">jessica.zhang@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Atanas,<br>
<br>
All the cmake related patches have been merged to eclipse-poky master. Also, can you provide some detailed information regarding how to test the feature so QA can add adequate test cases in the existing eclipse plug-in testing.<br>
<br>
Thanks,<br>
Jessica<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:yocto-bounces@yoctoproject.org">yocto-bounces@yoctoproject.org</a> [mailto:<a href="mailto:yocto-bounces@yoctoproject.org">yocto-bounces@yoctoproject.org</a>] On Behalf Of Atanas Gegov<br>
Sent: Friday, May 24, 2013 5:03 AM<br>
To: <a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
Subject: [yocto] [eclipse-poky][PATCH 0/7] Introducing a YoctoSDKCMakeProjectNature<br>
<br>
From: Atanas Gegov <<a href="mailto:atanas.gegov@bmw-carit.de">atanas.gegov@bmw-carit.de</a>><br>
<br>
Hi,<br>
<br>
This patch series introduces a YoctoSDKCMakeProjectNature as a new nature for CMake-based Yocto Projects in the IDE. It requires the basic YoctoSDKProjectNature and is an alternative to the YoctoSDKAutotoolsProjectNature.<br>
<br>
This does not affect the currently existing Autotools template projects.<br>
<br>
Upcoming patch series will add the last missing parts for having CMake projects in the IDE: a ManagedBuilder for CMake (CMake toolchain for building in Eclipse) and some template projects.<br>
<br>
Cheers, Atanas<br>
<br>
P.S: This patch series apply on the current master "Fix the issue introduced by code refactoring since DialogHandler inherit IHandler, execute expect to return an object"<br>
(dd7ab69282f7c9cc18ff06fffaa9681e4b297cfa).<br>
<br>
<br>
Atanas Gegov (7):<br>
plugins/sdk.ide: Prepared templates for CMake nature<br>
plugins/sdk.ide: Added a new YoctoSDKCMakeProjectNature<br>
plugins/sdk.ide: Enable the creation of CMake projects<br>
plugins/sdk.ide: Update CMake projects on Yocto settings change<br>
plugins/sdk.ide: Renamed template process<br>
plugins/sdk.ide: Fixed whitespace issues<br>
plugins/sdk.ide: Extracted member variables<br>
<br>
.../OSGI-INF/l10n/bundle.properties | 1 +<br>
plugins/org.yocto.sdk.ide/plugin.xml | 25 +-<br>
.../ide/natures/YoctoSDKCMakeProjectNature.java | 92 +++++++<br>
.../src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java | 7 +-<br>
.../sdk/ide/wizard/NewYoctoCProjectTemplate.java | 245 ------------------<br>
.../ide/wizard/NewYoctoProjectTemplateProcess.java | 267 ++++++++++++++++++++<br>
.../EmptyCAutotoolsProject/template.xml | 1 +<br>
.../EmptyCPPAutotoolsProject/template.xml | 1 +<br>
.../HelloWorldCAutotoolsProject/template.xml | 1 +<br>
.../HelloWorldCGTKAutotoolsProject/template.xml | 1 +<br>
.../HelloWorldCPPAutotoolsProject/template.xml | 1 +<br>
11 files changed, 395 insertions(+), 247 deletions(-) create mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/natures/YoctoSDKCMakeProjectNature.java<br>
delete mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java<br>
create mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoProjectTemplateProcess.java<br>
<br>
--<br>
1.7.9.5<br>
<br>
</div></div>_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div><br></div></div>