[pve-devel] [PATCH installer 5/6] buildsys: setup proper test environment for testsuite
Christoph Heiss
c.heiss at proxmox.com
Wed Dec 6 12:34:54 CET 2023
Some test to come will need a proper environment.
`prepare-test-env` can also be generally useful while developing to
quickly set up a new test environment as needed.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6f64c4e..601c836 100644
--- a/Makefile
+++ b/Makefile
@@ -77,8 +77,15 @@ $(DSC): $(BUILDDIR)
sbuild: $(DSC)
sbuild $(DSC)
+.PHONY: prepare-test-env
+prepare-test-env: cd-info.test country.dat test.img
+ rm -rf testdir
+ mkdir -p testdir/var/lib/proxmox-installer/
+ cp -v country.dat testdir/var/lib/proxmox-installer/
+ ./proxmox-low-level-installer -t test.img dump-env
+
.PHONY: test
-test:
+test: prepare-test-env
$(MAKE) -C test check
$(CARGO) test --workspace $(CARGO_BUILD_ARGS)
--
2.42.0
More information about the pve-devel
mailing list