Beispiel #1
0
def test_fuzz_mozilla_non262_JSON():
    path_name = os.path.join(constants.seeds_dir, 'mozilla/non262/JSON/')
    multicall.multicall_directories(path_name,
                                    True,
                                    validator=validate_mozilla,
                                    search_root=os.path.join(
                                        constants.seeds_dir, 'mozilla'),
                                    search_libfiles=['shell.js'],
                                    ignored_files=IGNORED_FILES)
Beispiel #2
0
def test_grammarinator():
    path_name = os.path.join(constants.seeds_dir, 'grammarinator')

    # generate grammar deps
    g = Grammarinator(ECMASCRIPT_GRAMMAR, single_grammar=True)
    # generate 50 js files with distincts depths (10, 20, ..., 100)
    for i in range(10, 101, 10):
        g.run_grammarinator(path_name, number_of_testcases=50, depths=i)

    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #3
0
def test_repos():
    path_name = os.path.join(constants.seeds_dir, 'repos')
    projects = [
        os.path.join(path_name, project_name)
        for project_name in os.listdir(path_name)
    ]
    for project_path in projects:
        multicall.multicall_directories(project_path,
                                        False,
                                        validator=validate)
def test_fuzz_mozilla_non262_executioncontexts():
    path_name = os.path.join(constants.seeds_dir,
                             'mozilla/non262/execution-contexts/')
    multicall.multicall_directories(path_name,
                                    False,
                                    validator=validate_mozilla,
                                    search_root=os.path.join(
                                        constants.seeds_dir, 'mozilla'),
                                    search_libfiles=['shell.js'],
                                    ignored_files=IGNORED_FILES)
def test_fuzz_mozilla_non262_lexicalenvironment():
    path_name = os.path.join(constants.seeds_dir,
                             'mozilla/non262/lexical-environment/')
    multicall.multicall_directories(path_name,
                                    False,
                                    validator=validate_mozilla,
                                    search_root=os.path.join(
                                        constants.seeds_dir, 'mozilla'),
                                    search_libfiles=['shell.js'],
                                    ignored_files=IGNORED_FILES)
Beispiel #6
0
def test_grammarinator_without_validation():
    path_name = os.path.join(constants.seeds_dir, 'grammarinator')

    # generate grammar deps
    g = Grammarinator(ECMASCRIPT_GRAMMAR, single_grammar=True)

    # generate 1000 files without validation
    g.run_grammarinator(path_name,
                        number_of_testcases=1000,
                        depths=20,
                        validation=False)

    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #7
0
def test_mozilla_non262():
    path_name = os.path.join(constants.seeds_dir, 'mozilla')
    multicall.multicall_directories(path_name,
                                    validator=validate_mozilla,
                                    shell='shell.js')
Beispiel #8
0
def test_fuzz_duktape_full():
    path_name = os.path.join(constants.seeds_dir, 'DukTape/ecmascript')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #9
0
def test_fuzz_webkit_benchmarks():
    path_name = os.path.join(constants.seeds_dir,
                             'WebKit.JSTests.microbenchmarks')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #10
0
def test_fuzz_duktape_test_arguments_access_inner():
    path_name = os.path.join(constants.seeds_dir, 'DukTape/ecma_copy')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #11
0
def test_fuzz_v8_monorail():
    path_name = os.path.join(v8_path, 'monorail')
    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #12
0
def test_fuzz_webkit():
    path_name = os.path.join(constants.seeds_dir, 'WebKit')
    multicall.multicall_directories(path_name,
                                    fuzzer='radamsa',
                                    validator=validate)
Beispiel #13
0
def test_jerryJS_regression():
    path_name = os.path.join(jerryjs_path, 'regression')
    multicall.multicall_directories(path_name, True, validator=validate,
                                    search_root=search_root,
                                    search_libfiles=search_libfiles,
                                    ignored_files=IGNORED_FILES)
Beispiel #14
0
def test_tinyjs():
    path_name = os.path.join(constants.seeds_dir, 'TinyJS')
    multicall.multicall_directories(path_name,
                                    validator=validate,
                                    fuzzer='quickfuzz',
                                    shell='shell.js')
Beispiel #15
0
def test_hermes():
    path_name = os.path.join(constants.seeds_dir, 'hermes')
    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #16
0
def test_exercise_1():
    path_name = os.path.join(constants.seeds_dir, 'exercise_1')
    multicall.multicall_directories(path_name, False, validator=validate)
def test_test262_language():
    path_name = os.path.join(constants.seeds_dir, 'test262/language')
    multicall.multicall_directories(path_name, False, validator=validate,
                                    search_root=search_root,
                                    search_libfiles=search_libfiles,
                                    ignored_files=IGNORED_FILES, eshost=False)
Beispiel #18
0
def test_fuzz_mozilla():
    path_name = os.path.join(constants.seeds_dir, 'mozilla')
    multicall.multicall_directories(path_name,
                                    fuzzer='quickfuzz',
                                    validator=validate_mozilla,
                                    shell='shell.js')
Beispiel #19
0
def test_jerryjs():
    path_name = os.path.join(jerryjs_path, 'ecma')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #20
0
def test_jerryjs_regression():
    path_name = os.path.join(jerryjs_path, 'regression')
    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #21
0
def test_fuzz_jerry_debugger():
    path_name = os.path.join(jerryjs_path, 'debugger')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #22
0
def test_jerryjs_ecma():
    path_name = os.path.join(jerryjs_path, 'ecma')
    multicall.multicall_directories(path_name,
                                    fuzzer='quickfuzz',
                                    validator=validate)
Beispiel #23
0
def test_JSI():
    path_name = os.path.join(constants.seeds_dir, 'JSI')
    multicall.multicall_directories(path_name,
                                    fuzzer='radamsa',
                                    validator=validate)
Beispiel #24
0
def test_jerryjs_regression():
    path_name = os.path.join(jerryjs_path, 'regression')
    multicall.multicall_directories(path_name,
                                    fuzzer='quickfuzz',
                                    shell='shell.js',
                                    validator=validate)
Beispiel #25
0
def test_fuzz_v8_sunspider():
    path_name = os.path.join(v8_path, 'benchmarks/data/sunspider')
    multicall.multicall_directories(path_name, False, validator=validate)
Beispiel #26
0
def test_fuzz_v8_kraken():
    path_name = os.path.join(v8_path, 'benchmarks/data/kraken')
    multicall.multicall_directories(path_name,
                                    validator=validate,
                                    fuzzer='radamsa',
                                    shell='kraken_shell.js')
Beispiel #27
0
def test_tinyjs():
    path_name = os.path.join(constants.seeds_dir, 'Tiny-js.tests')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #28
0
def test_fuzz_v8_octane():
    path_name = os.path.join(v8_path, 'benchmarks/data/octane')
    multicall.multicall_directories(path_name,
                                    validator=validate,
                                    fuzzer='radamsa',
                                    shell='octane_shell.js')
Beispiel #29
0
def test_fuzz_v8_sunspider():
    path_name = os.path.join(constants.seeds_dir,
                             'v8.test.benchmarks.data/sunspider')
    multicall.multicall_directories(path_name, True, validator=validate)
Beispiel #30
0
def test_fuzz_v8_monorail():
    path_name = os.path.join(v8_path, 'monorail')
    multicall.multicall_directories(path_name,
                                    validator=validate,
                                    fuzzer='radamsa',
                                    shell='octane_shell.js')