[pdm-devel] [PATCH datacenter-manager 2/2] build-sys: add make target for test
Christian Ebner
c.ebner at proxmox.com
Wed Oct 29 14:14:02 CET 2025
This will be called during package build via `dh_auto_test` by
`dpkg-buildpackage` [0] and runs the tests defined in the workspace.
Based on the same target to be found in proxmox-backup's makefile.
[0] https://manpages.debian.org/trixie/debhelper/dh_auto_test.1.en.html
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 97c4a92..b2f794a 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,8 @@ BASH_COMPLETIONS := $(addsuffix .bc,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN))
ZSH_COMPLETIONS := $(addprefix _,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN))
SHELL_COMPLETION_FILES := $(addprefix $(COMPLETION_DIR)/,$(BASH_COMPLETIONS) $(ZSH_COMPLETIONS))
+tests ?= --workspace
+
all:
install: $(COMPILED_BINS) $(SHELL_COMPLETION_FILES)
@@ -158,3 +160,6 @@ deb-ui: $(UI_DIR)
dsc-ui: $(UI_DIR)
$(MAKE) -C $(UI_DIR) dsc
dcmd mv $(UI_DIR)/proxmox-datacenter-manager-ui*.dsc .
+
+test:
+ $(CARGO) test $(tests) $(CARGO_BUILD_ARGS)
--
2.47.3
More information about the pdm-devel
mailing list