#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This script runs tests to verify that the perf tools are working. The actual performance tools are not run by this script. """ import os import sys import perf_tools import telemetry.gtest_testrunner import telemetry.run_tests if __name__ == '__main__': top_level_dir = os.path.abspath( os.path.dirname(__file__)) runner = telemetry.gtest_testrunner.GTestTestRunner( print_result_after_run=False) start_dir = 'perf_tools' ret = telemetry.run_tests.Main( sys.argv[1:], start_dir, top_level_dir, runner) start_dir = 'page_sets' ret = ret + telemetry.run_tests.Main( sys.argv[1:], start_dir, top_level_dir, runner) runner.result.PrintSummary() sys.exit(max(ret + runner.result.num_errors, 255))