mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 18:45:33 +00:00
Fix up z3test to a) exist and b) work
This commit is contained in:
parent
cf56da8482
commit
4801a27c2d
5 changed files with 14 additions and 9 deletions
|
@ -5,9 +5,16 @@
|
|||
#
|
||||
# Author: Leonardo de Moura (leonardo)
|
||||
############################################
|
||||
import z3, doctest
|
||||
import z3, doctest, sys
|
||||
|
||||
if len(sys.argv) < 2 or sys.argv[1] == 'z3':
|
||||
r = doctest.testmod(z3.z3)
|
||||
elif sys.argv[1] == 'z3num':
|
||||
r = doctest.testmod(z3.z3num)
|
||||
else:
|
||||
print 'Usage: z3test.py (z3 | z3num)'
|
||||
sys.exit(1)
|
||||
|
||||
r = doctest.testmod(z3)
|
||||
if r.failed != 0:
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue