Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (17 sloc) 516 Bytes
#!/usr/bin/env ruby
require './lib/auto_grader_subprocess.rb'
unless ARGV.size == 3
puts <<EOF
Usage: #{$0} submission spec grader_type
submission and spec should be paths
grader_type should be one of the classes in lib/graders/
submission_path = ARGV[0]
spec = ARGV[1]
grader_type = ARGV[2]
submission =, 'r'){|f|}
score, comments = AutoGraderSubprocess.run_autograder_subprocess(submission, spec, grader_type)
puts "Score: #{score}/100"
puts comments
Something went wrong with that request. Please try again.