All Projects → cacharle → ft_printf_test

cacharle / ft_printf_test

Licence: GPL-3.0 License
ft_printf test

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ft printf test

ftprintfdestructor
A script that destroys the school 42 project ft_printf
Stars: ✭ 20 (-4.76%)
Mutual labels:  ft-printf
nodejs-saas
☁️ Application using Node.js, AdonisJs, Adonis ACL, Adonis Kue Provider, Adonis Mail, Adonis Lucid Slugify, Adonis Validator, AdonisJs Redis, ESLint and pg
Stars: ✭ 13 (-38.1%)
Mutual labels:  bonus
react-native-saas
☁️ Application using Redux, Redux-Saga, React Native Redux Toast, Immer, react-native-side-menu, React Native Async Storage, react-native-iphone-x-helper, React Native Vector Icons and consuming the features of the Node.js - SaaS API
Stars: ✭ 14 (-33.33%)
Mutual labels:  bonus
printfTester
Tester for the ft_printf project of 42 school
Stars: ✭ 94 (+347.62%)
Mutual labels:  ft-printf

ft_printf test

Unit test for the ft_printf project of 42 school.

screenshot

Usage

Clone this repo such that:

`
|- ft_printf_test/
|- ft_printf/

or modify the FT_PRINTF_PATH variable in the Makefile

  • > make run: run the tests in a pretty format
  • > make verbose: to show a more verbose output
  • > make quiet: to show a more quiet output
  • > make raw: run the tests in a ugly but parsable format
  • > python3 prettier -h: show prettier options
  • > make generate: generate 100 random test

Bonus

All the previous make command suffixed with bonus (i.e make runbonus). You may need to make fclean in order to clean the previous .o files.

Random Test Generator

It will generate random test according to the -Wformat flag of gcc.

  • > ./generate -n [number of tests]: generate n test
  • > ./generate -h: show all available options

Bonus

Add the --bonus flag i.e: > python3 generate.py -n [number of tests] --bonus.

Memory leaks check

You have to install valgrind with brew, here is a nice thread to install it locally if you don't have root access. You can then run > brew install valgrind.

  • > make check_leaks: run valgrind on a test (without the test themself).
  • > make check_leaks_verbose: add --leak-check=full to valgrind.

Credits

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].