upload-pve: ${PVE_DEB}
tar cf - ${PVE_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
-test.img:
- truncate -s 2G test.img
+%.img:
+ truncate -s 2G $@
check-pve: ${PVE_DEB} test.img
rm -rf testdir
dpkg -X ${PVE_DEB} testdir
G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
+check-pve-multidisks: ${PVE_DEB} test.img test2.img test3.img test4.img
+ rm -rf testdir
+ dpkg -X ${PVE_DEB} testdir
+ G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img,test2.img,test3.img,test4.img
+
check-pmg: ${PMG_DEB} test.img
rm -rf testdir
dpkg -X ${PMG_DEB} testdir
.phony: clean
clean:
make -C html-common clean
- rm -rf *~ *.deb target build packages packages.tmp testdir test.img pve-final.pkglist *.buildinfo *.changes country.dat final.pkglist
+ rm -rf *~ *.deb target build packages packages.tmp testdir test*.img pve-final.pkglist *.buildinfo *.changes country.dat final.pkglist
find . -name '*~' -exec rm {} ';'
my $res = ();
if ($opt_testmode) {
- push @$res, [-1, $opt_testmode, int((-s $opt_testmode)/512), "TESTDISK"];
+ my @disks = split /,/, $opt_testmode;
+
+ for my $disk (@disks) {
+ push @$res, [-1, $disk, int((-s $disk)/512), "TESTDISK"];
+ }
return $res;
}