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

Side by Side Diff: src/platform/update_engine/gen_coverage_html.sh

Issue 1599029: update engine: 32- and 64-bit compile (Closed)
Patch Set: int32->int32_t, PRIi64, 80 cols for review Created 10 years, 8 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 set -ex 7 set -ex
8 8
9 scons debug=1 -j $(cat /proc/cpuinfo |grep '^processor' | wc -l) 9 scons debug=1 -j $(cat /proc/cpuinfo |grep '^processor' | wc -l)
10 lcov -d . --zerocounters 10 lcov -d . --zerocounters
11 ./update_engine_unittests --gtest_filter='-*.RunAsRoot*:*.Fakeroot*' 11 ./update_engine_unittests --gtest_filter='-*.RunAsRoot*:*.Fakeroot*'
12 fakeroot ./update_engine_unittests --gtest_filter='*.Fakeroot*' 12 fakeroot ./update_engine_unittests --gtest_filter='*.Fakeroot*'
13 sudo ./update_engine_unittests --gtest_filter='*.RunAsRoot*' 13 sudo ./update_engine_unittests --gtest_filter='*.RunAsRoot*'
14 #./update_engine_unittests --gtest_filter='ZipTest*.*'
Daniel Erat 2010/04/15 00:55:47 did you mean to leave this in? it's commented out
14 lcov --directory . --capture --output-file app.info 15 lcov --directory . --capture --output-file app.info
15 16
16 # some versions of genhtml support the --no-function-coverage argument, 17 # some versions of genhtml support the --no-function-coverage argument,
17 # which we want. The problem w/ function coverage is that every template 18 # which we want. The problem w/ function coverage is that every template
18 # instantiation of a method counts as a different method, so if we 19 # instantiation of a method counts as a different method, so if we
19 # instantiate a method twice, once for testing and once for prod, the method 20 # instantiate a method twice, once for testing and once for prod, the method
20 # is tested, but it shows only 50% function coverage b/c it thinks we didn't 21 # is tested, but it shows only 50% function coverage b/c it thinks we didn't
21 # test the prod version. 22 # test the prod version.
22 genhtml --no-function-coverage -o html ./app.info || genhtml -o html ./app.info 23 genhtml --no-function-coverage -o html ./app.info || genhtml -o html ./app.info
23 ./local_coverage_rate.sh 24 ./local_coverage_rate.sh
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698