def run_all(x):
    print(x)
    for name in sorted((glob.glob(path_from_root('tests', 'fuzz', '*.c')) + glob.glob(path_from_root('tests', 'fuzz', '*.cpp')))):
        if ('newfail' in name):
            continue
        if os.path.basename(name).startswith('temp_fuzzcode'):
            continue
        if ((x == 'lto') and (self.run_name in ['default', 'asm2f']) and (os.path.basename(name) in ['8.c'])):
            continue
        if ((x == 'lto') and (self.run_name == 'default') and (os.path.basename(name) in skip_lto_tests)):
            continue
        if ((x == 'lto') and (os.path.basename(name) in ['21.c'])):
            continue
        print(name)
        if name.endswith('.cpp'):
            self.emcc_args.append('-std=c++03')
        self.do_run(open(path_from_root('tests', 'fuzz', name)).read(), open(path_from_root('tests', 'fuzz', (name + '.txt'))).read(), force_c=name.endswith('.c'), assert_returncode=None)
        if name.endswith('.cpp'):
            self.emcc_args.remove('-std=c++03')
def run_all(x):
    print(x)
    for name in sorted((glob.glob(path_from_root('tests', 'fuzz', '*.c')) + glob.glob(path_from_root('tests', 'fuzz', '*.cpp')))):
        if ('newfail' in name):
            continue
        if os.path.basename(name).startswith('temp_fuzzcode'):
            continue
        if ((x == 'lto') and (self.run_name in ['default', 'asm2f']) and (os.path.basename(name) in ['8.c'])):
            continue
        if ((x == 'lto') and (self.run_name == 'default') and (os.path.basename(name) in skip_lto_tests)):
            continue
        if ((x == 'lto') and (os.path.basename(name) in ['21.c'])):
            continue
        print(name)
        if name.endswith('.cpp'):
            self.emcc_args.append('-std=c++03')
        self.do_run(open(path_from_root('tests', 'fuzz', name)).read(), open(path_from_root('tests', 'fuzz', (name + '.txt'))).read(), force_c=name.endswith('.c'), assert_returncode=None)
        if name.endswith('.cpp'):
            self.emcc_args.remove('-std=c++03')