Ccup

Verification tool for DevCon Code Challenge Cup

Installation

Add this line to your application's Gemfile:

gem 'ccup'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ccup

Usage

$ ccup SUBMISSION_FILE INPUT_FOLDER OUTPUT_FILE ANSWER_KEY_FILE

Creates a temporary directory and copies SUBMISSION_FILE, the files inside INPUT_FOLDER, and ANSWER_KEY_FILE into it before compiling (if needed) and executing the SUBMISSION_FILE.

Verification will be done by running "diff" on OUTPUT_FILE and ANSWER_KEY_FILE and putting the results into result.txt on the same folder. The running time will also be added to result.txt.

The program ends with displaying the temporary folder.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request