aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/manual/oe-core.json
blob: fb47c5ec36027cff383a212b539fab45b85d55b0 (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
[
  {
    "test": {
      "@alias": "oe-core.bitbake.Test_bitbake_menuconfig",
      "author": [
        {
          "email": "jose.perez.carranza@intel.com",
          "name": "jose.perez.carranza@intel.com"
        }
      ],
      "execution": {
        "1": {
          "action": "clone poky  \n \n",
          "expected_results": ""
        },
        "2": {
          "action": "cd poky   \n\n",
          "expected_results": ""
        },
        "3": {
          "action": "source oe-init-build-env && cd build    \n\n",
          "expected_results": ""
        },
        "4": {
          "action": "set below in local.conf   \n\n  \tMACHINE = \"qemux86\"  \n\n",
          "expected_results": ""
        },
        "5": {
          "action": "bitbake linux-yocto -c kernel_configme -f   \n\n",
          "expected_results": ""
        },
        "6": {
          "action": "bitbake linux-yocto -c menuconfig   \n\n",
          "expected_results": ""
        },
        "7": {
          "action": "Once menuconfig launches, use the interface to navigate through the selections and \n   enable option \"64-bit kernel\"  \n\n",
          "expected_results": ""
        },
        "8": {
          "action": "Save changes and set name of the file as \"test.config\"  ",
          "expected_results": "Open file:  \n \npoky/build//tmp/work/qemux86-poky-linux/linux-yocto/4.X.X+*/linux-qemux86-standard-build/test.config   \n  \n \n\nand verify that changes are present in the file as follows:   \n \nCONFIG_64BIT=y  \n \nCONFIG_X86_64=y"
        }
      },
      "summary": "Test_bitbake_menuconfig"
    }
  },
  {
    "test": {
      "@alias": "oe-core.bitbake.test_bitbake_devshell",
      "author": [
        {
          "email": "jose.perez.carranza@intel.com",
          "name": "jose.perez.carranza@intel.com"
        }
      ],
      "execution": {
        "1": {
          "action": "clone poky ",
          "expected_results": ""
        },
        "2": {
          "action": "cd poky  ",
          "expected_results": ""
        },
        "3": {
          "action": "source oe-init-build-env && cd build ",
          "expected_results": ""
        },
        "4": {
          "action": "bitbake matchbox-desktop ",
          "expected_results": "Package was build correctly "
        },
        "5": {
          "action": "bitbake matchbox-desktop -c devshell ",
          "expected_results": "A terminal with a shell prompt within the OpenEmbedded build environment is opened "
        },
        "6": {
          "action": "Verify that \"matchbox-desktop\" binary file is not created under\"src\" directory ",
          "expected_results": ""
        },
        "7": {
          "action": "Run command:./configure && make ",
          "expected_results": "Verify that \"matchbox-desktop\" binary file was created successfully under \"src/\" directory "
        },
        "8": {
          "action": "Exit fromthe devshell terminal,exit ",
          "expected_results": "Terminal back to the build directory"
        }
      },
      "summary": "test_bitbake_devshell"
    }
  },
  {
    "test": {
      "@alias": "oe-core.bitbake.test_dependency_explorer_is_launched",
      "author": [
        {
          "email": "jose.perez.carranza@intel.com",
          "name": "jose.perez.carranza@intel.com"
        }
      ],
      "execution": {
        "1": {
          "action": "clone poky ",
          "expected_results": ""
        },
        "2": {
          "action": "cd poky ",
          "expected_results": ""
        },
        "3": {
          "action": "source oe-init-build-env ",
          "expected_results": ""
        },
        "4": {
          "action": "bitbake -u taskexp -g core-image-full-cmdline    \n\nNOTE: To execute the last command of this test, it's necessary that the machine is executing an X11 server, or if that's not the case (for example, if running the test on a headless server), it is required to enable ssh X11 forwarding on both, the server and the client, and have the X11 server running on the client.    \n\nThe instructions to enable X11 forwarding vary between distributions. But for example, these are the steps to enable it between a server running openSUSE Leap 42.1 and a client with Fedora 24:  \nA. On the server, make sure /home//.ssh/config contains the line:  \n     ForwardX11 yes  \nB. On the server, make sure xauth is installed by running:  \n      which xauth  \nC. On the client, connect to the server, enabling X11 forwarding, for example by using:  \n      ssh -X user@server    \nNOTE 2: depexp was renamed to taskexp on 2.3 M4",
          "expected_results": "Verify that a \"dependency explorer\" is opened and file \n   dependencies are listed  "
        }
      },
      "summary": "test_dependency_explorer_is_launched"
    }
  },
  {
    "test": {
      "@alias": "oe-core.bitbake.test_bitbake_sane_error_for_invalid_layer",
      "author": [
        {
          "email": "jose.perez.carranza@intel.com",
          "name": "jose.perez.carranza@intel.com"
        }
      ],
      "execution": {
        "1": {
          "action": "clone poky  \n",
          "expected_results": ""
        },
        "2": {
          "action": "cd poky  \n \n",
          "expected_results": ""
        },
        "3": {
          "action": "source oe-init-build-env && cd build  \n \n",
          "expected_results": ""
        },
        "4": {
          "action": "Add a invalid layer to conf/bblayers.conf  \"<poky dir>/my-invalid-layer\" \n\t\n",
          "expected_results": ""
        },
        "5": {
          "action": "bitbake core-image-minimal",
          "expected_results": "Below error should be displayed:\n\"ERROR: Layer directory  does not exist! Please check BBLAYERS in <poky dir>/<build dir>/conf/bblayers.conf\""
        }
      },
      "summary": "test_bitbake_sane_error_for_invalid_layer"
    }
  }
]