mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
start making an effort to keep user packages in sync where they can be.
This commit is contained in:
+21
-14
@@ -20,7 +20,7 @@ use strict;
|
|||||||
# > s/^.* (xfs\w+|\*xfs\w+|xlog\w+|\*xlog\w+) \(.*/\1/ && { $count++ }'
|
# > s/^.* (xfs\w+|\*xfs\w+|xlog\w+|\*xlog\w+) \(.*/\1/ && { $count++ }'
|
||||||
# > echo $file
|
# > echo $file
|
||||||
# > done
|
# > done
|
||||||
# (compare this to "srcdiff | fgrep Total:") ... repeat for logprint.
|
# (compare this to "srcdiff | fgrep Total:")
|
||||||
#
|
#
|
||||||
|
|
||||||
die "WORKAREA not set" unless defined $ENV{'WORKAREA'};
|
die "WORKAREA not set" unless defined $ENV{'WORKAREA'};
|
||||||
@@ -30,12 +30,12 @@ my $quiet=0;
|
|||||||
my $usage=0;
|
my $usage=0;
|
||||||
|
|
||||||
foreach (@ARGV) {
|
foreach (@ARGV) {
|
||||||
if (/^-q$/) {
|
if (/^-q$/) {
|
||||||
$quiet++;
|
$quiet++;
|
||||||
} else {
|
} else {
|
||||||
print STDERR "Illegal option $_\n";
|
print STDERR "Illegal option $_\n";
|
||||||
$usage++;
|
$usage++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($usage) {
|
if ($usage) {
|
||||||
@@ -43,6 +43,7 @@ if ($usage) {
|
|||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my @pkglist = qw( attr acl dmapi xfsdump xfsprogs );
|
||||||
my @difflist = qw(
|
my @difflist = qw(
|
||||||
xfs_ag.h xfs_alloc.h xfs_alloc_btree.h xfs_arch.h
|
xfs_ag.h xfs_alloc.h xfs_alloc_btree.h xfs_arch.h
|
||||||
xfs_attr_leaf.h xfs_attr_sf.h xfs_bit.h xfs_bmap.h
|
xfs_attr_leaf.h xfs_attr_sf.h xfs_bit.h xfs_bmap.h
|
||||||
@@ -62,16 +63,22 @@ sub straightdiff {
|
|||||||
my ( $file, $prefix1, $prefix2 ) = @_;
|
my ( $file, $prefix1, $prefix2 ) = @_;
|
||||||
|
|
||||||
`diff $prefix1/$file $prefix2/$file >/dev/null 2>&1`;
|
`diff $prefix1/$file $prefix2/$file >/dev/null 2>&1`;
|
||||||
if (!$quiet) {
|
if (!$quiet) {
|
||||||
print sprintf("\t%-35s ... ", $file);
|
print sprintf("\t%-35s ... ", $file);
|
||||||
if ($? != 0) { print "FAILED\n"; }
|
if ($? != 0) { print "FAILED\n"; }
|
||||||
else { print "ok\n"; }
|
else { print "ok\n"; }
|
||||||
} elsif ($? != 0) {
|
} elsif ($? != 0) {
|
||||||
printf("\t%-35s ... ", $file);
|
printf("\t%-35s ... ", $file);
|
||||||
print "FAILED\n";
|
print "FAILED\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $first = shift @pkglist;
|
||||||
|
foreach (@pkglist) {
|
||||||
|
print "\n=== Checking $_ package ===\n";
|
||||||
|
straightdiff 'buildrules', "cmd/$first/include", "cmd/$_/include";
|
||||||
|
straightdiff 'buildmacros', "cmd/$first/include", "cmd/$_/include";
|
||||||
|
}
|
||||||
print "\n=== Checking headers ===\n";
|
print "\n=== Checking headers ===\n";
|
||||||
foreach (@difflist) {
|
foreach (@difflist) {
|
||||||
straightdiff $_, 'cmd/xfsprogs/include', 'linux/fs/xfs';
|
straightdiff $_, 'cmd/xfsprogs/include', 'linux/fs/xfs';
|
||||||
|
|||||||
Reference in New Issue
Block a user