feat: Adding malloc wrapper for memory safety.
This commit is contained in:
26
README.md
26
README.md
@@ -4,13 +4,31 @@ Tiny C testing framework.
|
||||
|
||||
## Build
|
||||
|
||||
Building is quite simple. To build a test `test_fac.c` just pick your favourite compiler and run.
|
||||
To build the library simply call `make` in the repository root.
|
||||
|
||||
gcc Small-Enough-Tester/set.c test_fac.c -I Small-Enough-Tester/ -D COLORIZED -lm -o test_fac
|
||||
Alternatively it is possible to directly call the compiler with:
|
||||
|
||||
Running a test is equally simple just execute the compiled binary.
|
||||
gcc -c src/*.c
|
||||
ar rcs libset.a *.o
|
||||
rm *.o # Clean up
|
||||
|
||||
./test_fac
|
||||
### Options
|
||||
|
||||
SET comes with a couple of build options that might come in handy in different scenarios.
|
||||
|
||||
- no_banner: Do not print banner every time the tests are run.
|
||||
|
||||
make no_banner=y
|
||||
|
||||
- colorized: Build with colorized output.
|
||||
|
||||
make colorized=y
|
||||
|
||||
## Building a test.
|
||||
|
||||
To build a test, first build the library. Then link it to the `test.c` via:
|
||||
|
||||
gcc -static test.c -L . -lset -o test
|
||||
|
||||
## LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user