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 '
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()

mozbuild.test.controller.test_clobber module

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

Bases: unittest.case.TestCase

get_tempdir()
get_topsrcdir()
setUp()
tearDown()
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