Ejemplo n.º 1
0
 def test_src(exe, lang, assume=None):
     print("Testing solution %s" % (exe))
     test_testcases(
         base_dir,
         exe,
         language=lang,
         assume=assume)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 6
0
 def test_src(exe, lang, assume=None):
     print("Testing solution %s" % (exe))
     test_testcases(base_dir, exe, language=lang, assume=assume)
Ejemplo n.º 7
0
 def test_src(exe, assume=None):
     print "Testing solution %s" % (exe)
     test_testcases(
         base_dir,
         exe,
         assume=assume)