• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# How to download
2
3```sh
4repo init -u https://gitee.com/ark-standalone-build/manifest.git -b master
5repo sync -c -j8
6repo forall -c 'git lfs pull'
7./prebuilts_download.sh
8```
9
10# How to build and test
11
12Build AbcKit:
13
14```sh
15# Debug mode
16./ark.py x64.debug abckit_packages --gn-args="is_standard_system=true abckit_enable=true"
17# Release mode
18./ark.py x64.release abckit_packages --gn-args="is_standard_system=true abckit_enable=true"
19```
20
21Run unit tests:
22
23```sh
24# Debug mode
25./ark.py x64.debug abckit_tests --gn-args="is_standard_system=true abckit_enable=true"
26# Release mode
27./ark.py x64.release abckit_tests --gn-args="is_standard_system=true abckit_enable=true"
28```
29
30Run unit tests with sanitizers:
31
32```sh
33# Debug mode
34./ark.py x64.debug abckit_tests --gn-args="is_standard_system=true abckit_enable=true libabckit_with_sanitizers=true"
35# Release mode
36./ark.py x64.release abckit_tests --gn-args="is_standard_system=true abckit_enable=true libabckit_with_sanitizers=true"
37```
38
39# Full tests (`self-check.sh`)
40
41Remove out, build AbcKit, execute format, tidy, unit-tests and stress tests in debug and release modes:
42
43```sh
44./arkcompiler/runtime_core/libabckit/scripts/self-check.sh --dir=/path/to/standalone/root
45```
46
47# Code coverage (`self-check.sh`)
48
49Remove out, build AbcKit, execute unit-tests and stress tests in debug mode and collect code coverage:
50
51```sh
52./arkcompiler/runtime_core/libabckit/scripts/self-check.sh --dir=/path/to/standalone/root --coverage
53```
54