Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluebottlewize/otho
Script for comparing output of two programs
https://github.com/bluebottlewize/otho
Last synced: 23 days ago
JSON representation
Script for comparing output of two programs
- Host: GitHub
- URL: https://github.com/bluebottlewize/otho
- Owner: bluebottlewize
- Created: 2023-10-06T07:38:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T17:13:56.000Z (10 months ago)
- Last Synced: 2024-03-10T17:53:49.600Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
**otho.sh** is a bash script for comparing the output of two programs. It can take in input from a text file or from from a .tc file compatible with [tc-lexer](https://github.com/bluebottlewize/tc-lexer). It is recommended to use the .tc template since the script could run the tests until the programs produce an output which differs. For documentation on .tc template, refer to [tc-lexer](https://github.com/bluebottlewize/tc-lexer).
## Features
- Feeds input to two programs from specified input file or a testcase generator program (C/C++) and compares its outputs.
- Check if a program runs in given time constraints (TLE).## Installation
Download the zip file from releases section.
Extract it and `cd` into the folder.```
chmod u+x install.sh
./install.sh
```## Usage
```
otho ac.c wa.c -t testcase.tc
```*Note: in order to use a .tc file, the lexer executable must be in the same directory as otho.sh*
```
otho ac.c wa.c -t testcase.c -T 2
``````
otho ac.c wa.c -i input.txt
```