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

Issue 205383006: Add tests for makefile_writer.py. (Closed)

Created:
6 years, 9 months ago by scroggo
Modified:
6 years, 9 months ago
Reviewers:
epoger
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add tests for makefile_writer.py. Many of the tests performed are comparison tests, where we call the functions using dummy values and then compare to expectations (also newly added). Add a way to rebaseline the test for write_android_mk, which is likely to change in the future. BUG=skia:1975 Committed: http://code.google.com/p/skia/source/detail?r=13957

Patch Set 1 #

Total comments: 8

Patch Set 2 : Clean up after myself. #

Patch Set 3 : More cleaning up after myself. #

Patch Set 4 : Check test results to return non zero on failure. #

Messages

Total messages: 8 (0 generated)
scroggo
Finally, some tests, as requested.
6 years, 9 months ago (2014-03-25 21:42:48 UTC) #1
epoger
Looks pretty good, thanks for adding it! A few comments/questions. https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py File platform_tools/android/tests/makefile_writer_tests.py (right): https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py#newcode119 ...
6 years, 9 months ago (2014-03-26 14:29:47 UTC) #2
scroggo
https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py File platform_tools/android/tests/makefile_writer_tests.py (right): https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py#newcode119 platform_tools/android/tests/makefile_writer_tests.py:119: filename = tempfile.mkstemp()[1] On 2014/03/26 14:29:48, epoger wrote: > ...
6 years, 9 months ago (2014-03-26 16:24:00 UTC) #3
epoger
LGTM at patchset 3, whether or not you do something about this one remaining issue ...
6 years, 9 months ago (2014-03-26 17:22:46 UTC) #4
scroggo
https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py File platform_tools/android/tests/makefile_writer_tests.py (right): https://codereview.chromium.org/205383006/diff/1/platform_tools/android/tests/makefile_writer_tests.py#newcode177 platform_tools/android/tests/makefile_writer_tests.py:177: unittest.TextTestRunner(verbosity=2).run(suite) On 2014/03/26 17:22:46, epoger wrote: > On 2014/03/26 ...
6 years, 9 months ago (2014-03-26 19:18:11 UTC) #5
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 9 months ago (2014-03-26 19:18:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/205383006/90001
6 years, 9 months ago (2014-03-26 19:18:21 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 19:46:57 UTC) #8
Message was sent while issue was closed.
Change committed as 13957

Powered by Google App Engine
This is Rietveld 408576698