Skip to content
Snippets Groups Projects
Commit 7d84df86 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

ci: Beef up determinism interface test

There have recently been some determinism issues with the simplifier and
documentation. We enable more things to test in the ABI test to check
that we produce interface files deterministically.
parent 6cac9eb8
No related branches found
No related tags found
No related merge requests found
Pipeline #100064 failed
......@@ -753,7 +753,7 @@ function check_interfaces(){
}
function abi_test() {
for i in {1..20}; do info "iteration $i"; run_abi_test; done
for i in {1..10}; do info "iteration $i"; run_abi_test; done
}
function run_abi_test() {
......@@ -761,8 +761,8 @@ function run_abi_test() {
fail "HC not set"
fi
mkdir -p out
OUT="$PWD/out/run1" DIR=$(mktemp -d XXXX-looooooooong) cabal_abi_test -O0
OUT="$PWD/out/run2" DIR=$(mktemp -d XXXX-short) cabal_abi_test -O0
OUT="$PWD/out/run1" DIR=$(mktemp -d XXXX-looooooooong) cabal_abi_test -O1 -haddock
OUT="$PWD/out/run2" DIR=$(mktemp -d XXXX-short) cabal_abi_test -O1 -haddock -dunique-increment=-1 -dinitial-unique=16777215
check_interfaces out/run1 out/run2 abis "Mismatched ABI hash"
check_interfaces out/run1 out/run2 interfaces "Mismatched interface hashes"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment