diff options
author | Josh Haberman <jhaberman@gmail.com> | 2018-11-03 19:37:45 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2018-11-03 19:37:45 -0700 |
commit | 9abff2b95f2f8650bf0256988233836430b4eddc (patch) | |
tree | 87682e9188b59270c3e4d79daf1713825707656c /staleness_test.py | |
parent | a7ebe54eb1cc09cc50cf97af8436835ead4cbbee (diff) |
Added missing files from Bazel build.
Diffstat (limited to 'staleness_test.py')
-rw-r--r-- | staleness_test.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/staleness_test.py b/staleness_test.py new file mode 100644 index 0000000..43176cf --- /dev/null +++ b/staleness_test.py @@ -0,0 +1,30 @@ +"""The py_test() script for generated_file_staleness_test() rules. + +Note that this file is preprocessed! The INSERT_<...> text below is replaced +with the actual list of files before we actually run the script. +""" + +from __future__ import absolute_import + +import staleness_test_lib +import unittest +import sys + +file_list = """ + INSERT_FILE_LIST_HERE +""".split() + +config = staleness_test_lib.Config(file_list) + + +class TestFilesMatch(unittest.TestCase): + + def testFilesMatch(self): + errors = staleness_test_lib.CheckFilesMatch(config) + self.assertFalse(errors, errors) + + +if len(sys.argv) > 1 and sys.argv[1] == "--fix": + staleness_test_lib.FixFiles(config) +else: + unittest.main() |