コード例 #1
0
ファイル: asm_executor.py プロジェクト: caidongyun/judge
 def initialize(cls, sandbox=True):
     if cls.qemu_path is None and not can_debug(cls.arch):
         return False
     if any(i is None for i in
            (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker, cls.crt_pre, cls.crt_post)):
         return False
     if any(not os.path.isfile(i) for i in (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker)):
         return False
     if any(not os.path.isfile(i) for i in cls.crt_pre) or any(not os.path.isfile(i) for i in cls.crt_post):
         return False
     return cls.run_self_test(sandbox)
コード例 #2
0
ファイル: asm_executor.py プロジェクト: xuejinqi/judge
 def initialize(cls, sandbox=True):
     if cls.qemu_path is None and not can_debug(cls.arch):
         return False
     if any(i is None
            for i in (cls.get_as_path(), cls.get_ld_path(),
                      cls.dynamic_linker, cls.crt_pre, cls.crt_post)):
         return False
     if any(not os.path.isfile(i)
            for i in (cls.get_as_path(), cls.get_ld_path(),
                      cls.dynamic_linker)):
         return False
     if any(not os.path.isfile(i)
            for i in cls.crt_pre) or any(not os.path.isfile(i)
                                         for i in cls.crt_post):
         return False
     return cls.run_self_test(sandbox)
コード例 #3
0
ファイル: asm_executor.py プロジェクト: xuejinqi/judge
 def autoconfig(cls):
     if not can_debug(cls.arch):
         return {}, False, 'Unable to natively debug'
     return super(ASMExecutor, cls).autoconfig()
コード例 #4
0
ファイル: asm_executor.py プロジェクト: caidongyun/judge
 def autoconfig(cls):
     if not can_debug(cls.arch):
         return {}, False, 'Unable to natively debug'
     return super(ASMExecutor, cls).autoconfig()