Giter VIP home page Giter VIP logo

libftest's Introduction

Libftest

This repository contains script to test your libft project. The script will do the following tests :
  • Check if libft.h exists
  • Check norme of libft.h
  • Check if the Makefile file exists
  • Check rules in Makefile
  • Check compilation's flag in Makefile
  • Compil library
  • Check norme errors
  • Check forbidden functions
  • Tests functions

At the end of the tests, a deepthought file will be created, inside which you can find all the results and error/failure messages. You can also see your results in tests directory.

The script will compil your files with your libft, so you must have your Makefile up to date.

⚠️All the tests made are not the official tests⚠️

Getting Started

Installation

git clone https://github.com/jtoty/Libftest

The project needs clang compiler. Make sure it is installed.

Old libft subject

To test the old libft subject, you have to go to the branch old-libft.

Configuration

If you run the script for the first time, it will automatically create my_config.sh file and ask you to edit it with the path of your libft project. You can also choose the colors that will be used and the path where the deepthought file will be created.

Running script

Run the script from the directory where you cloned

bash grademe.sh

or run the script with the path

bash /path/where/you/cloned/grademe.sh

Options available

Option Description
-h
--help
Display help and exit
-c Disable color
-s Disable searching Makefile and author files
-m When compiling library, test all the Makefile's rules (instead of doing only make re and checking if other rules exist).
-l Disable compiling library
-f Disable checking forbidden functions
-n Disable norminette
-u Disable checking updates at launch
-p1 Disable part 1 tests
-p2 Disable part 2 tests
-b Disable bonus part tests
-a Disable additional part tests
-op1 Do only part 1 tests
-op2 Do only part 2 tests
-ob Do only bonus part tests
-oa Do only additional part tests
ft_function Test only this function

Add successively all options you want, in the order you want. For example :

bash grademe.sh ft_atoi -f ft_strlen -n

Supported functions

All the supported functions are listed on this page.

Contribution

Any suggestions or bugs reporting ? Contact [email protected]

Contributors

libftest's People

Contributors

jtoty avatar valfur03 avatar

Stargazers

 avatar

Watchers

 avatar

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.