OLD | NEW |
1 Hacking on Sky | 1 Hacking on Sky |
2 ============== | 2 ============== |
3 | 3 |
4 Building | 4 Building |
5 -------- | 5 -------- |
6 | 6 |
7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo
jo) | 7 * Follow the setup & build instructions for [Mojo](https://github.com/domokit/mo
jo) |
8 | 8 |
9 Running applications | 9 Running applications |
10 -------------------- | 10 -------------------- |
11 | 11 |
12 * ``./sky/tools/skydb start out/Debug [url]`` | 12 * ``./sky/tools/mojodb start out/Debug [url]`` |
13 | 13 |
14 `skydb` has numerous commands, visible via `skydb help`. Common ones includ
e: | 14 `mojodb` has numerous commands, visible via `mojodb help`. Common ones incl
ude: |
15 * `skybd start` BUILD_DIR [url] | 15 * `mojodb start` BUILD_DIR [url] |
16 * `skydb load` [url] | 16 * `mojodb load` [url] |
17 * `skydb stop` | 17 * `mojodb stop` |
18 * `skydb start_tracing` # Starts recoding a performance trace (use stop_trac
ing to stop) | 18 * `mojodb start_tracing` # Starts recoding a performance trace (use stop_tra
cing to stop) |
19 * `skydb print_crash` # Symbolicate the most recent crash from android. | 19 * `mojodb print_crash` # Symbolicate the most recent crash from android. |
20 | 20 |
21 Once `skydb start` is issued, all subsequent commands will be sent to | 21 Once `mojodb start` is issued, all subsequent commands will be sent to |
22 the running mojo_shell instance (even on an attached android device). | 22 the running mojo_shell instance (even on an attached android device). |
23 `skydb start` reads gn args from the passed build directory to | 23 `mojodb start` reads gn args from the passed build directory to |
24 determine whether its using android, for example. | 24 determine whether its using android, for example. |
25 | 25 |
26 * ``./sky/tools/test_sky --debug`` | 26 * ``./sky/tools/test_sky --debug`` |
27 * This runs the tests against ``//out/Debug``. If you want to run against | 27 * This runs the tests against ``//out/Debug``. If you want to run against |
28 ``//out/Release``, omit the ``--debug`` flag. | 28 ``//out/Release``, omit the ``--debug`` flag. |
29 | 29 |
30 Running tests manually | 30 Running tests manually |
31 ---------------------- | 31 ---------------------- |
32 | 32 |
33 * ``sky/tools/skygo/linux64/sky_server -t Debug . 8000`` | 33 * ``sky/tools/skygo/linux64/sky_server -t Debug . 8000`` |
(...skipping 27 matching lines...) Expand all Loading... |
61 ```bash | 61 ```bash |
62 $ sha1sum ../out/Debug/layout-test-results/framework/flights-app-pixels-actual.p
ng | 62 $ sha1sum ../out/Debug/layout-test-results/framework/flights-app-pixels-actual.p
ng |
63 db0508cdfe69e996a93464050dc383f6480f1283 ../out/Debug/layout-test-results/frame
work/flights-app-pixels-actual.png | 63 db0508cdfe69e996a93464050dc383f6480f1283 ../out/Debug/layout-test-results/frame
work/flights-app-pixels-actual.png |
64 $ gsutil.py cp ../out/Debug/layout-test-results/framework/flights-app-pixels-act
ual.png gs://mojo/sky-pngs/db0508cdfe69e996a93464050dc383f6480f1283 | 64 $ gsutil.py cp ../out/Debug/layout-test-results/framework/flights-app-pixels-act
ual.png gs://mojo/sky-pngs/db0508cdfe69e996a93464050dc383f6480f1283 |
65 ``` | 65 ``` |
66 | 66 |
67 Long-term, we should not have these tests at all and should just | 67 Long-term, we should not have these tests at all and should just |
68 dump paint commands. In the short-term, if we find we're doing this | 68 dump paint commands. In the short-term, if we find we're doing this |
69 a lot we should obviously automate this process, e.g. test_sky could | 69 a lot we should obviously automate this process, e.g. test_sky could |
70 do all of this work, including spitting out the correct reference file. | 70 do all of this work, including spitting out the correct reference file. |
OLD | NEW |