run_tests 718 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env vpython3
  2. # Copyright 2013 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """This script runs unit tests of the code in the perf directory.
  6. This script DOES NOT run benchmarks. run_benchmark does that.
  7. """
  8. import os
  9. import subprocess
  10. import sys
  11. from chrome_telemetry_build import chromium_config
  12. from core import path_util
  13. path_util.AddTelemetryToPath()
  14. from telemetry.testing import unittest_runner
  15. def main():
  16. project_config = chromium_config.ChromiumConfig(
  17. top_level_dir=path_util.GetPerfDir())
  18. return unittest_runner.Run(project_config)
  19. if __name__ == '__main__':
  20. sys.exit(main())