packages: descriptors: add tests.
The Intel Flash Descriptor files are supposed to be reproducible already, so it's a good idea to add a test for that. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien Bourmault <neox@gnu.org>
This commit is contained in:
parent
5dccbfb4c7
commit
6721094e10
|
@ -50,3 +50,5 @@ rm -f descriptors/ich9m/*
|
|||
cd descriptors/ich9m/
|
||||
../../ich9utils/ich9gen
|
||||
)
|
||||
|
||||
resources/packages/descriptors/test
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
bdd39f92c5cf272dd05f93ce07d9c02978506c5c8bbf2ce2c372c94742d489270dbedf1bf6f22f52caf7a4028f71c56a7c9abf12f80f6522193c7717c0bcedf5 descriptors/ich9m/ich9fdgbe_16m.bin
|
||||
a39d1b72b76c6a130ff9d11c7067a09588f7785e5b0823dbc4297d2105e05a873bbc19557c7725117bea9f4184bb363855c207d529d70bef4646b129bf0389be descriptors/ich9m/ich9fdgbe_16m_ro.bin
|
||||
c53918cc503c60e0ccdd5d5d057fb2a597527f8a7ac08b911ca0c2c2fd3e7b0f3e21d93bbb17f479a8d988d187505e25d2932f580704593f5afec80dc68a40cc descriptors/ich9m/ich9fdgbe_4m.bin
|
||||
f270ee8ef9492014070a2080d7d969d74f9a6b31405cb2e89c41707b43f2af51309069c63b0ac7148f10d1edfaed73360112b3e324b30d2acb69e100a57262c9 descriptors/ich9m/ich9fdgbe_4m_ro.bin
|
||||
68992c19faaedbde5eab2ea6ae6a13786390a84e682bb05bf3196817cc7cfde318b98ae2da1661a51e8eee30577f18e1492f98f5d92492515ea0d8862d720606 descriptors/ich9m/ich9fdgbe_8m.bin
|
||||
3c26a0f8c324536308f734b6319bbd9998331ab332a0652bceaa21af462d48dc49affbe4bc663dc3230c7deee8140ac28e8fa7303e68bf1f7e4f9b11269eedda descriptors/ich9m/ich9fdgbe_8m_ro.bin
|
||||
3b60e21cf9cdf6bb2e0a908b687293d5bdc667fa3e52c72a6ff82da6bed51cc3c3945b6efb2cd7fb1633376fc0b9335b20edf03a20f708c359181fc6be7c3198 descriptors/ich9m/ich9fdnogbe_16m.bin
|
||||
f52f2a23bccbccc8424b14a4eb68f8bbba17e66807ca562682c47d54fc95635b838e109b05f31942692e657a405acac73643cd0eb5035f4af708938fb24931b4 descriptors/ich9m/ich9fdnogbe_16m_ro.bin
|
||||
9e95fa20bdfe47f7127a3925bb2520eae15a652a10722f90689ab47d5913f95c84324f646bd44aa0e67f5290296b2dd4a5788807fe40f3fdced8d643af336190 descriptors/ich9m/ich9fdnogbe_4m.bin
|
||||
a3dc7ab0d22574e051417d6a141d92b04a6d1ae872c07c2f9b77c3958b23f8bc6bb1e4e87d4d35eae96410dbf826c7da7c6c4b0afa6383feecdcdc68e47e6c25 descriptors/ich9m/ich9fdnogbe_4m_ro.bin
|
||||
16f891eab9eddcb4a06054e3ad17b2ddca1b978fe9df4efee27cb50433da91fea489533243acfbf1454bcb7097fc55f0d42415e339115f40c3cbb34bb93586e2 descriptors/ich9m/ich9fdnogbe_8m.bin
|
||||
7c4ee8d0c764baddf305ff6451ae2c7126ab18589df51a2ec1633a1f3a60f4b99e974e8f95e8128d7e76d61f3928327ae788fd901abe7aa6b9f777a643c68e3a descriptors/ich9m/ich9fdnogbe_8m_ro.bin
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2023-2024 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
. resources/scripts/misc/sysexits.sh
|
||||
|
||||
usage()
|
||||
{
|
||||
progname="$1"
|
||||
|
||||
printf "Usage: %s [options]\n\n" "${progname}"
|
||||
printf "Available options:\n"
|
||||
printf "\t-h, --help\n"
|
||||
printf "\t\tDisplay this help and exit.\n"
|
||||
}
|
||||
|
||||
test_descriptors()
|
||||
{
|
||||
sha512sum -c resources/packages/descriptors/descriptors.sha512
|
||||
}
|
||||
|
||||
if [ $# -eq 1 ] && { [ "$1" = "-h" ] || [ "$1" == "--help" ] ;} ; then
|
||||
usage "${progname}"
|
||||
exit 0
|
||||
elif [ $# -eq 0 ] ; then
|
||||
test_descriptors
|
||||
else
|
||||
usage "${progname}"
|
||||
exit ${EX_USAGE}
|
||||
fi
|
Loading…
Reference in New Issue