2016-07-27 08:29:07 +08:00
|
|
|
"""
|
|
|
|
Called by tox.ini: uses the generated executable to run the tests in ./tests/
|
|
|
|
directory.
|
|
|
|
"""
|
2024-01-31 03:34:23 +08:00
|
|
|
|
2016-07-27 08:29:07 +08:00
|
|
|
if __name__ == "__main__":
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script")
|
|
|
|
if sys.platform.startswith("win"):
|
|
|
|
executable += ".exe"
|
2017-07-17 07:25:06 +08:00
|
|
|
sys.exit(os.system("%s tests" % executable))
|