2019-05-15 06:56:31 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-07-27 08:29:07 +08:00
|
|
|
"""
|
|
|
|
Called by tox.ini: uses the generated executable to run the tests in ./tests/
|
|
|
|
directory.
|
|
|
|
"""
|
2018-05-23 22:48:46 +08:00
|
|
|
if __name__ == "__main__":
|
2016-07-27 08:29:07 +08:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2018-05-23 22:48:46 +08:00
|
|
|
executable = os.path.join(os.getcwd(), "dist", "runtests_script", "runtests_script")
|
|
|
|
if sys.platform.startswith("win"):
|
|
|
|
executable += ".exe"
|
|
|
|
sys.exit(os.system("%s tests" % executable))
|