Skip to content

potatokuka/mini_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini_tester


Mini Tester

Easy to use tester to compare results of provided testcases between your minishell and bash!

· Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

THIS IS NOT A REPLACEMENT FOR EVALS OR REAL TESTING, THIS IS PURELY A QUICKER WAY TO RUN TESTS.

  • DO NOT FAIL SOMEONE BECAUSE THEY FAILED THIS.
  • DO NOT PASS SOMEONE BECAUSE THEY PASSED THIS.
  • DO YOUR OWN TESTING, DO NOT BE A SHEEP.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Bash has to be installed and accessible through $PATH.
Your minishell has to write its prompt to STDERR.
Your minishell has to read regularly (get_next_line) when STDIN does not refer to a terminal device.

Installation

  1. Clone the repo anywhere
    git clone https://github.com/potatokuka/mini_tester.git
  2. change $MINISHELL_PATH in unit_tester.sh to point to your minishell folder.

Usage

bash unit_tester.sh FILE [FILE2 FILE3 ..] [-e]

Options:

-e : Output of failing tests will be piped into cat -e

License

Distributed under the MIT License.

About

Tester For Minishell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages