コード例 #1
0
         filenames=['compile-fail.%l'],
         languages=COMPILED_LANGUAGES,
         checks=[CheckCompilationFail()]),
    Test('compile-timeout',
         task=batch_fileio,
         filenames=['compile-timeout.%l'],
         languages=(LANG_CPP, ),
         checks=[CheckCompilationFail()]),

    # Various timeout conditions.
    Test('timeout-cputime',
         task=batch_stdio,
         filenames=['timeout-cputime.%l'],
         languages=ALL_LANGUAGES,
         checks=[CheckOverallScore(0, 100),
                 CheckTimeout()]),
    Test('timeout-pause',
         task=batch_stdio,
         filenames=['timeout-pause.%l'],
         languages=(LANG_CPP, ),
         checks=[CheckOverallScore(0, 100),
                 CheckTimeoutWall()]),
    Test('timeout-sleep',
         task=batch_stdio,
         filenames=['timeout-sleep.%l'],
         languages=(LANG_CPP, ),
         checks=[CheckOverallScore(0, 100),
                 CheckTimeout()]),
    Test('timeout-sigstop',
         task=batch_stdio,
         filenames=['timeout-sigstop.%l'],
コード例 #2
0
     checks=[CheckOverallScore(50, 100)]),

Test('incorrect-readstdio',
     task=batch_fileio, filename='correct-stdio.%l',
     languages=all_languages,
     checks=[CheckOverallScore(0, 100)]),

Test('compile-fail',
     task=batch_fileio, filename='compile-fail.%l',
     languages=all_languages,
     checks=[CheckCompilationFail()]),

Test('timeout-cputime',
     task=batch_stdio, filename='timeout-cputime.%l',
     languages=all_languages,
     checks=[CheckOverallScore(0, 100), CheckTimeout()]),

Test('timeout-pause',
     task=batch_stdio, filename='timeout-pause.%l',
     languages=('cpp',),
     checks=[CheckOverallScore(0, 100), CheckForbiddenSyscall('pause')]),

Test('timeout-sleep',
     task=batch_stdio, filename='timeout-sleep.%l',
     languages=('cpp',),
     checks=[CheckOverallScore(0, 100), CheckForbiddenSyscall('nanosleep')]),

Test('timeout-sigstop',
     task=batch_stdio, filename='timeout-sigstop.%l',
     languages=('cpp',),
     checks=[CheckOverallScore(0, 100), CheckSignal(19)]),