Changeset View
Changeset View
Standalone View
Standalone View
test/fuzz/test_runner.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2019 The Bitcoin Core developers | # Copyright (c) 2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Run fuzz test targets. | """Run fuzz test targets. | ||||
""" | """ | ||||
import argparse | import argparse | ||||
from concurrent.futures import ThreadPoolExecutor, as_completed | |||||
import configparser | import configparser | ||||
import logging | import logging | ||||
import os | import os | ||||
import subprocess | import subprocess | ||||
import sys | import sys | ||||
from concurrent.futures import ThreadPoolExecutor, as_completed | |||||
def main(): | def main(): | ||||
parser = argparse.ArgumentParser( | parser = argparse.ArgumentParser( | ||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter, | formatter_class=argparse.ArgumentDefaultsHelpFormatter, | ||||
description='''Run the fuzz targets with all inputs from the seed_dir once.''', | description='''Run the fuzz targets with all inputs from the seed_dir once.''', | ||||
) | ) | ||||
parser.add_argument( | parser.add_argument( | ||||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |