From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 57E931FF179 for ; Wed, 29 Oct 2025 14:14:16 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C55ACA3C9; Wed, 29 Oct 2025 14:14:49 +0100 (CET) From: Christian Ebner To: pdm-devel@lists.proxmox.com Date: Wed, 29 Oct 2025 14:14:02 +0100 Message-ID: <20251029131402.595987-3-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251029131402.595987-1-c.ebner@proxmox.com> References: <20251029131402.595987-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1761743643541 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.048 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH datacenter-manager 2/2] build-sys: add make target for test X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" 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 --- 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