From: Christoph Heiss Date: Wed, 6 Dec 2023 11:34:54 +0000 (+0100) Subject: buildsys: setup proper test environment for testsuite X-Git-Url: https://git.proxmox.com/?p=pve-installer.git;a=commitdiff_plain;h=0fb71c2c21a636433936ec35e3b6f546a9e357aa buildsys: setup proper test environment for testsuite 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 --- diff --git a/Makefile b/Makefile index fea09c5..f0c361b 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)