diff --git a/Makefile b/Makefile index 785d12521..3784952d7 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,14 @@ compile_test_files: && pushd test/lkm_samples \ && ./build.sh -codestyle-check: +bench: + if [ ! -d "src/cwe_checker_lib/benches/_data/" ]; then \ + echo "Benchmark binaries not found. Please see src/cwe_checker_lib/benches/benchmarks.rs for instructions."; \ + exit -1; \ + fi + cargo bench --bench "benchmarks" -- --save-baseline __last_make_run + +check: cargo fmt -- --check cargo clippy -- -D clippy::all -D missing_docs cargo clippy -p cwe_checker_lib --bench "benchmarks" -- -D clippy::all