Skip to content

A simple tool to run test cases for programming exercises

License

Notifications You must be signed in to change notification settings

geokoko/AlgoGrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlgoGrader

This is a simple tool designed for algorithmic testing. It supports multiple programming languages, enforces time and memory limits, and compares actual output with expected output for correctness.

Installation

Clone the repository:

git clone https://github.com/geokoko/AlgoGrader.git
cd AlgoGrader

Usage

To run the program, use the following command:

python3 main.py <program_path> [<time_limit>] [<memory_limit>] 

Arguments

  • program_path: The path to the program you want to test.

Optional arguments:

  • time_limit: The time limit in seconds. Default is 12 seconds.
  • memory_limit: The memory limit in megabytes. Default is 128 megabytes.

Test Case Format

  1. Input files should be named input<i>.txt, where i is the test case number.
  2. Expected output files should be named output<i>.txt, where i is the test case number.
  3. Actual results are stored in the actual_results/ directory automatically during execution.
  4. Input and expected output files should be stored in the test_cases/<program_name>_tests directory, where program name is the name of the program you are testing. (The filename without the language extension)

About

A simple tool to run test cases for programming exercises

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages