blob: cf51b6ab1cf4ee3e5f1585f7c60db31f97b53f63 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001[
2 {
3 "test": {
4 "@alias": "bsps-qemu.bsps-tools.qemu_can_be_started_with_KVM_enabled",
5 "author": [
6 {
7 "email": "alexandru.c.georgescu@intel.com",
8 "name": "alexandru.c.georgescu@intel.com"
9 }
10 ],
11 "execution": {
12 "1": {
Brad Bishop977dc1a2019-02-06 16:01:43 -050013 "action": "Build a kernel with KVM enabled \n\nIn Local.conf add \n\nQEMU_USE_KVM = \"${@ '1' if os.access('/dev/kvm', os.R_OK|os.W_OK) else '0' }\" \n\n ",
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014 "expected_results": ""
15 },
16 "2": {
17 "action": "Start qemu with option \"kvm\" with runqemu \n a. If you start qemu with kvm failed, maybe it is because host not install kvm and vhost_net module. Follow below link to install them. \n b. vhost_test refer: https://wiki.yoctoproject.org/wiki/Running_an_x86_Yocto_Linux_image_under_QEMU_KVM \n c. kvm refer: https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu",
18 "expected_results": ""
19 },
20 "3": {
21 "action": "Check if qemu starts up and if kvm_intel module is used",
22 "expected_results": ""
23 },
24 "4": {
25 "action": "If kvm_intel module is not used when starting qemu, it will show 0 in \"Used by\" column when you run \"lsmod | grep kvm_intel\" ",
26 "expected_results": "KVM enabled with qemu \nExecute \"lsmod | grep kvm_intel\" from your host twice, before and after you \nstart the qemu with kvm option. Before start, the number should be 0, \nafter start, the number should bigger than 0."
27 }
28 },
29 "summary": "qemu_can_be_started_with_KVM_enabled"
30 }
31 },
32 {
33 "test": {
34 "@alias": "bsps-qemu.bsps-tools.Post-installation_logging",
35 "author": [
36 {
37 "email": "yi.zhao@windriver.com",
38 "name": "yi.zhao@windriver.com"
39 }
40 ],
41 "execution": {
42 "1": {
43 "action": "Download the poky source and set environment \n",
44 "expected_results": "The /var/log/postinstall.log should exist in the first boot. The content of this log is like below: \n\nRunning postinst /etc/rpm-postinsts/man... \nList directory to check the output log \nbin \nboot \ndev \netc \nhome \nlib \nlost+found \nmedia \nmnt \nproc \nrun \nsbin \nsys \ntmp \nusr \nvar \nList nonexist directory to check the stderr redirection log \nls: /nonexist: No such file or directory "
45 },
46 "2": {
47 "action": "Add the following lines to a .bb file. For expample, meta/recipes-connectivity/openssh/openssh_6.2p2.bb: \n\npkg_postinst_ontarget_${PN} () { \n #!/bin/sh -e \n if [ x\"$D\" = \"x\" ]; then \n echo \"List directory to check the output log\" \n ls / \n echo \"List nonexist directory to check the stderr redirection log\" \n ls /nonexist \n else \n exit 1 \n fi \n} \n\nMake sure the feature \"debug-tweaks\" is added in conf/local.conf \n",
48 "expected_results": ""
49 },
50 "3": {
51 "action": "Add ssh-server-openssh to EXTRA_IMAGE_FEATURES in local.conf \n",
52 "expected_results": ""
53 },
54 "4": {
55 "action": "Build core-image-minimal \n",
56 "expected_results": ""
57 },
58 "5": {
59 "action": "Boot up the image and check the /var/log/postinstall.log ",
60 "expected_results": ""
61 }
62 },
63 "summary": "Post-installation_logging"
64 }
65 },
66 {
67 "test": {
68 "@alias": "bsps-qemu.bsps-tools.Add_user_with_cleartext_type_password_during_filesystem_construction",
69 "author": [
70 {
71 "email": "ke.zou@windriver.com",
72 "name": "ke.zou@windriver.com"
73 }
74 ],
75 "execution": {
76 "1": {
77 "action": "Download the poky source and set the environment \n\n",
78 "expected_results": "No error during image building procedure. \n"
79 },
80 "2": {
81 "action": "Add the following lines in conf/local.conf \n\nINHERIT += \"extrausers\" \n\nEXTRA_USERS_PARAMS = \"\\ \nuseradd -s /bin/sh -P 'tester3' tester3;\\ \n\" \n\nThe above settings do the following things: \na. Add a user tester3 with cleartext password 'tester3' ",
82 "expected_results": "Image can boot up \n"
83 },
84 "3": {
85 "action": "Build the image\n ",
86 "expected_results": "Login with user name \"tester3\" and password \"tester3\" "
87 }
88 },
89 "summary": "Add_user_with_cleartext_type_password_during_filesystem_construction"
90 }
91 },
92 {
93 "test": {
94 "@alias": "bsps-qemu.bsps-tools.rpm_-__install_dependency_package",
95 "author": [
96 {
97 "email": "alexandru.c.georgescu@intel.com",
98 "name": "alexandru.c.georgescu@intel.com"
99 }
100 ],
101 "execution": {
102 "1": {
103 "action": "Get a not previously installed RPM package or build one on local machine, which should have run-time dependency.For example, \"mc\" (Midnight Commander, which is a visual file manager) should depend on \"ncurses-terminfo\". \n\n$ bitbake mc \n\n\n",
104 "expected_results": ""
105 },
106 "2": {
107 "action": "Copy the package into a system folder (for example /home/root/rpm_packages). \n\n\n",
108 "expected_results": ""
109 },
110 "3": {
111 "action": "Run \"rpm -ivh package_name\" and check the output, for example \"rpm -ivh mc.rpm*\" should report the dependency on \"ncurses-terminfo\".\n\n\n\n",
112 "expected_results": "3 . rpm command should report message when some RPM installation depends on other packages."
113 }
114 },
115 "summary": "rpm_-__install_dependency_package"
116 }
117 },
118 {
119 "test": {
120 "@alias": "bsps-qemu.bsps-tools.Check_rpm_install/removal_log_file_size(auto)",
121 "author": [
122 {
123 "email": "alexandru.c.georgescu@intel.com",
124 "name": "alexandru.c.georgescu@intel.com"
125 }
126 ],
127 "execution": {
128 "1": {
129 "action": "Get some rpm or other kind of installation packages. \n\n",
130 "expected_results": "Steps 1- 4 (more than 2.3) \nEach file will occupy around 10MB, and there should be some method to keep rpm log in a small size. (the size of the db of RPMs must not be taking so much space) \nStep 5 (less than or equal to 2.3)\nThe size on /var/lib/rpm/ must keep around 30MB"
131 },
132 "2": {
133 "action": "After system is up, check the size of log file named as \"log.xxxxxx\" on /var/lib/rpm/log \n\n",
134 "expected_results": ""
135 },
136 "3": {
137 "action": "After several install/removal of packages, with either of the install/removal commands (rpm/smart/zypper/dnf install/removal), check again the size of log file. \n\n",
138 "expected_results": ""
139 },
140 "4": {
141 "action": "For packages installation, there will be some database files under /var/lib/rpm/, named as \"__db.xxx\" and there will be some log files \nunder /var/lib/rpm/log, named as \"\"log.xxxxxx\"\". \n\nNote: You will only see the log.xxxx on /var/lib/rpm/log mentioned above if the poky version is minor than 2.3.For poky 2.3 or major versions this has been modified and the package RPM4 does not show the logs.xxxx. if major, follow the next step. \n\n",
142 "expected_results": ""
143 },
144 "5": {
145 "action": "Repeat steps (1 and 3) and check the size of /var/lib/rpm/ \n\nMore info: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9259",
146 "expected_results": ""
147 }
148 },
149 "summary": "Check_rpm_install/removal_log_file_size"
150 }
151 },
152 {
153 "test": {
154 "@alias": "bsps-qemu.bsps-runtime.only_one_connmand_in_background(auto)",
155 "author": [
156 {
157 "email": "alexandru.c.georgescu@intel.com",
158 "name": "alexandru.c.georgescu@intel.com"
159 }
160 ],
161 "execution": {
162 "1": {
163 "action": "Boot system",
164 "expected_results": ""
165 },
166 "2": {
167 "action": "Run \"ps aux |grep connmand\" or \"ps -ef | grep connmand\" or \"ps | grep connmand\"",
168 "expected_results": "Connmand (connection manager, used to manage internet connections) should be shown as an active process \n\n"
169 },
170 "3": {
171 "action": "Run command \"connmand\" to try to launch to a second connmand process",
172 "expected_results": ""
173 },
174 "4": {
175 "action": "Check, with \"ps\" connmand if a second connmand can be generated ",
176 "expected_results": "There should be only one connmand process instance in background ."
177 }
178 },
179 "summary": "only_one_connmand_in_background"
180 }
181 },
182 {
183 "test": {
184 "@alias": "bsps-qemu.bsps-runtime.X_server_can_start_up_with_runlevel_5_boot",
185 "author": [
186 {
187 "email": "alexandru.c.georgescu@intel.com",
188 "name": "alexandru.c.georgescu@intel.com"
189 }
190 ],
191 "execution": {
192 "1": {
193 "action": "boot up system with default runlevel \n\n",
194 "expected_results": "X server can start up well and desktop display has no problem . \n\n"
195 },
196 "2": {
197 "action": "type runlevel at command prompt",
198 "expected_results": "Output:N 5"
199 }
200 },
201 "summary": "X_server_can_start_up_with_runlevel_5_boot"
202 }
203 },
204 {
205 "test": {
206 "@alias": "bsps-qemu.bsps-runtime.check_bash_in_image",
207 "author": [
208 {
209 "email": "alexandru.c.georgescu@intel.com",
210 "name": "alexandru.c.georgescu@intel.com"
211 }
212 ],
213 "execution": {
214 "1": {
215 "action": "After system is up, check if bash command exists with command \"which bash\"",
216 "expected_results": "bash command should exist in image giving something as below \"/bin/bash\""
217 }
218 },
219 "summary": "check_bash_in_image"
220 }
221 }
Brad Bishop977dc1a2019-02-06 16:01:43 -0500222]