# Path: afl_utils/afl_vcrash.py
# def show_info():
# def verify_samples(num_threads, samples, target_cmd, timeout_secs=60):
# def remove_samples(crash_samples, quiet=True):
# def build_target_cmd(target_cmdline):
# def main(argv):


from afl_utils import afl_vcrash
import os
import unittest



class AflVCrashTestCase(unittest.TestCase):
    def setUp(self):
        # Use to set up test environment prior to test case
        # invocation
        pass

    def tearDown(self):
        # Use for clean up after tests have run
        if os.path.exists('/tmp/afl_multicore.PGID.unittest_sess_01'):
            os.remove('/tmp/afl_multicore.PGID.unittest_sess_01')

        if os.path.exists('testdata/invalid'):
            os.remove('testdata/invalid')

        if os.path.exists('testdata/test_coll/invalid'):
            os.remove('testdata/test_coll/invalid')

        if os.path.exists('testdata/test_coll'):
            os.rmdir('testdata/test_coll')

        if os.path.exists('testdata/vcrash_filelist'):
            os.remove('testdata/vcrash_filelist')

    def test_show_info(self):

# Path: afl_utils/afl_vcrash.py
# def show_info():
# def verify_samples(num_threads, samples, target_cmd, timeout_secs=60):
# def remove_samples(crash_samples, quiet=True):
# def build_target_cmd(target_cmdline):
# def main(argv):


# Path: tests/test_afl_vcrash.py
from afl_utils import afl_vcrash
import os
import unittest




class AflVCrashTestCase(unittest.TestCase):
    def setUp(self):
        # Use to set up test environment prior to test case
        # invocation
        pass

    def tearDown(self):
        # Use for clean up after tests have run
        if os.path.exists('/tmp/afl_multicore.PGID.unittest_sess_01'):
            os.remove('/tmp/afl_multicore.PGID.unittest_sess_01')

        if os.path.exists('testdata/invalid'):
            os.remove('testdata/invalid')

        if os.path.exists('testdata/test_coll/invalid'):
            os.remove('testdata/test_coll/invalid')

        if os.path.exists('testdata/test_coll'):
            os.rmdir('testdata/test_coll')

        if os.path.exists('testdata/vcrash_filelist'):
            os.remove('testdata/vcrash_filelist')

    def test_show_info(self):

        self.assertIsNone(afl_vcrash.show_info())