Skip to content

Commit

Permalink
IVT: Add check for source archive when Linux/x64 is in the release
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed May 8, 2024
1 parent 4d1779f commit 622fca7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tooling/release_download_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,26 @@ verify_valid_archives() {
fi
done
fi

# If there was an x64 linux version in the release, check for source archive
if ls OpenJDK*-jdk_x64_linux_hotspot_*.tar.gz > /dev/null; then
if ls OpenJDK*-jdk-sources*.tar.gz > /dev/null; then
for A in OpenJDK*-jdk-sources*.tar.gz; do
print_verbose "IVT : Counting files in source ${A}"
if ! tar tfz "${A}" > /dev/null; then
print_error "Failed to verify that ${A} can be extracted"
RC=4
fi
if [ "$(tar tfz "${A}" | wc -l)" -lt 45000 ]; then
print_error "less than 45000 files in source archive ${A} - that does not seem correct"
RC=4
fi
done
else
print_error "IVT: x64 linux tarballs present but no source archive - they should be published together"
fi
fi

}

########################################################################################################################
Expand Down

0 comments on commit 622fca7

Please sign in to comment.