Skip to content

Commit

Permalink
Add unit-test target to Makefile
Browse files Browse the repository at this point in the history
...and make a dependency of the lint target.
  • Loading branch information
jpgrayson committed Aug 5, 2022
1 parent 81b30b6 commit 7377ba7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ install-html:
.PHONY: install install-all install-bin install-completion install-man install-html


lint: lint-format lint-clippy lint-t
lint: lint-format lint-clippy lint-t unit-test

lint-format:
$(CARGO) fmt --all --check
$(CARGO) --quiet fmt --all --check

lint-clippy:
$(CARGO) clippy -- --deny warnings
$(CARGO) --quiet clippy -- --deny warnings

lint-t:
$(MAKE) -C t test-lint

.PHONY: lint lint-format lint-clippy lint-t
unit-test:
$(CARGO) --quiet test

.PHONY: lint lint-format lint-clippy lint-t unit-test


format:
Expand Down

0 comments on commit 7377ba7

Please sign in to comment.