mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-10 14:17:33 +00:00
tests: test if build is reproducible
This commit is contained in:
parent
32785f6360
commit
c3fb176f24
@ -38,3 +38,18 @@ teardown() {
|
||||
options=lib64 $ABUILD
|
||||
$ABUILD cleanpkg
|
||||
}
|
||||
|
||||
@test "abuild: verify that packages are reproducible built" {
|
||||
cd testrepo/pkg1
|
||||
$ABUILD
|
||||
arch=$($ABUILD -A)
|
||||
pkgs=$($ABUILD listpkg)
|
||||
checksums=$( cd "$REPODEST"/testrepo/$arch && md5sum $pkgs)
|
||||
echo "$checksums"
|
||||
$ABUILD cleanpkg all
|
||||
checksums2=$(cd "$REPODEST"/testrepo/$arch && md5sum $pkgs)
|
||||
echo "$checksums2"
|
||||
[ "$checksums" = "$checksums2" ]
|
||||
$ABUILD cleanpkg
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user