Skip to content

Commit

Permalink
[+] : clean-test-db command : @ Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aallali committed May 27, 2024
1 parent a6e55c2 commit ec0b3d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion safina_db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ run:
test:
@echo "Running tests..."
@cargo test
make clean-test-db


clean-test-db:
@rm db-test-*
# Run benchmarks
bench:
@echo "Running benchmarks..."
@cargo bench
@echo "Moving benchmarks output to 'benchmarks' folder..."
@rm -rf ../benchmarks
@mv target/criterion ../benchmarks/
make clean-test-db

# Generate documentation and move it to 'documentation' folder
doc:
Expand All @@ -43,3 +46,4 @@ clean:
@echo "Cleaning the project..."
@cargo clean
@rm -rf documentation
make clean-test-db

0 comments on commit ec0b3d4

Please sign in to comment.