Skip to content

This is a project which aims to reconstruct library functions from the standard lib in C.

License

Notifications You must be signed in to change notification settings

amnotme/42_Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft Unit tests

libft-unit-test is a complete testing suite for 42's libft project, allowing you to test your lib, track your progress and benchmarking your lib (with system's libc or with another lib)

Installation

You must have the following file structure:

.
|- libft/
|- libft-unit-tests/

Whereas: libft is your project folder. libft-unit-tests is the folder containing this repository.

Afterwards, you can just make.

(NOTE: Before running make, you can edit the LIBFTDIR variable containing the path to your libft folder.)

Usage

Run make f or ./run_test when inside the repo's directory. ./run_test -b to use the Benchmark mode. (-b option to compare with system's libc and -v <libft file> option to compare with another libft file (should be libft.so).

the -nospeed option is available if you're mad enough at your optimization. :)

Linux

To get it work on linux:

  • Install this two packages libbsd-dev and libncurses-dev
  • Add a rule called 'so' in your Makefile to compile your libft in dynamic library instead of static (must be called "libft.so").

About

This is a project which aims to reconstruct library functions from the standard lib in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published