def testNumFuzzer(self): sys_args = ['--command-prefix', sys.executable, '--outdir', 'out/build'] with temp_base() as basedir: with capture() as (stdout, stderr): code = num_fuzzer.NumFuzzer(basedir=basedir).execute(sys_args) result = Result(stdout.getvalue(), stderr.getvalue(), code) self.assertEqual(0, result.returncode, result)
#!/usr/bin/env python # # Copyright 2018 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import import sys from testrunner import num_fuzzer if __name__ == "__main__": sys.exit(num_fuzzer.NumFuzzer().execute())