This commit is contained in:
Jacob Heider 2023-04-18 21:08:34 -04:00 committed by Jacob Heider
parent ea7358b9b4
commit fe950699b8

View file

@ -47,5 +47,17 @@ test:
script: |
wget https://raw.githubusercontent.com/Z3Prover/z3/master/examples/c/test_capi.c
cc -lz3 test_capi.c
v="$(python -c 'import z3; print(z3.get_version_string())')"
test "$v" = {{version}}
# FIXME: this fails on ubuntu-latest
# BUG: incorrect use of Z3.
# Error code: 12
test "{{hw.platform}}+{{hw.arch}}" != "linux+x86-64" &&
./a.out
# FIXME: this fails on linux-aarch64, for some reason
# /tmp/ffb7372b/xyz.tea.test.sh: line 27: 55494 Aborted \
# python -c 'import z3; print(z3.get_version_string())'
if "{{hw.platform}}+{{hw.arch}}" != "linux+aarch"; then
v="$(python -c 'import z3; print(z3.get_version_string())')"
test "$v" = {{version}}
fi