Commit 6a2f382197

6a2f382197b35a4f39157bb57510284afac636be

parent: dcfa865c26

Unsigned

Darafei Praliaskouski <me@komzpa.net> · 2026-07-08 10:36 UTC
committer: <strk@kbt.io>

build: add make check target

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
13PROFILE ?= release 13PROFILE ?= 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
17all: help 17all: help
18 18
@@ -46,6 +46,9 @@ install-user-dir:
46lint: ## Lint issues with clippy 46lint: ## Lint issues with clippy
47 cargo clippy 47 cargo clippy
48 48
49check: ## 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)
50CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/') 53CARGO_VERSION := $(shell grep -m1 '^version = ' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
51 54