# Path: afl_utils/afl_minimize.py
# def show_info():
# def invoke_cmin(input_dir, output_dir, target_cmd, mem_limit=None, timeout=None, qemu=False):
# def invoke_tmin(input_files, output_dir, target_cmd, num_threads=1, mem_limit=None, timeout=None, qemu=False):
# def invoke_dryrun(input_files, crash_dir, timeout_dir, target_cmd, timeout=60, num_threads=1):
# def afl_reseed(sync_dir, coll_dir):
# def main(argv):


from afl_utils import afl_minimize
import os
import shutil
import subprocess
import unittest
            shutil.rmtree(os.path.abspath('%s.tmin' % collection_dir))
        if os.path.exists(os.path.abspath('%s.crashes' % collection_dir)):
            shutil.rmtree(os.path.abspath('%s.crashes' % collection_dir))
        if os.path.exists(os.path.abspath('%s.timeouts' % collection_dir)):
            shutil.rmtree(os.path.abspath('%s.timeouts' % collection_dir))
        if os.path.exists(os.path.abspath('testdata/crash_process/bin')):
            shutil.rmtree(os.path.abspath('testdata/crash_process/bin'))
        if os.path.exists(collection_dir):
            shutil.rmtree(collection_dir)
        if os.path.exists(collection_new):
            shutil.rmtree(collection_new)
        if os.path.exists(collection_new_cmin):
            shutil.rmtree(collection_new_cmin)
        if os.path.exists(collection_new_tmin):
            shutil.rmtree(collection_new_tmin)
        if os.path.exists(collection_new_cmin_tmin):
            shutil.rmtree(collection_new_cmin_tmin)

    def del_queue_dirs(self, base_dir):
        ls = os.listdir(base_dir)

        queue_dirs = [q for q in ls if 'queue' in q]

        for qdir in queue_dirs:
            try:
                os.rmdir(os.path.join(base_dir, qdir))
            except OSError:
                shutil.rmtree(os.path.join(base_dir, qdir))

    def test_show_info(self):

# Path: afl_utils/afl_minimize.py
# def show_info():
# def invoke_cmin(input_dir, output_dir, target_cmd, mem_limit=None, timeout=None, qemu=False):
# def invoke_tmin(input_files, output_dir, target_cmd, num_threads=1, mem_limit=None, timeout=None, qemu=False):
# def invoke_dryrun(input_files, crash_dir, timeout_dir, target_cmd, timeout=60, num_threads=1):
# def afl_reseed(sync_dir, coll_dir):
# def main(argv):


# Path: tests/test_afl_minimize.py
from afl_utils import afl_minimize
import os
import shutil
import subprocess
import unittest

            shutil.rmtree(os.path.abspath('%s.tmin' % collection_dir))
        if os.path.exists(os.path.abspath('%s.crashes' % collection_dir)):
            shutil.rmtree(os.path.abspath('%s.crashes' % collection_dir))
        if os.path.exists(os.path.abspath('%s.timeouts' % collection_dir)):
            shutil.rmtree(os.path.abspath('%s.timeouts' % collection_dir))
        if os.path.exists(os.path.abspath('testdata/crash_process/bin')):
            shutil.rmtree(os.path.abspath('testdata/crash_process/bin'))
        if os.path.exists(collection_dir):
            shutil.rmtree(collection_dir)
        if os.path.exists(collection_new):
            shutil.rmtree(collection_new)
        if os.path.exists(collection_new_cmin):
            shutil.rmtree(collection_new_cmin)
        if os.path.exists(collection_new_tmin):
            shutil.rmtree(collection_new_tmin)
        if os.path.exists(collection_new_cmin_tmin):
            shutil.rmtree(collection_new_cmin_tmin)

    def del_queue_dirs(self, base_dir):
        ls = os.listdir(base_dir)

        queue_dirs = [q for q in ls if 'queue' in q]

        for qdir in queue_dirs:
            try:
                os.rmdir(os.path.join(base_dir, qdir))
            except OSError:
                shutil.rmtree(os.path.join(base_dir, qdir))

    def test_show_info(self):

        self.assertIsNone(afl_minimize.show_info())