Commit 6a2f382197
Unsigned
Layout: unified · split
Makefile +4 −1
| @@ -12,7 +12,7 @@ SOURCES := $(wildcard src/*.rs src/bar_items/*.rs src/commands/*.rs src/room/*.r | |||
| 12 | 12 | ||
| 13 | PROFILE ?= release | 13 | PROFILE ?= release |
| 14 | 14 | ||
| 15 | .PHONY: install install-user uninstall uninstall-user install-dir install-user-dir lint all help deb | 15 | .PHONY: install install-user uninstall uninstall-user install-dir install-user-dir lint check all help deb |
| 16 | 16 | ||
| 17 | all: help | 17 | all: help |
| 18 | 18 | ||
| @@ -46,6 +46,9 @@ install-user-dir: | |||
| 46 | lint: ## Lint issues with clippy | 46 | lint: ## Lint issues with clippy |
| 47 | cargo clippy | 47 | cargo clippy |
| 48 | 48 | ||
| 49 | check: ## Run test suite | ||
| 50 | cargo test --release | ||
| 51 | |||
| 49 | # Get the base package version from Cargo.toml (fallback when no git tags are found) | 52 | # Get the base package version from Cargo.toml (fallback when no git tags are found) |
| 50 | CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/') | 53 | CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/') |
| 51 | 54 | ||