mozbuild.test.controller package

Submodules

mozbuild.test.controller.test_ccachestats module

class mozbuild.test.controller.test_ccachestats.TestCcacheStats(methodName='runTest')

Bases: unittest.case.TestCase

STAT0 = u'\n cache directory /home/tlin/.ccache\n cache hit (direct) 0\n cache hit (preprocessed) 0\n cache miss 0\n files in cache 0\n cache size 0 Kbytes\n max cache size 16.0 Gbytes'
STAT1 = u'\n cache directory /home/tlin/.ccache\n cache hit (direct) 100\n cache hit (preprocessed) 200\n cache miss 2500\n called for link 180\n called for preprocessing 6\n compile failed 11\n preprocessor error 3\n bad compiler arguments 6\n unsupported source language 9\n autoconf compile/link 60\n unsupported compiler option 2\n no input file 21\n files in cache 7344\n cache size 1.9 Gbytes\n max cache size 16.0 Gbytes'
STAT2 = u'\n cache directory /home/tlin/.ccache\n cache hit (direct) 1900\n cache hit (preprocessed) 300\n cache miss 2600\n called for link 361\n called for preprocessing 12\n compile failed 22\n preprocessor error 6\n bad compiler arguments 12\n unsupported source language 18\n autoconf compile/link 120\n unsupported compiler option 4\n no input file 48\n files in cache 7392\n cache size 2.0 Gbytes\n max cache size 16.0 Gbytes'
STAT3 = u'\n cache directory /Users/tlin/.ccache\n primary config /Users/tlin/.ccache/ccache.conf\n secondary config (readonly) /usr/local/Cellar/ccache/3.2/etc/ccache.conf\n cache hit (direct) 12004\n cache hit (preprocessed) 1786\n cache miss 26348\n called for link 2338\n called for preprocessing 6313\n compile failed 399\n preprocessor error 390\n bad compiler arguments 86\n unsupported source language 66\n autoconf compile/link 2439\n unsupported compiler option 187\n no input file 1068\n files in cache 18044\n cache size 7.5 GB\n max cache size 8.6 GB\n '
STAT4 = u'\n cache directory /Users/tlin/.ccache\n primary config /Users/tlin/.ccache/ccache.conf\n secondary config (readonly) /usr/local/Cellar/ccache/3.2.1/etc/ccache.conf\n cache hit (direct) 21039\n cache hit (preprocessed) 2315\n cache miss 39370\n called for link 3651\n called for preprocessing 6693\n compile failed 723\n ccache internal error 1\n preprocessor error 588\n bad compiler arguments 128\n unsupported source language 99\n autoconf compile/link 3669\n unsupported compiler option 187\n no input file 1711\n files in cache 18313\n cache size 6.3 GB\n max cache size 6.0 GB\n '
STAT5 = u'\n cache directory /Users/tlin/.ccache\n primary config /Users/tlin/.ccache/ccache.conf\n secondary config (readonly) /usr/local/Cellar/ccache/3.2.1/etc/ccache.conf\n cache hit (direct) 21039\n cache hit (preprocessed) 2315\n cache miss 39372\n called for link 3653\n called for preprocessing 6693\n compile failed 723\n ccache internal error 1\n preprocessor error 588\n bad compiler arguments 128\n unsupported source language 99\n autoconf compile/link 3669\n unsupported compiler option 187\n no input file 1711\n files in cache 17411\n cache size 6.0 GB\n max cache size 6.0 GB\n '
STAT6 = u"\n cache directory /Users/tlin/.ccache\n primary config /Users/tlin/.ccache/ccache.conf\n secondary config (readonly) /usr/local/Cellar/ccache/3.3.2/etc/ccache.conf\n cache hit (direct) 319287\n cache hit (preprocessed) 125987\n cache miss 749959\n cache hit rate 37.25 %\n called for link 87978\n called for preprocessing 418591\n multiple source files 1861\n compiler produced no output 122\n compiler produced empty output 174\n compile failed 14330\n ccache internal error 1\n preprocessor error 9459\n can't use precompiled header 4\n bad compiler arguments 2077\n unsupported source language 18195\n autoconf compile/link 51485\n unsupported compiler option 322\n no input file 309538\n cleanups performed 1\n files in cache 17358\n cache size 15.4 GB\n max cache size 17.2 GB\n "
STAT7 = u'\n cache directory /Users/tlin/.ccache\n primary config /Users/tlin/.ccache/ccache.conf\n secondary config (readonly) /usr/local/Cellar/ccache/3.3.3/etc/ccache.conf\n cache hit (direct) 27035\n cache hit (preprocessed) 13939\n cache miss 62630\n cache hit rate 39.55 %\n called for link 1280\n called for preprocessing 736\n compile failed 550\n preprocessor error 638\n bad compiler arguments 20\n autoconf compile/link 1751\n unsupported code directive 2\n no input file 2378\n cleanups performed 1792\n files in cache 3479\n cache size 4.4 GB\n max cache size 5.0 GB\n '
STAT8 = u'\n cache directory /home/psimonyi/.ccache\n primary config /home/psimonyi/.ccache/ccache.conf\n secondary config (readonly) /etc/ccache.conf\n stats zero time Mon 15 Oct 2018 05:01:16 AM UTC\n cache hit (direct) 571\n cache hit (preprocessed) 1203\n cache miss 11747\n cache hit rate 13.12 %\n called for link 623\n called for preprocessing 7194\n compile failed 32\n preprocessor error 137\n bad compiler arguments 4\n autoconf compile/link 348\n no input file 162\n cleanups performed 77\n files in cache 13464\n cache size 6.2 GB\n max cache size 7.0 GB\n '
STAT_GARBAGE = u'A garbage line which should be failed to parse'
test_cache_size_shrinking()
test_hit_rate_of_diff_stats()
test_parse_garbage_stats_message()
test_parse_zero_stats_message()
test_stats_contains_data()
test_stats_version32()
test_stats_version33()
test_stats_version34()

mozbuild.test.controller.test_clobber module

class mozbuild.test.controller.test_clobber.TestClobberer(methodName='runTest')

Bases: unittest.case.TestCase

get_tempdir()
get_topsrcdir()
setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_cwd_is_topobjdir()

If cwd is topobjdir, we can still clobber.

test_cwd_under_topobjdir()

If cwd is under topobjdir, we can’t clobber.

test_mozconfig_opt_in()

Auto clobber iff AUTOCLOBBER is in the environment.

test_no_objdir()

If topobjdir does not exist, no clobber is needed.

test_objdir_clobber_newer()

If CLOBBER in topobjdir is newer, do nothing.

test_objdir_clobber_older()

If CLOBBER in topobjdir is older, we clobber.

test_objdir_is_srcdir()

If topobjdir is the topsrcdir, refuse to clobber.

test_objdir_no_clobber_file()

If CLOBBER does not exist in topobjdir, treat as empty.

Module contents