Hi Atanas,


Thanks, this is perfect to get our QA a standard test case for the function.  
They can add other corner case tests for stress test.



Thanks,

Jessica



From: Atanas Gegov [mailto:atanas.gegov....@gmail.com]
Sent: Tuesday, May 28, 2013 5:36 AM
To: Zhang, Jessica
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] [eclipse-poky][PATCH 0/7] Introducing a 
YoctoSDKCMakeProjectNature



Hi Jessica,



Thank you for merging our patches!

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:



0. Precondition: Set up at least 2 "Cross development profiles" (e.g. one for 
"i586-..." and one for "arm...") in the Yocto IDE.

(Window > Preferences > Yocto Project ADT)



1. Select File -> New -> Project.



2. Double click C or C++ (two separate test cases).



3. Expand the category "Yocto ADT CMake Project".



4. Select "Hello World C++ CMake Project" (or "Hello World C CMake Project" if 
C chosen in Step 2.).



5. Put a name in the Project name.



6. Click Next.



7. Add information in the fields about Author, Vendor etc..



8. Click Finish.



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.



10. Press the hammer symbol to build the project.



11. Check the output of the build process:

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.)

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.)

c) The file "toolchain.cmake" has been generated with correct cross development 
settings (compiler, sysroot etc.).

d) A binary is created in the Debug folder



12. Change the cross development profile for the project (Right-click on the 
created project > Properties > Yocto Project Settings > choose

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.



Do you think the test case is OK like this?



Best regards,

Atanas



On Fri, May 24, 2013 at 8:55 PM, Zhang, Jessica 
<jessica.zh...@intel.com<mailto:jessica.zh...@intel.com>> wrote:

Hi Atanas,

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.

Thanks,
Jessica


-----Original Message-----
From: yocto-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org> 
[mailto:yocto-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org>] 
On Behalf Of Atanas Gegov
Sent: Friday, May 24, 2013 5:03 AM
To: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: [yocto] [eclipse-poky][PATCH 0/7] Introducing a 
YoctoSDKCMakeProjectNature

From: Atanas Gegov <atanas.ge...@bmw-carit.de<mailto:atanas.ge...@bmw-carit.de>>

Hi,

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.

This does not affect the currently existing Autotools template projects.

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.

Cheers, Atanas

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"
(dd7ab69282f7c9cc18ff06fffaa9681e4b297cfa).


Atanas Gegov (7):
  plugins/sdk.ide: Prepared templates for CMake nature
  plugins/sdk.ide: Added a new YoctoSDKCMakeProjectNature
  plugins/sdk.ide: Enable the creation of CMake projects
  plugins/sdk.ide: Update CMake projects on Yocto settings change
  plugins/sdk.ide: Renamed template process
  plugins/sdk.ide: Fixed whitespace issues
  plugins/sdk.ide: Extracted member variables

 .../OSGI-INF/l10n/bundle.properties                |    1 +
 plugins/org.yocto.sdk.ide/plugin.xml               |   25 +-
 .../ide/natures/YoctoSDKCMakeProjectNature.java    |   92 +++++++
 .../src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java |    7 +-
 .../sdk/ide/wizard/NewYoctoCProjectTemplate.java   |  245 ------------------
 .../ide/wizard/NewYoctoProjectTemplateProcess.java |  267 ++++++++++++++++++++
 .../EmptyCAutotoolsProject/template.xml            |    1 +
 .../EmptyCPPAutotoolsProject/template.xml          |    1 +
 .../HelloWorldCAutotoolsProject/template.xml       |    1 +
 .../HelloWorldCGTKAutotoolsProject/template.xml    |    1 +
 .../HelloWorldCPPAutotoolsProject/template.xml     |    1 +
 11 files changed, 395 insertions(+), 247 deletions(-)  create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/natures/YoctoSDKCMakeProjectNature.java
 delete mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoCProjectTemplate.java
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/wizard/NewYoctoProjectTemplateProcess.java

--
1.7.9.5

_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto



_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to