mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-11-29 22:02:16 +00:00
test(uftp): require uftp in every Ubuntu target and match its changelog
Every target section of debs-manifest.conf must list uftp, and its pin must match uftp/debian/changelog. CI compiles uftp/sbuild.pl and runs perlcritic on it.
This commit is contained in:
@@ -47,6 +47,7 @@ jobs:
|
||||
perl -c ipxe-xcat/verify-payload.pl
|
||||
rpmspec -P ipxe-xcat/ipxe-xcat.spec >/dev/null
|
||||
perl -c uftp/mockbuild.pl
|
||||
perl -c uftp/sbuild.pl
|
||||
rpmspec -P uftp/uftp.spec >/dev/null
|
||||
rpmspec -P \
|
||||
-D 'genesis_arch x86_64' \
|
||||
@@ -70,7 +71,8 @@ jobs:
|
||||
t/genesis_openembedded_consumer.t \
|
||||
t/ipxe_xcat_payload.t \
|
||||
t/lib/XCAT/GenesisReleaseTest.pm \
|
||||
uftp/mockbuild.pl
|
||||
uftp/mockbuild.pl \
|
||||
uftp/sbuild.pl
|
||||
|
||||
- name: Run package tests
|
||||
run: |
|
||||
|
||||
@@ -302,6 +302,12 @@ SKIP: {
|
||||
is_deeply(\@miss_go, [], 'goconserver present in every manifest target')
|
||||
or diag("missing goconserver in: @miss_go");
|
||||
|
||||
# uftp is optional for xCAT, but a management node and a diskless image of every target need
|
||||
# UFTP 5 to distribute images over UFTP, and Ubuntu ships UFTP 4.
|
||||
my @miss_uftp = grep { !exists $m{$_}{'uftp'} } @targets;
|
||||
is_deeply(\@miss_uftp, [], 'uftp present in every manifest target')
|
||||
or diag("missing uftp in: @miss_uftp");
|
||||
|
||||
# The noarch boot components (syslinux-xcat, grub2-xcat, elilo-xcat, xnba-undi, ipxe-xcat) are
|
||||
# Architecture:all single-producer (built ONCE on amd64) but REQUIRED-PRESENT on EVERY target
|
||||
# incl. ppc64el and riscv64, so the gate verifies those repos actually carry them (matches the
|
||||
@@ -719,6 +725,7 @@ STUB
|
||||
'elilo-xcat' => 'elilo',
|
||||
'xnba-undi' => 'xnba',
|
||||
'ipxe-xcat' => 'ipxe-xcat',
|
||||
'uftp' => 'uftp',
|
||||
);
|
||||
my %manifest = read_manifest("$root/debs-manifest.conf");
|
||||
my %seen;
|
||||
|
||||
Reference in New Issue
Block a user