Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: site/dev/testing/tests.md

Issue 1138353002: Documentation: open GM in SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Writing Unit and Rendering Tests 1 Writing Unit and Rendering Tests
2 ================================ 2 ================================
3 3
4 Writing a Unit Test 4 Writing a Unit Test
5 ------------------- 5 -------------------
6 6
7 1. Add a file `tests/NewUnitTest.cpp`: 7 1. Add a file `tests/NewUnitTest.cpp`:
8 8
9 <!--?prettify lang=cc?--> 9 <!--?prettify lang=cc?-->
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 2. Add a line to `gyp/gmslides.gypi`: 57 2. Add a line to `gyp/gmslides.gypi`:
58 58
59 '../gm/newgmtest.cpp', 59 '../gm/newgmtest.cpp',
60 60
61 3. Recompile and run test: 61 3. Recompile and run test:
62 62
63 ./gyp_skia 63 ./gyp_skia
64 ninja -C out/Debug dm 64 ninja -C out/Debug dm
65 out/Debug/dm --match newgmtest 65 out/Debug/dm --match newgmtest
66
67 4. Run the GM inside SampleApp:
68
69 ./gyp_skia
70 ninja -C out/Debug SampleApp
71 out/Debug/SampleApp --slide GM:newgmtest
72
73 On MacOS, try this:
74
75 out/Debug/SampleApp.app/Contents/MacOS/SampleApp --slide GM:newgmtest
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698