https://github.com/tripouille/libasmtester
Tester for the libasm project of 42 school
https://github.com/tripouille/libasmtester
2019 42 asm assembly errno leaks libasm libasmtester malloc-size tester tripouille valgrind
Last synced: 6 months ago
JSON representation
Tester for the libasm project of 42 school
- Host: GitHub
- URL: https://github.com/tripouille/libasmtester
- Owner: Tripouille
- Created: 2020-12-19T19:37:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T13:05:08.000Z (about 1 year ago)
- Last Synced: 2025-03-27T02:51:18.235Z (6 months ago)
- Topics: 2019, 42, asm, assembly, errno, leaks, libasm, libasmtester, malloc-size, tester, tripouille, valgrind
- Language: C++
- Homepage: https://github.com/Tripouille
- Size: 48.8 KB
- Stars: 10
- Watchers: 0
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libasmTester (2019+)
Tester for the libasm project of 42school (macOS and Linux only); features include checking malloc sizes and errno values.
## Setup
Clone this tester in your libasm repository:
```bash
git clone git@github.com:Tripouille/libasmTester.git && echo "libasmTester" >> .gitignore
```## Commands
`make` = alias to `make a`
`make m` = launch mandatory tests
`make b` = launch bonus tests
`make a` = launch mandatory tests + bonus tests`make vm` = launch mandatory tests with valgrind
`make vb` = launch bonus tests with valgrind
`make va` = launch mandatory tests + bonus tests with valgrind`make [function name]` = launch associated test (ex: `make strlen`)
`make v[function name]` = launch associated test with valgrind (ex: `make vstrlen`)
`make vs[function name]` = open the corresponding tests in vscode (ex: `make vsstrlen`)
`make vi[function name]` = open the corresponding tests in vi (ex: `make vistrlen`)> [!WARNING]
> For rigorous testing, you should run **all** your tests with *Valgrind*.## Outputs

`MOK` / `MKO` = test about your malloc size
`ERRNOOK` / `ERRNOKO` = test about errno value# Report bugs / Improvement
Contact me on slack or discord : jgambard