Show More
Commit Description:
add a new modified sandbox "box"...
Commit Description:
add a new modified sandbox "box"
The original file was pulled from moe (git://git.ucw.cz/moe.git)
by Martin Mares's commit on Sun Jul 29 23:53:56 2012 +0200
The modification is to make it separately compilable and add more option
to specify additional argument to the program. (Please see usage guide)
run `gcc -o box -std=c99 box64-new.c` to compile.
References:
File last commit:
Show/Diff file:
Action:
config/env_test.rb.SAMPLE
| 29 lines
| 844 B
| text/plain
| TextLexer
|
|
r23 | # | ||
# See documentation in lib/configuration.rb | ||||
# | ||||
|
r22 | Grader::Initializer.run do |config| | ||
|
r23 | config.problems_dir = GRADER_ROOT + "/test/sandbox/ev" | ||
config.user_result_dir = GRADER_ROOT + "/test/sandbox/result" | ||||
|
r22 | |||
|
r23 | config.talkative = false | ||
|
r22 | |||
config.report_grader = false | ||||
config.rails_env = 'test' | ||||
|
r23 | config.comment_report_style = :full | ||
|
r22 | |||
|
r23 | config.test_request_input_base_dir = GRADER_ROOT + "/test/data/test_request/input" | ||
config.test_request_output_base_dir = GRADER_ROOT + "/test/sandbox/test_request/output" | ||||
config.test_request_problem_templates_dir = GRADER_ROOT + "/test/data/test_request/problems" | ||||
# | ||||
# These options are for testing | ||||
# | ||||
|
r22 | class << config | ||
attr_accessor :test_data_dir, :test_sandbox_dir | ||||
end | ||||
|
r23 | config.test_data_dir = GRADER_ROOT + "/test/data" | ||
config.test_sandbox_dir = GRADER_ROOT + "/test/sandbox" | ||||
|
r22 | end | ||