From: Stefano Lattarini Date: Mon, 22 Dec 2014 11:39:05 +0000 (+0100) Subject: maint: make output of 'gen-testsuite-part' deterministic X-Git-Tag: v1.15~8^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc6916ef499014b71e874924f1077e8c0604f89;p=thirdparty%2Fautomake.git maint: make output of 'gen-testsuite-part' deterministic So that diffs displayed by the 'compare-autodiffs' target are less spurious and more useful. * gen-testsuite-part: Sort keys of %deps_extractor, %wrapper_setups and %depmodes before iterating on them. Signed-off-by: Stefano Lattarini --- diff --git a/gen-testsuite-part b/gen-testsuite-part index 3bd5c9f01..32158bac2 100755 --- a/gen-testsuite-part +++ b/gen-testsuite-part @@ -297,8 +297,9 @@ foreach my $test (@all_tests) $wrapper_setups{$test} = \@setups if @setups; } # And now create all the wrapper tests. -while (my ($wrapped_test, $setup_list) = each %wrapper_setups) +for my $wrapped_test (sort keys %wrapper_setups) { + my $setup_list = $wrapper_setups{$wrapped_test}; (my $base = $wrapped_test) =~ s/\.([^.]*)$//; my $suf = $1 or die "$me: test '$wrapped_test' lacks a suffix\n"; my $count = 0; @@ -359,7 +360,7 @@ my %depmodes = foreach my $lt (TRUE, FALSE) { - foreach my $m (keys %depmodes) + foreach my $m (sort keys %depmodes) { my $planned = ($lt && $m eq "auto") ? 84 : 28; my @required = @@ -414,8 +415,9 @@ print <{dist_prereqs} || ""; my $nodist_prereqs = $x->{nodist_prereqs} || ""; my @tests = grep { line_match $x->{line_matcher}, $_ } @all_tests;