[pve-devel] [PATCH v3 pve-common 02/12] test: add directory for tests of PVE::Path module

Max Carrara m.carrara at proxmox.com
Thu Jan 9 15:48:08 CET 2025


Add the test/Path directory as well as test/Path/Makefile, containing
the scaffolding for tests regarding PVE::Path.

Include test/Path as subdirectory in test/Makefile, so
test/Path/Makefile runs when the other tests run, too.

Signed-off-by: Max Carrara <m.carrara at proxmox.com>
---
Changes v2 --> v3:
  * None

Changes v1 --> v2:
  * NEW: Split from patch 02

 test/Makefile      |  5 ++++-
 test/Path/Makefile | 16 ++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 test/Path/Makefile

diff --git a/test/Makefile b/test/Makefile
index 4e25a46..5c8f157 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,4 +1,7 @@
-SUBDIRS = etc_network_interfaces
+SUBDIRS = etc_network_interfaces	\
+	  Path				\
+
+
 TESTS = lock_file.test			\
 	calendar_event_test.test	\
 	convert_size_test.test		\
diff --git a/test/Path/Makefile b/test/Path/Makefile
new file mode 100644
index 0000000..d091036
--- /dev/null
+++ b/test/Path/Makefile
@@ -0,0 +1,16 @@
+TESTS = \
+
+
+TEST_TARGETS = $(addsuffix .t,$(basename ${TESTS}))
+
+all:
+
+.PHONY: check
+
+check: ${TEST_TARGETS}
+
+%.t: %.pl
+	./$<
+
+distclean: clean
+clean:
-- 
2.39.5





More information about the pve-devel mailing list