blob: 1730a6401254096cb5d374cae1a2104c2c477fe7 [file] [log] [blame] [view]
Yi Jin0a3406f2017-06-22 19:23:11 -07001# incidentd
2
3## How to build, deploy, unit test
4
5For the first time, build the test and create an empty directly on device:
6
7```
Yi Jin5e4ce2c2017-11-13 21:06:26 -08008root$ make -j incidentd_test && adb shell mkdir /data/nativetest/incidentd_test
Yi Jin0a3406f2017-06-22 19:23:11 -07009```
10
Yi Jin5e4ce2c2017-11-13 21:06:26 -080011Run the test on a device manually
Yi Jin0a3406f2017-06-22 19:23:11 -070012
13```
14root$ mmm -j frameworks/base/cmds/incidentd && \
Yi Jin4bab3a12018-01-10 16:50:59 -080015adb push $OUT/data/nativetest/incidentd_test/* /data/nativetest/ && \
16adb shell /data/nativetest/incidentd_test 2>/dev/null
Yi Jin0a3406f2017-06-22 19:23:11 -070017```
Yi Jin5e4ce2c2017-11-13 21:06:26 -080018
19Run the test via AndroidTest.xml
20
21```
22root$ atest incidentd_test
Yi Jinb592e3b2018-02-01 15:17:04 -080023```
24
25Use clang-format to style the file
26
27clang-format -style=file -i <file list>