mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Fixed z3test.py. Execute z3test.py during Z3Py installation.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
db8782e7e7
commit
12882f865f
|
@ -361,6 +361,7 @@ install-python: $(BIN_DIR)/lib$(Z3).@SO_EXT@
|
||||||
@cp python/z3tactics.pyc $(PYTHON_PACKAGE_DIR)
|
@cp python/z3tactics.pyc $(PYTHON_PACKAGE_DIR)
|
||||||
@cp python/z3printer.pyc $(PYTHON_PACKAGE_DIR)
|
@cp python/z3printer.pyc $(PYTHON_PACKAGE_DIR)
|
||||||
@cp $(BIN_DIR)/lib$(Z3).@SO_EXT@ $(PYTHON_PACKAGE_DIR)
|
@cp $(BIN_DIR)/lib$(Z3).@SO_EXT@ $(PYTHON_PACKAGE_DIR)
|
||||||
|
@if python python/z3test.py; then echo "Z3Py was successfully installed."; else echo "Failed to execute Z3Py regressions..."; exit 1; fi
|
||||||
|
|
||||||
uninstall-python:
|
uninstall-python:
|
||||||
@if test $(HAS_PYTHON) -eq 0; then echo "Python is not available in your system."; exit 1; fi
|
@if test $(HAS_PYTHON) -eq 0; then echo "Python is not available in your system."; exit 1; fi
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
import z3, doctest
|
import z3, doctest
|
||||||
import sys, re
|
|
||||||
|
|
||||||
if re.compile("64 bit").search(sys.version):
|
r = doctest.testmod(z3)
|
||||||
z3.init("..\\x64\\external_64\\z3.dll")
|
if r.failed != 0:
|
||||||
else:
|
exit(1)
|
||||||
z3.init("..\\external\\z3.dll")
|
|
||||||
|
|
||||||
doctest.testmod(z3)
|
|
||||||
|
|
Loading…
Reference in a new issue