mirror of
https://github.com/Z3Prover/z3
synced 2026-06-03 07:37:54 +00:00
Add post-install testing for ocaml binding. (#5617)
* Add path flags for cc loader (linux). * Fix os linking and loading problem (maybe on #4840). * Add post-install test of OCaml binding on ubuntu. * Minor. * Tentative CI for macos.
This commit is contained in:
parent
3a3cef8fce
commit
066076557f
2 changed files with 126 additions and 5 deletions
|
|
@ -44,7 +44,42 @@ jobs:
|
|||
- template: scripts/test-regressions.yml
|
||||
|
||||
- job: "Ubuntu20OCaml"
|
||||
displayName: "Ubuntu 20 with ocaml"
|
||||
displayName: "Ubuntu 20 with OCaml"
|
||||
pool:
|
||||
vmImage: "Ubuntu-20.04"
|
||||
steps:
|
||||
- script: sudo apt-get install ocaml opam libgmp-dev
|
||||
- script: opam init -y
|
||||
- script: eval `opam config env`; opam install zarith ocamlfind -y
|
||||
- script: eval `opam config env`; python scripts/mk_make.py --ml
|
||||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
eval `opam config env`
|
||||
make -j3
|
||||
make -j3 examples
|
||||
make -j3 test-z3
|
||||
./ml_example.byte
|
||||
./ml_example
|
||||
cd ..
|
||||
- script: eval `opam config env`; ocamlfind install z3 build/api/ml/* -dll build/libz3.*
|
||||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
eval `opam config env`
|
||||
make -j3
|
||||
make -j3 _ex_ml_example_post_install
|
||||
./ml_example_shared.byte
|
||||
./ml_example_shared_custom.byte
|
||||
./ml_example_shared
|
||||
cd ..
|
||||
- template: scripts/test-z3.yml
|
||||
- template: scripts/test-regressions.yml
|
||||
- template: scripts/generate-doc.yml
|
||||
|
||||
|
||||
- job: "Ubuntu20OCamlStatic"
|
||||
displayName: "Ubuntu 20 with OCaml on z3-static"
|
||||
pool:
|
||||
vmImage: "Ubuntu-20.04"
|
||||
steps:
|
||||
|
|
@ -55,17 +90,28 @@ jobs:
|
|||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
eval `opam config env`
|
||||
eval `opam config env`
|
||||
make -j3
|
||||
make -j3 examples
|
||||
make -j3 test-z3
|
||||
./ml_example.byte
|
||||
./ml_example
|
||||
cd ..
|
||||
- script: eval `opam config env`; ocamlfind install z3-static build/api/ml/* build/libz3-static.a
|
||||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
eval `opam config env`
|
||||
make -j3
|
||||
make -j3 _ex_ml_example_post_install
|
||||
./ml_example_static.byte
|
||||
./ml_example_static_custom.byte
|
||||
./ml_example_static
|
||||
cd ..
|
||||
- template: scripts/test-z3.yml
|
||||
- template: scripts/test-regressions.yml
|
||||
- template: scripts/generate-doc.yml
|
||||
|
||||
|
||||
- job: "LinuxMSan"
|
||||
displayName: "Ubuntu build - cmake"
|
||||
condition: eq(0,1)
|
||||
|
|
@ -252,3 +298,37 @@ jobs:
|
|||
# - template: scripts/test-examples-cmake.yml
|
||||
- template: scripts/test-regressions.yml
|
||||
# - template: scripts/test-java-cmake.yml
|
||||
|
||||
|
||||
- job: "MacOSOCaml"
|
||||
displayName: "MacOS build with OCaml"
|
||||
pool:
|
||||
vmImage: "macOS-latest"
|
||||
steps:
|
||||
- script: brew install opam
|
||||
- script: opam init -y
|
||||
- script: eval `opam config env`; opam install zarith ocamlfind -y
|
||||
- script: eval `opam config env`; python scripts/mk_make.py --ml
|
||||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
make -j3
|
||||
make -j3 examples
|
||||
make -j3 test-z3
|
||||
./ml_example.byte
|
||||
./ml_example
|
||||
cd ..
|
||||
- script: eval `opam config env`; ocamlfind install z3 build/api/ml/* -dll build/libz3.*
|
||||
- script: |
|
||||
set -e
|
||||
cd build
|
||||
eval `opam config env`
|
||||
make -j3
|
||||
make -j3 _ex_ml_example_post_install
|
||||
./ml_example_shared.byte
|
||||
./ml_example_shared_custom.byte
|
||||
./ml_example_shared
|
||||
cd ..
|
||||
# Skip as dead-slow in debug mode:
|
||||
# - template: scripts/test-z3.yml
|
||||
- template: scripts/test-regressions.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue