Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "test": { |
| 4 | "@alias": "eclipse-plugin.eclipse-plugin.support_SSH_connection_to_Target", |
| 5 | "author": [ |
| 6 | { |
| 7 | "email": "ee.peng.yeoh@intel.com", |
| 8 | "name": "ee.peng.yeoh@intel.com" |
| 9 | } |
| 10 | ], |
| 11 | "execution": { |
| 12 | "1": { |
| 13 | "action": "In Eclipse, swich to Remote System Explorer to create a connention baseed on SSH, input the remote target IP address as the Host name, make sure disable the proxy in Window->Preferences->General->Network Connection, set Direct as Active Provider field. ", |
| 14 | "expected_results": "the connection based on SSH could be set up." |
| 15 | }, |
| 16 | "2": { |
| 17 | "action": "Configure connection from Eclipse: Run->Run Configurations->C/C++ Remote Application\\ ->New Connection->General->SSH Only ", |
| 18 | "expected_results": "" |
| 19 | }, |
| 20 | "3": { |
| 21 | "action": "Then right click to connect, input the user ID and password. ", |
| 22 | "expected_results": "" |
| 23 | }, |
| 24 | "4": { |
| 25 | "action": "expand the connection, it will show the Sftp Files etc. \nNOTE. Might need to change dropbear to openssh and add the packagegroup-core-eclipse-debug recipe", |
| 26 | "expected_results": "" |
| 27 | } |
| 28 | }, |
| 29 | "summary": "support_SSH_connection_to_Target" |
| 30 | } |
| 31 | }, |
| 32 | { |
| 33 | "test": { |
| 34 | "@alias": "eclipse-plugin.eclipse-plugin.Launch_QEMU_from_Eclipse", |
| 35 | "author": [ |
| 36 | { |
| 37 | "email": "ee.peng.yeoh@intel.com", |
| 38 | "name": "ee.peng.yeoh@intel.com" |
| 39 | } |
| 40 | ], |
| 41 | "execution": { |
| 42 | "1": { |
| 43 | "action": "Set the Yocto ADT's toolchain root location, sysroot location and kernel, in the menu Window -> Preferences -> Yocto ADT. \n \n", |
| 44 | "expected_results": "" |
| 45 | }, |
| 46 | "2": { |
| 47 | "action": "wget autobuilder.yoctoproject.org/pub/releases//machines/qemu/qemux86/qemu (ex:core-image-sato-sdk-qemux86-date-rootfs-tar-bz2) \nsource /opt/poky/version/environment-setup-i585-poky-linux \n\nExtract qemu with runqemu-extract-sdk /home/user/file(ex.core-image-sato-sdk-qemux86.bz2) \n/home/user/qemux86-sato-sdk \n\n", |
| 48 | "expected_results": " Qemu can be lauched normally." |
| 49 | }, |
| 50 | "3": { |
| 51 | "action": "(a)Point to the Toolchain: \n \nIf you are using a stand-alone pre-built toolchain, you should be pointing to the /opt/poky/{test-version} directory as Toolchain Root Location. This is the default location for toolchains installed by the ADT Installer or by hand. If ADT is installed in other location, use that location as Toolchain location.\nIf you are using a system-derived toolchain, the path you provide for the Toolchain Root Location field is the Yocto Project's build directory. \n \n E.g:/home/user/yocto/poky/build \n", |
| 52 | "expected_results": "" |
| 53 | }, |
| 54 | "4": { |
| 55 | "action": "(b)Specify the Sysroot Location: \nSysroot Location is the location where the root filesystem for the target hardware is created on the development system by the ADT Installer (SYSROOT in step 2 of the case ADT installer Installation). \n \n Local : e.g: /home/user/qemux86-sato-sdk \nUsing ADT : e.g :/home/user/test-yocto/qemux86 \n\n", |
| 56 | "expected_results": "" |
| 57 | }, |
| 58 | "5": { |
| 59 | "action": "(c)Select the Target Architecture: \n \nThe target architecture is the type of hardware you are going to use or emulate. Use the pull-down Target Architecture menu to make your selection. \n \n\n", |
| 60 | "expected_results": "" |
| 61 | }, |
| 62 | "6": { |
| 63 | "action": "(d) QEMU: \nSelect this option if you will be using the QEMU emulator. Specify the Kernel matching the QEMU architecture you are using. \n wget autobuilder.yoctoproject.org/pub/releases//machines/qemu/qemux86/bzImage-qemux86.bin \n e.g: /home/$USER/yocto/adt-installer/download_image/bzImage-qemux86.bin \n\n", |
| 64 | "expected_results": "" |
| 65 | }, |
| 66 | "7": { |
| 67 | "action": "(e) select OK to save the settings. \n\n\n1: In the Eclipse toolbar, expose the Run -> External Tools menu. Your image should appear as a selectable menu item. \n2: Select your image in the navigation pane to launch the emulator in a new window. \n3: If needed, enter your host root password in the shell window at the prompt. This sets up a Tap 0 connection needed for running in user-space NFS mode. \n", |
| 68 | "expected_results": "" |
| 69 | } |
| 70 | }, |
| 71 | "summary": "Launch_QEMU_from_Eclipse" |
| 72 | } |
| 73 | }, |
| 74 | { |
| 75 | "test": { |
| 76 | "@alias": "eclipse-plugin.eclipse-plugin.Relocatable_SDK_-_C_-_Build_Hello_World_ANSI_C_Autotools_Project", |
| 77 | "author": [ |
| 78 | { |
| 79 | "email": "ee.peng.yeoh@intel.com", |
| 80 | "name": "ee.peng.yeoh@intel.com" |
| 81 | } |
| 82 | ], |
| 83 | "execution": { |
| 84 | "1": { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 85 | "action": "Launch a QEMU of target environment.(Reference to case \"ADT - Launch qemu by eclipse\") ", |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 86 | "expected_results": "" |
| 87 | }, |
| 88 | "2": { |
| 89 | "action": "Select File -> New -> Project.", |
| 90 | "expected_results": "" |
| 91 | }, |
| 92 | "3": { |
| 93 | "action": "Double click C/C++.", |
| 94 | "expected_results": "" |
| 95 | }, |
| 96 | "4": { |
| 97 | "action": "Click C or C++ Project to create the project.", |
| 98 | "expected_results": "" |
| 99 | }, |
| 100 | "5": { |
| 101 | "action": "Expand Yocto ADT Project.", |
| 102 | "expected_results": "" |
| 103 | }, |
| 104 | "6": { |
| 105 | "action": "Select Hello World ANSI C Autotools Project.", |
| 106 | "expected_results": "" |
| 107 | }, |
| 108 | "7": { |
| 109 | "action": "Put a name in the Project name. Do not use hyphens as part of the name. \n \n", |
| 110 | "expected_results": "" |
| 111 | }, |
| 112 | "8": { |
| 113 | "action": "Click Next.", |
| 114 | "expected_results": "" |
| 115 | }, |
| 116 | "9": { |
| 117 | "action": "Add information in the Author and Copyright notice fields. \n1", |
| 118 | "expected_results": "" |
| 119 | }, |
| 120 | "10": { |
| 121 | "action": "Click Finish. \n1", |
| 122 | "expected_results": "" |
| 123 | }, |
| 124 | "11": { |
| 125 | "action": "If the \"open perspective\" prompt appears, click \"Yes\" so that you open the C/C++ perspective. \n1", |
| 126 | "expected_results": "" |
| 127 | }, |
| 128 | "12": { |
| 129 | "action": "In the Project Explorer window, right click the project -> Reconfigure project. \n1", |
| 130 | "expected_results": "" |
| 131 | }, |
| 132 | "13": { |
| 133 | "action": "In the Project Explorer window, right click the project -> Build project. \n1", |
| 134 | "expected_results": "Under the Project files, a new folder appears called Binaries. This indicates that the compilation have been successful and the project binary have been created. \n" |
| 135 | }, |
| 136 | "14": { |
| 137 | "action": "Right click it again and Run as -> Run Configurations. \n\t\t\tUnder Run Configurations expand \"C/C++ Remote Application\". A configuration for the current project should appear. Clicking it will display the configuration settings. \n\t\t\tin \"C/C++ Application\" field input Remote Absolute File path for C/C++ Application. e.g.: /home/root/myapplication \n\t\t\tIn \"Connection\" drop-down list make sure a TCF connection is set up for your target. If not, create a new one by clicking the New button. \n1", |
| 138 | "expected_results": "step 14 to step 16 -> Build succeed and the console outputs Hello world, you can also check the output on target." |
| 139 | }, |
| 140 | "15": { |
| 141 | "action": "After all settings are done, select the Run button on the bottom right corner \n\n1", |
| 142 | "expected_results": "" |
| 143 | }, |
| 144 | "16": { |
| 145 | "action": "Repeat the steps 14-15, but instead of using Run Configurations use Debug Configurations: \nRight click it again and Debug as -> Debug Configurations \nUnder Debug Configurations expand \"C/C++ Remote Application\". A configuration for the current project should appear. Clicking it will display the configuration settings. \nin \"C/C++ Application\" field input Remote Absolute File path for C/C++ Application.\ne.g.: /home/root/myapplication \nIn \"Connection\" drop-down list make sure a TCF connection is set up for your target. If not, create a new one by clicking the New button \n1", |
| 146 | "expected_results": "" |
| 147 | }, |
| 148 | "17": { |
| 149 | "action": "After all settings are done, select the Debug button on the bottom right corner", |
| 150 | "expected_results": "" |
| 151 | } |
| 152 | }, |
| 153 | "summary": "Relocatable_SDK_-_C_-_Build_Hello_World_ANSI_C_Autotools_Project" |
| 154 | } |
| 155 | }, |
| 156 | { |
| 157 | "test": { |
| 158 | "@alias": "eclipse-plugin.eclipse-plugin.Relocatable_SDK_-_C++_-_Build_Hello_World_C++_Autotools_project", |
| 159 | "author": [ |
| 160 | { |
| 161 | "email": "ee.peng.yeoh@intel.com", |
| 162 | "name": "ee.peng.yeoh@intel.com" |
| 163 | } |
| 164 | ], |
| 165 | "execution": { |
| 166 | "1": { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 167 | "action": "Launch a QEMU of target environment.(Reference to case \"ADT - Launch qemu by eclipse\") ", |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 168 | "expected_results": "" |
| 169 | }, |
| 170 | "2": { |
| 171 | "action": "Select File -> New -> Project. ", |
| 172 | "expected_results": "" |
| 173 | }, |
| 174 | "3": { |
| 175 | "action": "Double click C/C++. ", |
| 176 | "expected_results": "" |
| 177 | }, |
| 178 | "4": { |
| 179 | "action": "Click C or C++ Project to create the project. ", |
| 180 | "expected_results": "" |
| 181 | }, |
| 182 | "5": { |
| 183 | "action": "Expand Yocto ADT Project. ", |
| 184 | "expected_results": "" |
| 185 | }, |
| 186 | "6": { |
| 187 | "action": "Select Hello World ANSI C++ Autotools Project. ", |
| 188 | "expected_results": "" |
| 189 | }, |
| 190 | "7": { |
| 191 | "action": "Put a name in the Project name. Do not use hyphens as part of the name. \n \n", |
| 192 | "expected_results": "" |
| 193 | }, |
| 194 | "8": { |
| 195 | "action": "Click Next.", |
| 196 | "expected_results": "" |
| 197 | }, |
| 198 | "9": { |
| 199 | "action": "Add information in the Author and Copyright notice fields.", |
| 200 | "expected_results": "" |
| 201 | }, |
| 202 | "10": { |
| 203 | "action": "Click Finish. \n1", |
| 204 | "expected_results": "" |
| 205 | }, |
| 206 | "11": { |
| 207 | "action": "If the \"open perspective\" prompt appears, click \"Yes\" so that you open the C/C++ perspective. \n1", |
| 208 | "expected_results": "" |
| 209 | }, |
| 210 | "12": { |
| 211 | "action": "In the Project Explorer window, right click the project -> Reconfigure project. \n1", |
| 212 | "expected_results": "" |
| 213 | }, |
| 214 | "13": { |
| 215 | "action": "In the Project Explorer window, right click the project -> Build project. \n\n1", |
| 216 | "expected_results": "under the Project files, a new folder appears called Binaries. This indicates that the compilation have been successful and the project binary have been created. \n" |
| 217 | }, |
| 218 | "14": { |
| 219 | "action": "Right click it again and Run as -> Run Configurations. \n\t\t\tUnder Run Configurations expand \"C/C++ Remote Application\". A configuration for the current project should appear. Clicking it will display the configuration settings. \n\t\t\tin \"C/C++ Application\" field input Remote Absolute File path for C/C++ Application. e.g.: /home/root/myapplication \n\t\t\tIn \"Connection\" drop-down list make sure a TCF connection is set up for your target. If not, create a new one by clicking the New button. \n1", |
| 220 | "expected_results": "step 14 to step 16 -> Build succeed and the console outputs Hello world, you can also check the output on target." |
| 221 | }, |
| 222 | "15": { |
| 223 | "action": "After all settings are done, select the Run button on the bottom right corner \n\n1", |
| 224 | "expected_results": "" |
| 225 | }, |
| 226 | "16": { |
| 227 | "action": "Repeat the steps 14-15, but instead of using Run Configurations use Debug Configurations: \n\t\tRight click it again and Debug as -> Debug Configurations \n\t\tUnder Debug Configurations expand \"C/C++ Remote Application\". A configuration for the current project should appear. Clicking it will display the configuration settings. \n\t\tin \"C/C++ Application\" field input Remote Absolute File path for C/C++ Application. \n\t\te.g.: /home/root/myapplication \n\t\tIn \"Connection\" drop-down list make sure a TCF connection is set up for your target. If not, create a new one by clicking the New button \n1", |
| 228 | "expected_results": "" |
| 229 | }, |
| 230 | "17": { |
| 231 | "action": "After all settings are done, select the Debug button on the bottom right corner", |
| 232 | "expected_results": "" |
| 233 | } |
| 234 | }, |
| 235 | "summary": "Relocatable_SDK_-_C++_-_Build_Hello_World_C++_Autotools_project" |
| 236 | } |
| 237 | }, |
| 238 | { |
| 239 | "test": { |
| 240 | "@alias": "eclipse-plugin.eclipse-plugin.Build_Eclipse_Plugin_from_source", |
| 241 | "author": [ |
| 242 | { |
| 243 | "email": "laurentiu.serban@intel.com", |
| 244 | "name": "laurentiu.serban@intel.com" |
| 245 | } |
| 246 | ], |
| 247 | "execution": { |
| 248 | "1": { |
| 249 | "action": "Clone eclipse-poky source. \n \n - git clone git://git.yoctoproject.org/eclipse-poky \n\n", |
| 250 | "expected_results": "Eclipse plugin is successfully installed \n\nDocumentation is there. For example if you have release yocto-2.0.1 you will found on http://autobuilder.yoctoproject.org/pub/releases/yocto-2.0.1/eclipse-plugin/mars/ archive with documentation like org.yocto.doc-development-$date.zip \n \n" |
| 251 | }, |
| 252 | "2": { |
| 253 | "action": "Checkout correct tag. \n\n - git checkout <eclipse-version>/<yocto-version> \n\n", |
| 254 | "expected_results": "After plugin is build you must have 4 archive in foder scripts from eclipse-poky: \n - org.yocto.bc - mars-master-$date.zip \n - org.yocto.doc - mars-master-$date.zip --> documentation \n - org.yocto.sdk - mars-master-$date.zip \n - org.yocto.sdk - mars-master-$date.-archive.zip --> plugin " |
| 255 | }, |
| 256 | "3": { |
| 257 | "action": "Move to scripts/ folder. \n\n", |
| 258 | "expected_results": "" |
| 259 | }, |
| 260 | "4": { |
| 261 | "action": "Run ./setup.sh \n\n", |
| 262 | "expected_results": "" |
| 263 | }, |
| 264 | "5": { |
| 265 | "action": "When the script finishes, it prompts a command to issue to build the plugin. It should look similar to the following: \n\n$ ECLIPSE_HOME=/eclipse-poky/scripts/eclipse ./build.sh /&1 | tee -a build.log \n\nHere, the three arguments to the build script are tag name, branch for documentation and release name. \n\n", |
| 266 | "expected_results": "" |
| 267 | }, |
| 268 | "6": { |
| 269 | "action": "On an eclipse without the Yocto Plugin, select \"Install New Software\" from Help pull-down menu \n\n", |
| 270 | "expected_results": "" |
| 271 | }, |
| 272 | "7": { |
| 273 | "action": "Select Add and from the dialog choose Archive... Look for the *archive.zip file that was built previously with the build.sh script. Click OK. \n\n", |
| 274 | "expected_results": "" |
| 275 | }, |
| 276 | "8": { |
| 277 | "action": "Select all components and proceed with Installation of plugin. Restarting eclipse might be required.\n", |
| 278 | "expected_results": "" |
| 279 | } |
| 280 | }, |
| 281 | "summary": "Build_Eclipse_Plugin_from_source" |
| 282 | } |
| 283 | }, |
| 284 | { |
| 285 | "test": { |
| 286 | "@alias": "eclipse-plugin.eclipse-plugin.Eclipse_Poky_installation_and_setup", |
| 287 | "author": [ |
| 288 | { |
| 289 | "email": "ee.peng.yeoh@intel.com", |
| 290 | "name": "ee.peng.yeoh@intel.com" |
| 291 | } |
| 292 | ], |
| 293 | "execution": { |
| 294 | "1": { |
| 295 | "action": "Install SDK \n\ta)Download https://autobuilder.yocto.io/pub/releases//toolchain/x86_64/poky-glibc-x86_64-core-\timage-sato-i586-toolchain-.sh \n\tb)Run the SDK installer and accept the default installation directory ", |
| 296 | "expected_results": "" |
| 297 | }, |
| 298 | "2": { |
| 299 | "action": "Install \"Eclipse IDE for C/C++ Developers\" Oxygen release (4.7.0) \n\ta) Go to https://www.eclipse.org/downloads/packages/all, click \"Oxygen R\" \n\tb) Click to download the build for your OS \n\tc) Click \"Download\" button to download from a mirror \n\td) Run \"tar xf\" to extract the downloaded archive ", |
| 300 | "expected_result": "" |
| 301 | }, |
| 302 | "3": { |
| 303 | "action": "Install \"Eclipse IDE for C/C++ Developers\" Oxygen release (4.7.0) (Continue) \n\te) Run \"eclipse/eclipse\" to start Eclipse \n\tf) Optional step for host machine within Intel network: In Eclipse workbench window, go to \"Window\" menu -> \"Preferences...\". \n\tg) In \"Preferences\" dialog, go to \"General\" -> \"Network Connections\", set \"Active Provider\" to \"Manual\". In \"Proxy \tentries\" table, select HTTP and click \"Edit\" and enter host \"proxy-chain.intel.com\" port 911, click OK. Repeat for HTTPS with port 912 \nClick OK to close \"Preferences\" dialog. \n\th) Go to \"File\" menu -> \"Restart\" to restart Eclipse for proxy settings to take effect. ", |
| 304 | "expected_result": "" |
| 305 | }, |
| 306 | "4": { |
| 307 | "action": "Install Eclipse Poky plugins \n\ta) Download https://autobuilder.yocto.io/pub/releases/<yocto-version>/eclipse-plugin/<eclipse-version>/org.yocto.sdk-development-<date>-archive.zip \n\tb) In Eclipse workbench window, go to \"Help\" menu -> \"Install New Software...\" \n\tc) In \"Install\" dialog, click \"Add...\" button \n\td) In \"Add Repository\" dialog, enter \"Eclipse Poky\" for (repository) Name, click \"Archive...\" ", |
| 308 | "expected_results": "" |
| 309 | }, |
| 310 | "5": { |
| 311 | "action": "Install Eclipse Poky plugins (continue) \n\te) In \"Repository archive\" browse dialog, select the downloaded Eclipse Poky repository archive \n\tf) Back in \"Add Repository\" dialog, click \"OK\" \n\tg) Back in \"Install\" dialog, make sure \"Work with:\" is set to \"Eclipse Poky\" repository, tick \"Yocto Project \tDocumentation Plug-in\" and \"Yocto Project SDK Plug-in\", click \"Next >\" and verify plugins/features name/version, \tclick \"Next >\" and accept license agreement, click \"Finish\" \n\th) If \"Security Warning\" dialog appears, click \"OK\" to install unsigned content. \n\ti) In \"Software Updates\" dialog, click \"Yes\" to restart Eclipse to complete Eclipse Poky plugins installation. ", |
| 312 | "expected_results": "" |
| 313 | }, |
| 314 | "6": { |
| 315 | "action": "Setup Eclipse Poky to use SDK \n\ta) In Eclipse workbench window, go to \"Window\" menu -> \"Preferences\". \n\tb) In \"Preferences\" window, go to \"Yocto Project SDK\", in \"Cross Compiler Options\" frame, select \"Standalone pre-\tbuilt toolchain\". ", |
| 316 | "expected_results": "Eclipse Poky plugins installed and running successfully, e.g. observe that \"Yocto Project Tools\" menu is available on Eclipse workbench window." |
| 317 | } |
| 318 | }, |
| 319 | "summary": "Eclipse_Poky_installation_and_setup" |
| 320 | } |
| 321 | } |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 322 | ] |