@@ -85,14 +85,14 @@ class TestBaseCompiler extends Tester\TestCase
8585 ]
8686 ];
8787 private static $ envVariablesTable = [
88- [ "name " => "source_files " , "type " => "file[] " , "value " => "source " ],
88+ [ "name " => "source_files " , "type " => "file[] " , "value " => "source.cpp " ],
8989 [ "name " => "expected_output " , "type " => "file " , "value " => '$expected-a-out ' ]
9090 ];
9191 private static $ environment = "envA " ;
9292 private static $ compilationPipeline = [
9393 "variables " => [
94- ["name " => "source_files " , "type " => "file[] " , "value " => ["source " ]],
95- ["name " => "extra_files " , "type " => "file[] " , "value " => ["extra " ]],
94+ ["name " => "source_files " , "type " => "file[] " , "value " => ["source.cpp " ]],
95+ ["name " => "extra_files " , "type " => "file[] " , "value " => ["extra.cpp " ]],
9696 ["name " => "binary_file " , "type " => "file " , "value " => "a.out " ]
9797 ],
9898 "boxes " => [
@@ -219,10 +219,10 @@ class TestBaseCompiler extends Tester\TestCase
219219 "expected.B.out " => "expected.B.out.hash " ,
220220 "expected.B.in " => "expected.B.in.hash "
221221 ];
222- private static $ submitFiles = [ "source " ];
222+ private static $ submitFiles = [ "source.cpp " ];
223223 private static $ solutionParams = [
224224 "variables " => [
225- ["name " => "expected-a-out " , "value " => "source " ]
225+ ["name " => "expected-a-out " , "value " => "source.cpp " ]
226226 ]
227227 ];
228228
@@ -348,7 +348,7 @@ class TestBaseCompiler extends Tester\TestCase
348348 Assert::count (1 , $ testACopyTask ->getDependencies ());
349349 Assert::equal ([$ testAMkdir ->getId ()], $ testACopyTask ->getDependencies ());
350350 Assert::equal ("cp " , $ testACopyTask ->getCommandBinary ());
351- Assert::equal ([ConfigParams::$ SOURCE_DIR . "source " , ConfigParams::$ SOURCE_DIR . "testA/expected.out " ], $ testACopyTask ->getCommandArguments ());
351+ Assert::equal ([ConfigParams::$ SOURCE_DIR . "source.cpp " , ConfigParams::$ SOURCE_DIR . "testA/expected.out " ], $ testACopyTask ->getCommandArguments ());
352352 Assert::null ($ testACopyTask ->getType ());
353353 Assert::equal ("testA " , $ testACopyTask ->getTestId ());
354354 Assert::null ($ testACopyTask ->getSandboxConfig ());
@@ -359,7 +359,7 @@ class TestBaseCompiler extends Tester\TestCase
359359 Assert::count (1 , $ testAExtraTask ->getDependencies ());
360360 Assert::equal ([$ testAMkdir ->getId ()], $ testAExtraTask ->getDependencies ());
361361 Assert::equal ("cp " , $ testAExtraTask ->getCommandBinary ());
362- Assert::equal ([ConfigParams::$ SOURCE_DIR . "extra " , ConfigParams::$ SOURCE_DIR . "testA/extra " ], $ testAExtraTask ->getCommandArguments ());
362+ Assert::equal ([ConfigParams::$ SOURCE_DIR . "extra.cpp " , ConfigParams::$ SOURCE_DIR . "testA/extra.cpp " ], $ testAExtraTask ->getCommandArguments ());
363363 Assert::null ($ testAExtraTask ->getType ());
364364 Assert::equal ("testA " , $ testAExtraTask ->getTestId ());
365365 Assert::null ($ testAExtraTask ->getSandboxConfig ());
@@ -370,7 +370,7 @@ class TestBaseCompiler extends Tester\TestCase
370370 Assert::count (1 , $ testASourceTask ->getDependencies ());
371371 Assert::equal ([$ testAMkdir ->getId ()], $ testASourceTask ->getDependencies ());
372372 Assert::equal ("cp " , $ testASourceTask ->getCommandBinary ());
373- Assert::equal ([ConfigParams::$ SOURCE_DIR . "source " , ConfigParams::$ SOURCE_DIR . "testA/source " ], $ testASourceTask ->getCommandArguments ());
373+ Assert::equal ([ConfigParams::$ SOURCE_DIR . "source.cpp " , ConfigParams::$ SOURCE_DIR . "testA/source.cpp " ], $ testASourceTask ->getCommandArguments ());
374374 Assert::null ($ testASourceTask ->getType ());
375375 Assert::equal ("testA " , $ testASourceTask ->getTestId ());
376376 Assert::null ($ testASourceTask ->getSandboxConfig ());
@@ -381,7 +381,7 @@ class TestBaseCompiler extends Tester\TestCase
381381 Assert::count (3 , $ testACompilationTask ->getDependencies ());
382382 Assert::equal ([$ testASourceTask ->getId (), $ testAExtraTask ->getId (), $ testAMkdir ->getId ()], $ testACompilationTask ->getDependencies ());
383383 Assert::equal (GccCompilationBox::$ GCC_BINARY , $ testACompilationTask ->getCommandBinary ());
384- Assert::equal ([ConfigParams::$ EVAL_DIR . "source " , ConfigParams::$ EVAL_DIR . "extra " , "-o " , ConfigParams::$ EVAL_DIR . "a.out " ], $ testACompilationTask ->getCommandArguments ());
384+ Assert::equal ([ConfigParams::$ EVAL_DIR . "source.cpp " , ConfigParams::$ EVAL_DIR . "extra.cpp " , "-o " , ConfigParams::$ EVAL_DIR . "a.out " ], $ testACompilationTask ->getCommandArguments ());
385385 Assert::equal (TaskType::$ INITIATION , $ testACompilationTask ->getType ());
386386 Assert::equal ("testA " , $ testACompilationTask ->getTestId ());
387387 Assert::notEqual (null , $ testACompilationTask ->getSandboxConfig ());
@@ -449,7 +449,7 @@ class TestBaseCompiler extends Tester\TestCase
449449 Assert::count (1 , $ testBExtraTask ->getDependencies ());
450450 Assert::equal ([$ testBMkdir ->getId ()], $ testBExtraTask ->getDependencies ());
451451 Assert::equal (TaskCommands::$ COPY , $ testBExtraTask ->getCommandBinary ());
452- Assert::equal ([ConfigParams::$ SOURCE_DIR . "extra " , ConfigParams::$ SOURCE_DIR . "testB/extra " ], $ testBExtraTask ->getCommandArguments ());
452+ Assert::equal ([ConfigParams::$ SOURCE_DIR . "extra.cpp " , ConfigParams::$ SOURCE_DIR . "testB/extra.cpp " ], $ testBExtraTask ->getCommandArguments ());
453453 Assert::null ($ testBExtraTask ->getType ());
454454 Assert::equal ("testB " , $ testBExtraTask ->getTestId ());
455455 Assert::null ($ testBExtraTask ->getSandboxConfig ());
@@ -460,7 +460,7 @@ class TestBaseCompiler extends Tester\TestCase
460460 Assert::count (1 , $ testBSourceTask ->getDependencies ());
461461 Assert::equal ([$ testBMkdir ->getId ()], $ testBSourceTask ->getDependencies ());
462462 Assert::equal (TaskCommands::$ COPY , $ testBSourceTask ->getCommandBinary ());
463- Assert::equal ([ConfigParams::$ SOURCE_DIR . "source " , ConfigParams::$ SOURCE_DIR . "testB/source " ], $ testBSourceTask ->getCommandArguments ());
463+ Assert::equal ([ConfigParams::$ SOURCE_DIR . "source.cpp " , ConfigParams::$ SOURCE_DIR . "testB/source.cpp " ], $ testBSourceTask ->getCommandArguments ());
464464 Assert::null ($ testBSourceTask ->getType ());
465465 Assert::equal ("testB " , $ testBSourceTask ->getTestId ());
466466 Assert::null ($ testBSourceTask ->getSandboxConfig ());
@@ -471,7 +471,7 @@ class TestBaseCompiler extends Tester\TestCase
471471 Assert::count (3 , $ testBCompilationTask ->getDependencies ());
472472 Assert::equal ([$ testBSourceTask ->getId (), $ testBExtraTask ->getId (), $ testBMkdir ->getId ()], $ testBCompilationTask ->getDependencies ());
473473 Assert::equal (GccCompilationBox::$ GCC_BINARY , $ testBCompilationTask ->getCommandBinary ());
474- Assert::equal ([ConfigParams::$ EVAL_DIR . "source " , ConfigParams::$ EVAL_DIR . "extra " , "-o " , ConfigParams::$ EVAL_DIR . "a.out " ], $ testBCompilationTask ->getCommandArguments ());
474+ Assert::equal ([ConfigParams::$ EVAL_DIR . "source.cpp " , ConfigParams::$ EVAL_DIR . "extra.cpp " , "-o " , ConfigParams::$ EVAL_DIR . "a.out " ], $ testBCompilationTask ->getCommandArguments ());
475475 Assert::equal (TaskType::$ INITIATION , $ testBCompilationTask ->getType ());
476476 Assert::equal ("testB " , $ testBCompilationTask ->getTestId ());
477477 Assert::notEqual (null , $ testBCompilationTask ->getSandboxConfig ());
0 commit comments