diff --git a/lab1/Justfile b/lab1/Justfile index 09cf796..d7b08bc 100644 --- a/lab1/Justfile +++ b/lab1/Justfile @@ -34,3 +34,18 @@ cmake: buggy: cd ./buggy_programs && make -j4 + cd ./buggy_programs && mkdir -p build + cd ./buggy_programs && cmake -B build + cd ./buggy_programs && make -C build + +valgrind: buggy + cd ./buggy_programs/build/ && valgrind ./dangling + cd ./buggy_programs/build/ && valgrind ./bounds + cd ./buggy_programs/build/ && valgrind ./bounds-heap + cd ./buggy_programs/build/ && valgrind ./leak + cd ./buggy_programs/build/ && valgrind ./sum + cd ./buggy_programs/build/ && valgrind ./sum_alt + cd ./buggy_programs/build/ && valgrind ./ub + +clean: + git clean -fdx