diff --git a/lib/engine.rb b/lib/engine.rb --- a/lib/engine.rb +++ b/lib/engine.rb @@ -77,6 +77,8 @@ raise "engine: No test data." end + talk "ENGINE: grading dir at #{grading_dir} is created" + # copy the source script, using lock dinit = DirInit::Manager.new(problem_home) @@ -84,8 +86,10 @@ dinit.setup do copy_log = copy_script(problem_home) save_copy_log(problem_home,copy_log) + talk "ENGINE: following std script is copied: #{copy_log.join ' '}" end + call_judge(problem_home,language,grading_dir,source_name) @reporter.report(submission,"#{grading_dir}/test-result") @@ -121,11 +125,10 @@ ENV['PROBLEM_HOME'] = problem_home ENV['RUBYOPT'] = '' - talk grading_dir Dir.chdir grading_dir script_name = "#{problem_home}/script/judge" cmd = "#{script_name} #{language} #{fname}" - talk "CMD: #{cmd}" + talk "ENGINE: Calling Judge at #{cmd}" warn "ERROR: file does not exists #{script_name}" unless File.exists? script_name system(cmd) end