]> git.proxmox.com Git - pve-installer.git/commitdiff
buildsys: create complete cd-info for test
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Jun 2023 05:48:27 +0000 (07:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Jun 2023 05:48:27 +0000 (07:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index d6ba0d14c83fd129c253ca6ef7dd7e4469bfb381..ff491016c56aa3f9203836387813a8ffe9043971 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,23 +57,35 @@ prepare-check-env: $(DEB)
 
 cd-info.test: PRODUCT ?= pve
 cd-info.test:
-       printf '%s\n' "PRODUCT='$(PRODUCT)'" >$@.tmp
+       printf '%s\n' "PRODUCT='$(or $(PRODUCT), pve)'" >$@.tmp
+       printf '%s\n' "PRODUCTLONG='$(or $(PRODUCTLONG), Proxmox VE)'" >>$@.tmp
+       printf '%s\n' "RELEASE='$(or $(RELEASE), 42.1)'" >>$@.tmp
+       printf '%s\n' "ISORELEASE='$(or $(ISORELEASE), 1)'" >>$@.tmp
+       printf '%s\n' "ISONAME='$(or $(ISONAME), proxmox-ve)'" >>$@.tmp
        mv $@.tmp $@
 
 check-pve: prepare-check-env test.img
-       rm -f cd-info.test; $(MAKE) PRODUCT=pve cd-info.test
+       rm -f cd-info.test; $(MAKE) cd-info.test
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
 
 check-pve-multidisks: prepare-check-env test.img test2.img test3.img test4.img test5.big.img
-       rm -f cd-info.test; $(MAKE) PRODUCT=pve cd-info.test
+       rm -f cd-info.test; $(MAKE) cd-info.test
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img,test2.img,test3.img,test4.img,test5.big.img
 
 check-pmg: prepare-check-env test.img
-       rm -f cd-info.test; $(MAKE) PRODUCT=pmg cd-info.test
+       rm -f cd-info.test; $(MAKE) \
+           PRODUCT=pmg \
+           PRODUCTLONG="Proxmox Mail Gateway" \
+           ISONAME='proxmox-mail-gateway' \
+           cd-info.test
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
 
 check-pbs: prepare-check-env test.img
-       rm -f cd-info.test; $(MAKE) PRODUCT=pbs cd-info.test
+       rm -f cd-info.test; $(MAKE) \
+           PRODUCT='pbs' \
+           PRODUCTLONG='Proxmox Backup Server' \
+           ISONAME='proxmox-backup-server' \
+           cd-info.test
        G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img