Exemple #1
0
 def test_src(exe, lang, assume=None):
     print("Testing solution %s" % (exe))
     test_testcases(
         base_dir,
         exe,
         language=lang,
         assume=assume)
Exemple #2
0
 def test_src(exe, lang, assume=None):
     # Solution names begin with sol/ and end with _EVAL, we strip that
     print(
         "Testing solution",
         add_color_to_string(exe[4:-5], colors.BLACK, bold=True)
     )
     test_testcases(
         base_dir,
         exe,
         language=lang,
         assume=assume)
Exemple #3
0
 def test_src(exe, lang, assume=None):
     # Solution names begin with sol/ and end with _EVAL, we strip that
     print(
         "Testing solution",
         add_color_to_string(exe[4:-5], colors.BLACK, bold=True)
     )
     test_testcases(
         base_dir,
         exe,
         language=lang,
         assume=assume)
Exemple #4
0
 def test_src(exe, input_num, task_type):
     print "Testing solution %s" % (exe)
     cormgr = ''
     if task_type == ['Batch', 'Comp'] or \
             task_type == ['Batch', 'GradComp']:
         cormgr = 'cor/correttore'
     test_testcases(input_num,
                    box_path,
                    exe,
                    yaml_conf['timeout'],
                    yaml_conf['memlimit'],
                    task_type[0],
                    task_type[1],
                    cormgr=cormgr)
Exemple #5
0
 def test_src(exe, input_num, task_type):
     print "Testing solution %s" % (exe)
     cormgr = ''
     if task_type == ['Batch', 'Comp'] or \
             task_type == ['Batch', 'GradComp']:
         cormgr = 'cor/correttore'
     test_testcases(
         input_num,
         box_path,
         exe,
         yaml_conf['timeout'],
         yaml_conf['memlimit'],
         task_type[0],
         task_type[1],
         cormgr=cormgr)
Exemple #6
0
 def test_src(exe, lang, assume=None):
     print("Testing solution %s" % (exe))
     test_testcases(base_dir, exe, language=lang, assume=assume)
Exemple #7
0
 def test_src(exe, assume=None):
     print "Testing solution %s" % (exe)
     test_testcases(
         base_dir,
         exe,
         assume=assume)