From: Christian Ebner <c.ebner@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 2/2] build-sys: add make target for test
Date: Wed, 29 Oct 2025 14:14:02 +0100 [thread overview]
Message-ID: <20251029131402.595987-3-c.ebner@proxmox.com> (raw)
In-Reply-To: <20251029131402.595987-1-c.ebner@proxmox.com>
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@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
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-10-29 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 13:14 [pdm-devel] [PATCH datacenter-manager 0/2] fix tests and run them on package build Christian Ebner
2025-10-29 13:14 ` [pdm-devel] [PATCH datacenter-manager 1/2] server: api: fix test for is remote only cases Christian Ebner
2025-10-29 13:14 ` Christian Ebner [this message]
2025-10-29 13:50 ` [pdm-devel] applied-series: [PATCH datacenter-manager 0/2] fix tests and run them on package build Wolfgang Bumiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251029131402.595987-3-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox