def main(): options = parse_args() if not build_utils.run_cmake(force_clean=options.clobber, log_output=True, debug_build=options.debug): sys.exit(1) print("Building all targets with Ninja ...\n") if not build_utils.run_ninja(["all"], fail_fast=True): sys.exit(1) print("Pytype built successfully!\n")
def main(): opts = parse_args() targets = opts.targets or ["test_all"] if not build_utils.run_cmake(log_output=True, debug_build=opts.debug): sys.exit(1) fail_collector = build_utils.FailCollector(opts.verbose) print("Running tests (build steps will be executed as required) ...\n") if not build_utils.run_ninja(targets, fail_collector, opts.fail_fast): fail_collector.print_report() sys.exit(1) print("!!! All tests passed !!!\n" "Some tests might not have been run because they were already passing.")
def main(): opts = parse_args() modules = opts.modules or ["test_all"] if not build_utils.run_cmake(log_output=True, debug_build=opts.debug): sys.exit(1) fail_collector = build_utils.FailCollector() # PyType's target names use the dotted name convention. So, the fully # qualified test module names are actually ninja target names. print("Running tests (build steps will be executed as required) ...\n") if not build_utils.run_ninja(modules, fail_collector, opts.fail_fast): fail_collector.print_report() sys.exit(1) print( "!!! All tests passed !!!\n" "Some tests might not have been run because they were already passing." )