All Projects → y3ll0w42 → libft-war-machine

y3ll0w42 / libft-war-machine

Licence: other
forked repository of libftest (by jtoty) for libft at 42

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to libft-war-machine

Libft
42 library of basic C functions - queues, lists, memory operations and more 😄
Stars: ✭ 21 (-87.43%)
Mutual labels:  libft, 42
libftTester
Tester for the libft project of 42 school
Stars: ✭ 141 (-15.57%)
Mutual labels:  libft, 42
42MapGenerator
Generate FdF maps of the real world, the Earth's moon and the planet Venus for the project Fil de Fer
Stars: ✭ 58 (-65.27%)
Mutual labels:  42
42-piscine-exam
This repo has all exercises of "C Exam Alone In The Dark - Beginner" sorted from level_00 to Level_05
Stars: ✭ 218 (+30.54%)
Mutual labels:  42
42tools
Making 42 life better
Stars: ✭ 43 (-74.25%)
Mutual labels:  42
42header.vim
Add and update the 42 comment header at the top of your files
Stars: ✭ 15 (-91.02%)
Mutual labels:  42
1337
This repository contains a collection of 42School cursus projects in addition to the pool/piscine days (with a detailed step by step explanation). Enjoy!
Stars: ✭ 35 (-79.04%)
Mutual labels:  42
gnlTester
Tester for the get_next_line project of 42 school
Stars: ✭ 87 (-47.9%)
Mutual labels:  42
miniRT
School project for 42 Paris
Stars: ✭ 23 (-86.23%)
Mutual labels:  42
42 Projects
What is 42? How does curriculum look like? A manual reference for all 42 projects I've done so far (Zappy, Malloc, C++ Piscine... check out for more)! 💡📈
Stars: ✭ 111 (-33.53%)
Mutual labels:  42
ftprintfdestructor
A script that destroys the school 42 project ft_printf
Stars: ✭ 20 (-88.02%)
Mutual labels:  42
piscine42
School 42 Piscine C projects
Stars: ✭ 11 (-93.41%)
Mutual labels:  42
42ShellTester
Integration test suite for Shell implementation
Stars: ✭ 35 (-79.04%)
Mutual labels:  42
ft get next line
42 São Paulo - get_next_line
Stars: ✭ 17 (-89.82%)
Mutual labels:  42
push swap gui
Implementation of push-swap (42-school project) on python with GUI.
Stars: ✭ 32 (-80.84%)
Mutual labels:  42
init
School 42 project // DevOps project
Stars: ✭ 13 (-92.22%)
Mutual labels:  42
BetterBlackHole
Feeling pressured by the Black Hole and the counter that comes with it? With this extension, you are able to hide the demotivating countdown and sad emote, replacing it by just a date and a motivating message for extra motivation.
Stars: ✭ 17 (-89.82%)
Mutual labels:  42
printfTester
Tester for the ft_printf project of 42 school
Stars: ✭ 94 (-43.71%)
Mutual labels:  42
coalibot
Slack bot for the school 42 using nlopes/slack Slack api client. This bot provide tools for student to access school informations.
Stars: ✭ 22 (-86.83%)
Mutual labels:  42
minilibx
setup environment for minilibx library in Windows/Linux
Stars: ✭ 27 (-83.83%)
Mutual labels:  42

PREAMBLE

This is an edit of prev libftest made by @jtoty to fit with the 2019 project libft.
(ORIGINAL REP : https://github.com/jtoty/Libftest)
This update was made by @lmartin

libft-war-machine

This repository contains script to test your libft project. The script will do the following tests :
  • Check if the author file exists
  • Check content of the author file
  • 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/y3ll0w42/libft-war-machine

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.

Custom directories

If you use custom directories for your header and source files; you should specify there name in my_config.sh.

The following variables must be set:

HEADER_DIR
SRC_DIR

Exemple:

HEADER_DIR="includes"
SRC_DIR="srcs"

Running script

Go to the directory where you cloned and run the script

bash grademe.sh

or simply run the script with the path

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

Options available

Option Description
-h
--help
Display help and exit
-d Allows to perform the tests even if the files are in directories
-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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].