GithubHelp home page GithubHelp logo

pipex-tester's Introduction

Pipex Tester

This repo provides test scripts for your pipex project @42School.

Note that the tester doesn't check the norm. The purpose of this repo is to be more effective in evaluation, not to botch it up.

Furthermore, the tester is absolutely not official and many tests may be irrelevant. It is intended for helping you design your project. Please do not use it as an absolute reference during defense.

Installation

First things first, clone this repo (the preferred path is alongside the pipex's directory).

git clone https://github.com/vfurmane/pipex-tester

Usage

./run.sh [-cltu] [tests_no]...

Once the installation is done, cd into the tester's directory, and run the ./run.sh script. You should be prompted some configuration questions. If you have answered any of them incorrectly, you can execute ./run.sh -c or ./run.sh --config to be prompted the questions again.

To stop the tester earlier, you can press Ctrl-C, and it will show you your grade at that moment.

The logs are stored in the outs directory. You'll find three types of file:

  • test-xx.txt: this is the outfile of pipex.
  • test-xx-original.txt: this is the outfile we would get with bash.
  • test-xx-tty.txt: this is what your program writes (stdout and stderr)
  • test-xx-exit.txt: this is the exit code of your program

You may find files like that test-xx.x.txt. These are log files for command executed twice during the same test.

There is a man page for the tester:

man ./man/man1/pipex-tester.1

Arguments

test number

Run the specified tests.

./run.sh 1 2 3

-c

Allow you to reconfigure the tester.

./run.sh -c

-l

Disable the leaks tests.

./run.sh -l

-t

Disable the timeout tests. May run the tests faster.

./run.sh -t

-u

Force the tester to update (if needed only).

./run.sh -u

Troubleshooting

If you encounter another problem, please feel free to open an Issue using the GitHub's tab.

pipex-tester's People

Contributors

glacecoding avatar jkutkut avatar vfurmane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pipex-tester's Issues

Need help with the test 14.

Hi im trying to check the 14th test: The program uses the environment list. Can you help me with that? Thanks.

Test Result

Describe the bug :

When executing the script, i have one KO which is : The program uses the environment list
i don't get what is the error behind this?
can u explain?

Thank you

Test 1 & 2 failed

Describe the bug
In my case, I see 'KO' for tests #1 & #2, when in my terminal I don't have any problem compiling.

Expected behavior
Tests 1 & 2 being OK

Desktop (please complete the following information):

  • OS: Windows 11 + WSL2

pipex-tests-KO
pipex-tests-KO-make
pipex-tests-KO-outs

edit : replaced text with latest picture.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.