14514f5e3Sopenharmony_ci# Development Example<a name="EN-US_TOPIC_0000001128096218"></a>
24514f5e3Sopenharmony_ci
34514f5e3Sopenharmony_ci-   [HelloWorld](#section105987593810)
44514f5e3Sopenharmony_ci-   [Performing Test Case Test262](#section118471435115815)
54514f5e3Sopenharmony_ci
64514f5e3Sopenharmony_ciThis section describes how to develop and test ARK runtime.
74514f5e3Sopenharmony_ci
84514f5e3Sopenharmony_ci## HelloWorld<a name="section105987593810"></a>
94514f5e3Sopenharmony_ci
104514f5e3Sopenharmony_ci### Preparations
114514f5e3Sopenharmony_ci
124514f5e3Sopenharmony_ci1.  Run the following command to compile ARK runtime:
134514f5e3Sopenharmony_ci
144514f5e3Sopenharmony_ci	```
154514f5e3Sopenharmony_ci	./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages  # arm platform and host side running tool
164514f5e3Sopenharmony_ci	```
174514f5e3Sopenharmony_ci
184514f5e3Sopenharmony_ci2.  Run the following command to compile the ARK frontend:
194514f5e3Sopenharmony_ci
204514f5e3Sopenharmony_ci    x64:
214514f5e3Sopenharmony_ci	```
224514f5e3Sopenharmony_ci    ./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages --build-target ets_frontend_build  # arm platform and host side running tool
234514f5e3Sopenharmony_ci    ```
244514f5e3Sopenharmony_ci
254514f5e3Sopenharmony_ci	arm64:
264514f5e3Sopenharmony_ci	```
274514f5e3Sopenharmony_ci	./build.sh --product-name ohos_arm64 --build-target ark_js_packages --build-target ld-musl-aarch64.so.1
284514f5e3Sopenharmony_ci	```
294514f5e3Sopenharmony_ci
304514f5e3Sopenharmony_ci	arm32:
314514f5e3Sopenharmony_ci	```
324514f5e3Sopenharmony_ci	./build.sh --product-name rk3568 --build-target ark_js_runtime --build-target ld-musl-arm.so.1
334514f5e3Sopenharmony_ci	```
344514f5e3Sopenharmony_ci
354514f5e3Sopenharmony_ci**NOTE**:  Run the compilation commands in the project root directory.
364514f5e3Sopenharmony_ci
374514f5e3Sopenharmony_ci
384514f5e3Sopenharmony_ci### Running  **hello-world.js**
394514f5e3Sopenharmony_ci
404514f5e3Sopenharmony_ciCreate the  **hello-world.js**  file and write the following source code into the file:
414514f5e3Sopenharmony_ci
424514f5e3Sopenharmony_ci```
434514f5e3Sopenharmony_ci print("Hello World!!!");
444514f5e3Sopenharmony_ci```
454514f5e3Sopenharmony_ci
464514f5e3Sopenharmony_ciRun the  **hello-world.js**  file.
474514f5e3Sopenharmony_ci
484514f5e3Sopenharmony_ci1.  Use the ARK frontend to create the  **hello-world.abc**  file.
494514f5e3Sopenharmony_ci
504514f5e3Sopenharmony_ci    ```
514514f5e3Sopenharmony_ci    /your_code_path/out/rk3568/clang_x64/arkcompiler/ets_frontend/es2abc hello-world.js
524514f5e3Sopenharmony_ci    ```
534514f5e3Sopenharmony_ci
544514f5e3Sopenharmony_ci2.  Run the  **hello-world.abc**  file.
554514f5e3Sopenharmony_ci    1.  Set the search path.
564514f5e3Sopenharmony_ci
574514f5e3Sopenharmony_ci        ```
584514f5e3Sopenharmony_ci        export LD_LIBRARY_PATH=/your_code_path/out/rk3568/clang_x64/arkcompiler/ets_runtime:/your_code_path/out/rk3568/clang_x64/global/i18n_standard:/your_code_path/prebuilts/clang/ohos/linux-x86_64/llvm/lib:/your_code_path/out/rk3568/clang_x64/thirdparty/zlib
594514f5e3Sopenharmony_ci        ```
604514f5e3Sopenharmony_ci
614514f5e3Sopenharmony_ci    2.  Run  **ark\_js\_vm**.
624514f5e3Sopenharmony_ci
634514f5e3Sopenharmony_ci        ```
644514f5e3Sopenharmony_ci        /your_code_path/out/rk3568/clang_x64/arkcompiler/ets_runtime/ark_js_vm hello-world.abc
654514f5e3Sopenharmony_ci        ```
664514f5e3Sopenharmony_ci
674514f5e3Sopenharmony_ci        The execution result is as follows:
684514f5e3Sopenharmony_ci
694514f5e3Sopenharmony_ci        ```
704514f5e3Sopenharmony_ci        Hello World!!!
714514f5e3Sopenharmony_ci        ```
724514f5e3Sopenharmony_ci
734514f5e3Sopenharmony_ci**NOTE**:  In the preceding command,  _your code path_  indicates the source code directory.
744514f5e3Sopenharmony_ci
754514f5e3Sopenharmony_ci### Disassembling  **hello-world.abc**
764514f5e3Sopenharmony_ci
774514f5e3Sopenharmony_ciRun the following command to export the result to the  **output**  file:
784514f5e3Sopenharmony_ci
794514f5e3Sopenharmony_ci```
804514f5e3Sopenharmony_ci./your code path/out/rk3568/clang_x64/arkcompiler/runtime_core/ark_disasm hello-world.abc output
814514f5e3Sopenharmony_ci```
824514f5e3Sopenharmony_ci
834514f5e3Sopenharmony_ciThe output is as follows:
844514f5e3Sopenharmony_ci
854514f5e3Sopenharmony_ci```
864514f5e3Sopenharmony_ci#
874514f5e3Sopenharmony_ci# source binary: hello-world.abc
884514f5e3Sopenharmony_ci#
894514f5e3Sopenharmony_ci
904514f5e3Sopenharmony_ci# ====================
914514f5e3Sopenharmony_ci# LITERALS
924514f5e3Sopenharmony_ci
934514f5e3Sopenharmony_ci# ====================
944514f5e3Sopenharmony_ci# RECORDS
954514f5e3Sopenharmony_ci
964514f5e3Sopenharmony_ci.record _ESAnnotation <external>
974514f5e3Sopenharmony_ci
984514f5e3Sopenharmony_ci.record _ESModuleMode {
994514f5e3Sopenharmony_ci	u8 isModule
1004514f5e3Sopenharmony_ci}
1014514f5e3Sopenharmony_ci
1024514f5e3Sopenharmony_ci# ====================
1034514f5e3Sopenharmony_ci# METHODS
1044514f5e3Sopenharmony_ci
1054514f5e3Sopenharmony_ci.function any func_main_0_any_any_any_any_(any a0, any a1, any a2) <static> {
1064514f5e3Sopenharmony_ci	mov v2, a2
1074514f5e3Sopenharmony_ci	mov v1, a1
1084514f5e3Sopenharmony_ci	mov v0, a0
1094514f5e3Sopenharmony_ci	builtin.acc
1104514f5e3Sopenharmony_ci	sta v5
1114514f5e3Sopenharmony_ci	builtin.idi "print", 0x0 // Load the print function.
1124514f5e3Sopenharmony_ci	sta v3
1134514f5e3Sopenharmony_ci	lda.str "Hello World!!!"  // Load the Hello World!!! string.
1144514f5e3Sopenharmony_ci	sta v4
1154514f5e3Sopenharmony_ci	builtin.tern3 v3, v4  // Call the print function.
1164514f5e3Sopenharmony_ci	builtin.acc
1174514f5e3Sopenharmony_ci}
1184514f5e3Sopenharmony_ci```
1194514f5e3Sopenharmony_ci
1204514f5e3Sopenharmony_ci## Performing Test Case Test262<a name="section118471435115815"></a>
1214514f5e3Sopenharmony_ci
1224514f5e3Sopenharmony_ci### Preparations
1234514f5e3Sopenharmony_ci
1244514f5e3Sopenharmony_ci1.  Run the following command to compile ARK runtime:
1254514f5e3Sopenharmony_ci
1264514f5e3Sopenharmony_ci```
1274514f5e3Sopenharmony_ci./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
1284514f5e3Sopenharmony_ci```
1294514f5e3Sopenharmony_ci
1304514f5e3Sopenharmony_ci2.  Run the following command to compile the ARK frontend:
1314514f5e3Sopenharmony_ci
1324514f5e3Sopenharmony_ci```
1334514f5e3Sopenharmony_ci./build.sh --product-name rk3568 --build-target ets_frontend_build
1344514f5e3Sopenharmony_ci```
1354514f5e3Sopenharmony_ci
1364514f5e3Sopenharmony_ci**NOTE**:  Run the compilation commands in the project root directory.
1374514f5e3Sopenharmony_ci
1384514f5e3Sopenharmony_ci### Running Test262
1394514f5e3Sopenharmony_ci
1404514f5e3Sopenharmony_ciRun the  **run\_test262.py**  script to download and run the Test262 test case.
1414514f5e3Sopenharmony_ci
1424514f5e3Sopenharmony_ciCommand:
1434514f5e3Sopenharmony_ci
1444514f5e3Sopenharmony_ci```
1454514f5e3Sopenharmony_cipython3 test262/run_test262.py [options]
1464514f5e3Sopenharmony_ci```
1474514f5e3Sopenharmony_ci
1484514f5e3Sopenharmony_ciRun the script in  _Project root directory_**/arkcompiler/ets_frontend**.
1494514f5e3Sopenharmony_ci
1504514f5e3Sopenharmony_ci<a name="table11141827153017"></a>
1514514f5e3Sopenharmony_ci<table><thead align="left"><tr id="row101462717303"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p51552743010"><a name="p51552743010"></a><a name="p51552743010"></a>Option</p>
1524514f5e3Sopenharmony_ci</th>
1534514f5e3Sopenharmony_ci<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p11592710304"><a name="p11592710304"></a><a name="p11592710304"></a>Description</p>
1544514f5e3Sopenharmony_ci</th>
1554514f5e3Sopenharmony_ci</tr>
1564514f5e3Sopenharmony_ci</thead>
1574514f5e3Sopenharmony_ci<tbody><tr id="row2015172763014"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p171592710306"><a name="p171592710306"></a><a name="p171592710306"></a>--h, --help</p>
1584514f5e3Sopenharmony_ci</td>
1594514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p13151527133011"><a name="p13151527133011"></a><a name="p13151527133011"></a>Displays help information.</p>
1604514f5e3Sopenharmony_ci</td>
1614514f5e3Sopenharmony_ci</tr>
1624514f5e3Sopenharmony_ci<tr id="row1015527173015"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1615182712308"><a name="p1615182712308"></a><a name="p1615182712308"></a>--dir  DIR</p>
1634514f5e3Sopenharmony_ci</td>
1644514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p9556101593120"><a name="p9556101593120"></a><a name="p9556101593120"></a>Specifies the directory to test.</p>
1654514f5e3Sopenharmony_ci</td>
1664514f5e3Sopenharmony_ci</tr>
1674514f5e3Sopenharmony_ci<tr id="row1015112763020"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1815182733012"><a name="p1815182733012"></a><a name="p1815182733012"></a>--file  FILE</p>
1684514f5e3Sopenharmony_ci</td>
1694514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1615627173019"><a name="p1615627173019"></a><a name="p1615627173019"></a>Specifies the file to test.</p>
1704514f5e3Sopenharmony_ci</td>
1714514f5e3Sopenharmony_ci</tr>
1724514f5e3Sopenharmony_ci<tr id="row131515277307"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p111572716304"><a name="p111572716304"></a><a name="p111572716304"></a>--mode  [{1, 2, 3}]</p>
1734514f5e3Sopenharmony_ci</td>
1744514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1820821404711"><a name="p1820821404711"></a><a name="p1820821404711"></a>Specifies the mode, which can be any of the following:</p>
1754514f5e3Sopenharmony_ci<a name="ul136633170477"></a><a name="ul136633170477"></a><ul id="ul136633170477"><li><strong id="b12807202010471"><a name="b12807202010471"></a><a name="b12807202010471"></a>1</strong>: default</li><li><strong id="b16343325154719"><a name="b16343325154719"></a><a name="b16343325154719"></a>2</strong>: strict mode only</li><li><strong id="b19742163854610"><a name="b19742163854610"></a><a name="b19742163854610"></a>3</strong>: default and strict modes</li></ul>
1764514f5e3Sopenharmony_ci</td>
1774514f5e3Sopenharmony_ci</tr>
1784514f5e3Sopenharmony_ci<tr id="row1815112753020"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p2151927193015"><a name="p2151927193015"></a><a name="p2151927193015"></a>--es51</p>
1794514f5e3Sopenharmony_ci</td>
1804514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1715312588115"><a name="p1715312588115"></a><a name="p1715312588115"></a>Runs Test262 ES5.1.</p>
1814514f5e3Sopenharmony_ci</td>
1824514f5e3Sopenharmony_ci</tr>
1834514f5e3Sopenharmony_ci<tr id="row1915182703012"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p17151527133017"><a name="p17151527133017"></a><a name="p17151527133017"></a>--es2015  [{all, only}]</p>
1844514f5e3Sopenharmony_ci</td>
1854514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p536992675017"><a name="p536992675017"></a><a name="p536992675017"></a>Runs Test262 ES2015.</p>
1864514f5e3Sopenharmony_ci<p id="p205288299503"><a name="p205288299503"></a><a name="p205288299503"></a><strong id="b2052812914503"><a name="b2052812914503"></a><a name="b2052812914503"></a>all</strong>: all cases</p>
1874514f5e3Sopenharmony_ci<p id="p1392723585014"><a name="p1392723585014"></a><a name="p1392723585014"></a><strong id="b15128193544910"><a name="b15128193544910"></a><a name="b15128193544910"></a>only</strong>: only ES2015</p>
1884514f5e3Sopenharmony_ci</td>
1894514f5e3Sopenharmony_ci</tr>
1904514f5e3Sopenharmony_ci<tr id="row10924204611109"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p18924846111013"><a name="p18924846111013"></a><a name="p18924846111013"></a>--esnext</p>
1914514f5e3Sopenharmony_ci</td>
1924514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p15495042191410"><a name="p15495042191410"></a><a name="p15495042191410"></a>Runs <strong id="b13144135817502"><a name="b13144135817502"></a><a name="b13144135817502"></a>Test262-ES.next</strong>.</p>
1934514f5e3Sopenharmony_ci</td>
1944514f5e3Sopenharmony_ci</tr>
1954514f5e3Sopenharmony_ci<tr id="row5161145010105"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p716125071020"><a name="p716125071020"></a><a name="p716125071020"></a>--engine  FILE</p>
1964514f5e3Sopenharmony_ci</td>
1974514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p121612050181014"><a name="p121612050181014"></a><a name="p121612050181014"></a>Runs other engines and specifies binary files (such as d8, hermes, jsc, and qjs).</p>
1984514f5e3Sopenharmony_ci</td>
1994514f5e3Sopenharmony_ci</tr>
2004514f5e3Sopenharmony_ci<tr id="row1325585931120"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p112561595112"><a name="p112561595112"></a><a name="p112561595112"></a>--babel</p>
2014514f5e3Sopenharmony_ci</td>
2024514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p32561959111112"><a name="p32561959111112"></a><a name="p32561959111112"></a>Specifies whether to use Babel to convert code.</p>
2034514f5e3Sopenharmony_ci</td>
2044514f5e3Sopenharmony_ci</tr>
2054514f5e3Sopenharmony_ci<tr id="row95230818126"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p12523158191210"><a name="p12523158191210"></a><a name="p12523158191210"></a>--timeout  TIMEOUT</p>
2064514f5e3Sopenharmony_ci</td>
2074514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p65233871210"><a name="p65233871210"></a><a name="p65233871210"></a>Specifies the test timeout period in ms.</p>
2084514f5e3Sopenharmony_ci</td>
2094514f5e3Sopenharmony_ci</tr>
2104514f5e3Sopenharmony_ci<tr id="row474911612120"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1274912166123"><a name="p1274912166123"></a><a name="p1274912166123"></a>--threads  THREADS</p>
2114514f5e3Sopenharmony_ci</td>
2124514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p4749121631210"><a name="p4749121631210"></a><a name="p4749121631210"></a>Specifies the number of concurrent threads.</p>
2134514f5e3Sopenharmony_ci</td>
2144514f5e3Sopenharmony_ci</tr>
2154514f5e3Sopenharmony_ci<tr id="row561512363122"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p26152036191218"><a name="p26152036191218"></a><a name="p26152036191218"></a>--hostArgs  HOSTARGS</p>
2164514f5e3Sopenharmony_ci</td>
2174514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p156151636161215"><a name="p156151636161215"></a><a name="p156151636161215"></a>Specifies the command line parameters sent to the eshost.</p>
2184514f5e3Sopenharmony_ci</td>
2194514f5e3Sopenharmony_ci</tr>
2204514f5e3Sopenharmony_ci<tr id="row77091648111210"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p18709164871213"><a name="p18709164871213"></a><a name="p18709164871213"></a>--ark-tool  ARK_TOOL</p>
2214514f5e3Sopenharmony_ci</td>
2224514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p16709194812126"><a name="p16709194812126"></a><a name="p16709194812126"></a>Specifies the binary tool of ARK runtime.</p>
2234514f5e3Sopenharmony_ci</td>
2244514f5e3Sopenharmony_ci</tr>
2254514f5e3Sopenharmony_ci<tr id="row3767145231210"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p3767155201216"><a name="p3767155201216"></a><a name="p3767155201216"></a>--ark-frontend-tool  ARK_FRONTEND_TOOL</p>
2264514f5e3Sopenharmony_ci</td>
2274514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p4767195251220"><a name="p4767195251220"></a><a name="p4767195251220"></a>Specifies the ARK front-end conversion tool.</p>
2284514f5e3Sopenharmony_ci</td>
2294514f5e3Sopenharmony_ci</tr>
2304514f5e3Sopenharmony_ci<tr id="row753817001311"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p553870111318"><a name="p553870111318"></a><a name="p553870111318"></a>--libs-dir  LIBS_DIR</p>
2314514f5e3Sopenharmony_ci</td>
2324514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p35384041313"><a name="p35384041313"></a><a name="p35384041313"></a>Specifies the set of .so dependency file paths, separated by colons (:).</p>
2334514f5e3Sopenharmony_ci</td>
2344514f5e3Sopenharmony_ci</tr>
2354514f5e3Sopenharmony_ci<tr id="row08504716135"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p11851747161314"><a name="p11851747161314"></a><a name="p11851747161314"></a>--ark-frontend  [{ts2panda, es2panda}]</p>
2364514f5e3Sopenharmony_ci</td>
2374514f5e3Sopenharmony_ci<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1085144712137"><a name="p1085144712137"></a><a name="p1085144712137"></a>Specifies the frontend.</p>
2384514f5e3Sopenharmony_ci</td>
2394514f5e3Sopenharmony_ci</tr>
2404514f5e3Sopenharmony_ci</tbody>
2414514f5e3Sopenharmony_ci</table>
2424514f5e3Sopenharmony_ci
2434514f5e3Sopenharmony_ci### Example
2444514f5e3Sopenharmony_ci
2454514f5e3Sopenharmony_ci-   Run test case ES51.
2464514f5e3Sopenharmony_ci
2474514f5e3Sopenharmony_ci    ```
2484514f5e3Sopenharmony_ci     python3 test262/run_test262.py --es51
2494514f5e3Sopenharmony_ci    ```
2504514f5e3Sopenharmony_ci
2514514f5e3Sopenharmony_ci-   Run test case ES2015 only.
2524514f5e3Sopenharmony_ci
2534514f5e3Sopenharmony_ci    ```
2544514f5e3Sopenharmony_ci     python3 test262/run_test262.py --es2015
2554514f5e3Sopenharmony_ci    ```
2564514f5e3Sopenharmony_ci
2574514f5e3Sopenharmony_ci-   Run test case ES2021 only.
2584514f5e3Sopenharmony_ci
2594514f5e3Sopenharmony_ci    ```
2604514f5e3Sopenharmony_ci     python3 test262/run_test262.py --es2021 only
2614514f5e3Sopenharmony_ci  
2624514f5e3Sopenharmony_ci-   Run all ES2015 and ES51 and ES2021 test cases.
2634514f5e3Sopenharmony_ci
2644514f5e3Sopenharmony_ci    ```
2654514f5e3Sopenharmony_ci     python3 test262/run_test262.py --es2021 all
2664514f5e3Sopenharmony_ci    ```
2674514f5e3Sopenharmony_ci
2684514f5e3Sopenharmony_ci-   Run a test case.
2694514f5e3Sopenharmony_ci
2704514f5e3Sopenharmony_ci    ```
2714514f5e3Sopenharmony_ci     python3 test262/run_test262.py --file test262/data/test_es5/language/statements/break/12.8-1.js
2724514f5e3Sopenharmony_ci    ```
2734514f5e3Sopenharmony_ci
2744514f5e3Sopenharmony_ci-   Run all test cases in a directory.
2754514f5e3Sopenharmony_ci
2764514f5e3Sopenharmony_ci    ```
2774514f5e3Sopenharmony_ci     python3 test262/run_test262.py --dir test262/data/test_es5/language/statements
2784514f5e3Sopenharmony_ci    ```
2794514f5e3Sopenharmony_ci
2804514f5e3Sopenharmony_ci
2814514f5e3Sopenharmony_ci-   Use Babel to convert a test case into ES5 and then run the test case.
2824514f5e3Sopenharmony_ci
2834514f5e3Sopenharmony_ci    ```
2844514f5e3Sopenharmony_ci     python3 test262/run_test262.py  --babel --file test262/data/test_es5/language/statements/break/12.8-1.js
2854514f5e3Sopenharmony_ci    ```
2864514f5e3Sopenharmony_ci
2874514f5e3Sopenharmony_ci
2884514f5e3Sopenharmony_ci### Test Output
2894514f5e3Sopenharmony_ci
2904514f5e3Sopenharmony_ciThe results of all Test262 test cases are available in the  **_Project root directory_/arkcompiler/ets_frontend/out**. The test result in the shell is as follows:
2914514f5e3Sopenharmony_ci
2924514f5e3Sopenharmony_ci```
2934514f5e3Sopenharmony_ci$python3 test262/run_test262.py --file test262/data/test_es2015/built-ins/Array/15.4.5.1-5-1.js
2944514f5e3Sopenharmony_ci
2954514f5e3Sopenharmony_ciWait a moment..........
2964514f5e3Sopenharmony_ciTest command:
2974514f5e3Sopenharmony_cinode
2984514f5e3Sopenharmony_ci        test262/harness/bin/run.js
2994514f5e3Sopenharmony_ci        --hostType=panda
3004514f5e3Sopenharmony_ci        --hostPath=python3
3014514f5e3Sopenharmony_ci        --hostArgs='-B test262/run_sunspider.py --ark-tool=/your_code_path/out/rk3568/clang_x64/arkcompiler/ets_runtime/ark_js_vm --ark-frontend-tool=/your_code_path/out/rk3568/clang_x64/arkcompiler/ets_frontend/build/src/index.js --libs-dir=/your_code_path/out/rk3568/clang_x64/global/i18n:/your_code_path/prebuilts/clang/ohos/linux-x86_64/llvm/lib:/your_code_path/out/rk3568/clang_x64/thirdparty/zlib/ --ark-frontend=ts2panda'
3024514f5e3Sopenharmony_ci        --threads=15
3034514f5e3Sopenharmony_ci        --mode=only strict mode
3044514f5e3Sopenharmony_ci        --timeout=60000
3054514f5e3Sopenharmony_ci        --tempDir=build/test262
3064514f5e3Sopenharmony_ci        --test262Dir=test262/data
3074514f5e3Sopenharmony_ci        --saveCompiledTests
3084514f5e3Sopenharmony_ci        test262/data/test_es5/language/statements/break/12.8-1.js
3094514f5e3Sopenharmony_ci
3104514f5e3Sopenharmony_ciPASS test262/data/test_es2015/built-ins/Array/15.4.5.1-5-1.js (strict mode)
3114514f5e3Sopenharmony_ciRan 1 tests
3124514f5e3Sopenharmony_ci1 passed
3134514f5e3Sopenharmony_ci0 failed
3144514f5e3Sopenharmony_ciused time is: 0:01:04.439642
3154514f5e3Sopenharmony_ci```
3164514f5e3Sopenharmony_ci
317