Add option for before-after or just ref-drivers

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-10-17 12:24:37 +02:00
parent 2bb2f15772
commit f6e6df9dbf

View File

@ -48,6 +48,8 @@ IGNORE="md mdx shax" # accelerated
IGNORE="$IGNORE entropy hmac_drbg random" # disabled (ext. RNG) IGNORE="$IGNORE entropy hmac_drbg random" # disabled (ext. RNG)
IGNORE="$IGNORE psa_crypto_init" # needs internal RNG IGNORE="$IGNORE psa_crypto_init" # needs internal RNG
IGNORE="$IGNORE hkdf" # disabled IGNORE="$IGNORE hkdf" # disabled
# Compare only "reference vs driver" or also "before vs after"?
BEFORE_AFTER=1 # 0 or 1
# ----- END edit this ----- # ----- END edit this -----
set -eu set -eu
@ -63,26 +65,28 @@ record() {
make check make check
} }
# save current HEAD if [ "$BEFORE_AFTER" -eq 1 ]; then
HEAD=$(git branch --show-current) # save current HEAD
HEAD=$(git branch --show-current)
# get the numbers before this PR for default and full # get the numbers before this PR for default and full
cleanup cleanup
git checkout $(git merge-base HEAD development) git checkout $(git merge-base HEAD development)
record "before-default" record "before-default"
cleanup cleanup
scripts/config.py full scripts/config.py full
record "before-full" record "before-full"
# get the numbers now for default and full # get the numbers now for default and full
cleanup cleanup
git checkout $HEAD git checkout $HEAD
record "after-default" record "after-default"
cleanup cleanup
scripts/config.py full scripts/config.py full
record "after-full" record "after-full"
fi
# get the numbers now for driver-only and reference # get the numbers now for driver-only and reference
cleanup cleanup
@ -147,6 +151,8 @@ compare_builds () {
} }
populate_suites populate_suites
compare_builds before-default after-default if [ "$BEFORE_AFTER" -eq 1 ]; then
compare_builds before-full after-full compare_builds before-default after-default
compare_builds before-full after-full
fi
compare_builds reference drivers compare_builds reference drivers