summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/manual/crops.json
blob: 5cfa653843225b95c0a972557a84b8ea6378469d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
[
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_eSDK_devtool_build_make",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 5 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": " Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": "Create the following tree of files  <crops-esdk-workdir-workspace>/sdkext/files/myapp <crops-esdk-workdir-workspace>/sdkext/files/myapp_cmake   \n\n\n",
                    "expected_results": ""
                },
                "4": {
                    "action": " Create the following files withing the myapp directory  myapp.c and the Makefile. Write the following inside of each file: \n---------------------------------------- \nMakefile should contain  \n\nall: myapp  \n\nmyapp: myapp.o \n\t$(CC) $(LDFLAGS) $< -o $@  \n\nmyapp.o: myapp.c  \n\t$(CC) $(CFLAGS) -c $< -o $@ \n\nclean: \n\trm -rf myapp.o myapp  \n\n-----------------------------  \nmyapp.c  shold contain  \n\n\n#include <stdio.h>    \n\nint \nmain(int argc, char *argv[]) \n{ \n\tprintf(\"Hello world\\n\"); \n \n\treturn 0; \n} \n------------------------------------  \n\n",
                    "expected_results": "be sure that the indentations on the makefile are tabs not spaces.  \n\n"
                },
                "5": {
                    "action": " Create the following files within the myapp_cmake directory CMakeLists.txt and myapp.c. Write the following inside each file:  \n\n------------------------------------ \nCMakeLists.txt should contain:  \n\ncmake_minimum_required (VERSION 2.6) \nproject (myapp) \n# The version number. \nset (myapp_VERSION_MAJOR 1) \nset (myapp_VERSION_MINOR 0)  \n\n# add the executable \nadd_executable (myapp myapp.c)  \n\ninstall(TARGETS myapp \nRUNTIME DESTINATION bin)  \n\n------------------------------------------ \nmyapp.c should contain:  \n\n#include <stdio.h>     \n\nint  \nmain(int argc, char *argv[])  \n{ \n\tprintf(\"Hello world\\n\");  \n\n\treturn 0; \n} \n-------------------------------------------------  \n\n",
                    "expected_results": "Be sure that the indentations on CMakeLists.txt is tabs not spaces."
                },
                "6": {
                    "action": " source environment-setup-i586-poky-linux  \n\n",
                    "expected_results": "This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...   \n\n"
                },
                "7": {
                    "action": " run command which devtool  \n\n",
                    "expected_results": "this should output the directory of the devtool script and it should be within the sdk workdir you are working in.  \n\n  "
                },
                "8": {
                    "action": "devtool add myapp <directory>(this is myapp dir)    \n\n\n",
                    "expected_results": "The directory you should input is the myapp directory. This should automatically create the recipe myapp.bb under <crops-esdk-workdir-workspace>/recipes/myapp/myapp.bb"
                },
                "9": {
                    "action": " devtool build myapp  \n\n",
                    "expected_results": "This should compile an image"
                },
                "10": {
                    "action": " devtool reset myapp  ",
                    "expected_results": "This cleans sysroot of the myapp recipe, but it leaves the source tree intact. meaning it does not erase."
                }
            },
            "summary": "sdkext_eSDK_devtool_build_make"
        }
    },
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_devtool_build_esdk_package",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 5 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": " Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": " Create the following tree of files    <crops-esdk-workdir-workspace>/sdkext/files/myapp/ \n <crops-esdk-workdir-workspace>/sdkext/files/myapp_cmake  \n\n",
                    "expected_results": ""
                },
                "4": {
                    "action": " Create the following files withing the myapp directory  myapp.c and the Makefile. Write the following inside of each file: \n---------------------------------------- \nMakefile should contain  \n\nall: myapp  \n\nmyapp: myapp.o \n\t$(CC) $(LDFLAGS) $< -o $@ \n\nmyapp.o: myapp.c  \n\t$(CC) $(CFLAGS) -c $< -o $@ \n\nclean: \n\trm -rf myapp.o myapp  \n\n-----------------------------  \nmyapp.c  shold contain  \n\n#include <stdio.h>   \n\nint \nmain(int argc, char *argv[]) \n{ \n\tprintf(\"Hello world\\n\"); \n \n\treturn 0; \n} \n------------------------------------  \n\n",
                    "expected_results": "be sure that the indentations on the makefile are tabs not spaces.  \n\n"
                },
                "5": {
                    "action": " Create the following files within the myapp_cmake directory CMakeLists.txt and myapp.c. Write the following inside each file:  \n\n------------------------------------ \nCMakeLists.txt should contain:  \n\ncmake_minimum_required (VERSION 2.6) \nproject (myapp) \n# The version number. \nset (myapp_VERSION_MAJOR 1) \nset (myapp_VERSION_MINOR 0)  \n\n# add the executable \nadd_executable (myapp myapp.c)  \n\ninstall(TARGETS myapp \nRUNTIME DESTINATION bin)  \n\n------------------------------------------ \nmyapp.c should contain:  \n\n#include<stdio.h>     \n\nint  \nmain(int argc, char *argv[])  \n{ \n\tprintf(\"Hello world\\n\");  \n\n\treturn 0; \n} \n-------------------------------------------------  \n\n",
                    "expected_results": "Be sure that the indentations on CMakeLists.txt is tabs not spaces.  \n\n"
                },
                "6": {
                    "action": " source environment-setup-i586-poky-linux  \n\n",
                    "expected_results": "This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...  \n\n"
                },
                "7": {
                    "action": " run command which devtool  \n\n",
                    "expected_results": " this should output the directory of the devtool script and it should be within the sdk workdir you are working in.  \n\n"
                },
                "8": {
                    "action": " devtool add myapp <directory>  (this is myapp dir)  \n\n",
                    "expected_results": " The directory you should input is the myapp directory. This should automatically create the recipe myapp.bb under <crops-esdk-workdir-workspace>/recipes/myapp/myapp.bb  \n\n"
                },
                "9": {
                    "action": " devtool package myapp  \n\n",
                    "expected_results": " you should expect a package creation of myapp and it should be under the  /tmp/deploy/  \n\n"
                },
                "10": {
                    "action": " devtool reset myapp  ",
                    "expected_results": "This cleans sysroot of the myapp recipe, but it leaves the source tree intact. meaning it does not erase.\n</package_format>"
                }
            },
            "summary": "sdkext_devtool_build_esdk_package"
        }
    },
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_devtool_build_cmake",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 5 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": " Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": " Create the following tree of files    <crops-esdk-workdir-workspace>/sdkext/files/myapp \n <crops-esdk-workdir-workspace>/sdkext/files/myapp_cmake  \n\n",
                    "expected_results": ""
                },
                "4": {
                    "action": " Create the following files withing the myapp directory  myapp.c and the Makefile. Write the following inside of each file: \n---------------------------------------- \nMakefile should contain  \n\nall: myapp  \n\nmyapp: myapp.o \n\t$(CC) $(LDFLAGS) $< -o $@ \n\nmyapp.o: myapp.c  \n\t$(CC) $(CFLAGS) -c $< -o $@ \n\nclean: \n\trm -rf myapp.o myapp  \n\n-----------------------------  \nmyapp.c  shold contain  \n\n#include <stdio.h>   \n\nint \nmain(int argc, char *argv[]) \n{ \n\tprintf(\"Hello world\\n\"); \n \n\treturn 0; \n} \n------------------------------------  \n\n",
                    "expected_results": "be sure that the indentations on the makefile are tabs not spaces.   \n\n"
                },
                "5": {
                    "action": " Create the following files within the myapp_cmake directory CMakeLists.txt and myapp.c. Write the following inside each file:  \n\n------------------------------------ \nCMakeLists.txt should contain:  \n\ncmake_minimum_required (VERSION 2.6) \nproject (myapp) \n# The version number. \nset (myapp_VERSION_MAJOR 1) \nset (myapp_VERSION_MINOR 0)  \n\n# add the executable \nadd_executable (myapp myapp.c)  \n\ninstall(TARGETS myapp \nRUNTIME DESTINATION bin)  \n\n------------------------------------------ \nmyapp.c should contain:  \n\n#include    \n\nint  \nmain(int argc, char *argv[])  \n{ \n\tprintf(\"Hello world\\n\");  \n\n\treturn 0; \n} \n-------------------------------------------------  \n\n",
                    "expected_results": "Be sure that the indentations on CMakeLists.txt is tabs not spaces.  \n\n"
                },
                "6": {
                    "action": " source environment-setup-i586-poky-linux  \n\n",
                    "expected_results": "This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...  \n\n"
                },
                "7": {
                    "action": " run command which devtool  \n\n",
                    "expected_results": "this should output the directory of the devtool script and it should be within the sdk workdir you are working in.  \n\n"
                },
                "8": {
                    "action": " devtool add myapp <directory>   (this is myapp_cmake dir)  \n\n",
                    "expected_results": "The directory you should input is the myapp_cmake directory. This should automatically create the recipe myapp.bb under <crops-esdk-workdir-workspace>/recipes/myapp/myapp.bb  \n\n"
                },
                "9": {
                    "action": " devtool build myapp  \n\n",
                    "expected_results": "This should compile an image  \n\n"
                },
                "10": {
                    "action": " devtool reset myapp  ",
                    "expected_results": "This cleans sysroot of the myapp recipe, but it leaves the source tree intact. meaning it does not erase.  "
                }
            },
            "summary": "sdkext_devtool_build_cmake"
        }
    },
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_extend_autotools_recipe_creation",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 2 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": "Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": " source environment-setup-i586-poky-linux  \n\n",
                    "expected_results": " This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...   \n\n"
                },
                "4": {
                    "action": "run command which devtool  \n\n",
                    "expected_results": "this should output the directory of the devtool script and it should be within the sdk workdir you are working in.   \n\n"
                },
                "5": {
                    "action": "devtool sdk-install -s libxml2  \n\n",
                    "expected_results": "this should install libxml2   \n\n"
                },
                "6": {
                    "action": "devtool add librdfa  https://github.com/rdfa/librdfa  \n\n",
                    "expected_results": "This should automatically create the recipe librdfa.bb under /recipes/librdfa/librdfa.bb   \n\n"
                },
                "7": {
                    "action": "devtool build librdfa  \n\n",
                    "expected_results": "This should compile   \n\n"
                },
                "8": {
                    "action": "devtool reset librdfa  ",
                    "expected_results": "This cleans sysroot of the librdfa recipe, but it leaves the source tree intact. meaning it does not erase."
                }
            },
            "summary": "sdkext_extend_autotools_recipe_creation"
        }
    },
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_devtool_kernelmodule",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 2 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": " Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": "source environment-setup-i586-poky-linux   \n\n",
                    "expected_results": "This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...   \n \n"
                },
                "4": {
                    "action": "run command which devtool  \n\n",
                    "expected_results": "this should output the directory of the devtool script and it should be within the sdk workdir you are working in.   \n\n"
                },
                "5": {
                    "action": "devtool add kernel-module-hello-world https://git.yoctoproject.org/git/kernel-module-hello-world \n\n",
                    "expected_results": "This should automatically create the recipe kernel-module-hello-world.bb under <crops-esdk-workdir-workspace>/recipes/kernel-module-hello-world/kernel-module-hello-world.bb "
                },
                "6": {
                    "action": "devtool build kernel-module-hello-world   \n\n",
                    "expected_results": "This should compile an image   \n\n"
                },
                "7": {
                    "action": "devtool reset kernel-module-hello-world   ",
                    "expected_results": "This cleans sysroot of the kernel-module-hello-world recipe, but it leaves the source tree intact. meaning it does not erase."
                }
            },
            "summary": "sdkext_devtool_kernelmodule"
        }
    },
    {
        "test": {
            "@alias": "crops-default.crops-default.sdkext_recipes_for_nodejs",
            "author": [
                {
                    "email": "francisco.j.pedraza.gonzalez@intel.com",
                    "name": "francisco.j.pedraza.gonzalez@intel.com"
                }
            ],
            "execution": {
                "1": {
                    "action": "IMPORTANT NOTE: The firsts 2 steps refer to configuration of the environment to run the rest of the steps. These only apply for CROPS-eSDK.    \n\n\nlets say variable npm = npm://registry.npmjs.org;name=winston;version=2.2.0   \n\n",
                    "expected_results": ""
                },
                "2": {
                    "action": "Initiate your Crops-esdk environment as it says in wiki https://github.com/crops/docker-win-mac-docs/wiki   \n\n",
                    "expected_results": ""
                },
                "3": {
                    "action": "source environment-setup-i586-poky-linux   \n\n",
                    "expected_results": "This should output a message that says SDK environment now set up; additionally you may now run devtool to perform development tasks etc etc ...   \n\n"
                },
                "4": {
                    "action": "run command which devtool   \n\n",
                    "expected_results": "this should output the directory of the devtool script and it should be within the sdk workdir you are working in.  \n\n"
                },
                "5": {
                    "action": " 4a) git clone git://git.openembedded.org/meta-openembedded in  layers/build  directory   \n \n4b) Add meta-openembedded/meta-oe in bblayer.conf as mentioned below: ${SDKBASEMETAPATH}/layers/build/meta-openembedded/meta-oe \\   \n\n4c) devtool add \"npm://registry.npmjs.org;name=npm;version=2.2.0\"   \n\n",
                    "expected_results": " This should automatically create the recipe npm.bb under /recipes/npm/npm.bb  \n\n"
                },
                "6": {
                    "action": "devtool build npm   \n\n",
                    "expected_results": "This should compile an image  \n\n"
                },
                "7": {
                    "action": " devtool reset npm",
                    "expected_results": "This cleans sysroot of the npm recipe, but it leaves the source tree intact. meaning it does not erase."
                }
            },
            "summary": "sdkext_recipes_for_nodejs"
        }
    }
]