mirror of
https://github.com/m-labs/artiq.git
synced 2025-02-08 08:35:22 +08:00
34 lines
966 B
Python
34 lines
966 B
Python
# -*- python -*-
|
|
|
|
import os
|
|
import sys
|
|
import lit.util
|
|
import lit.formats
|
|
|
|
root = os.path.join(os.path.dirname(__file__), "..")
|
|
|
|
config.name = "ARTIQ"
|
|
config.test_format = lit.formats.ShTest()
|
|
config.suffixes = [".py"]
|
|
config.excludes = ["not.py", "device_db.py"]
|
|
|
|
if os.getenv("COVERAGE"):
|
|
config.environment["COVERAGE_FILE"] = os.path.join(root, "..", ".coverage")
|
|
python = "coverage run --parallel-mode --source=artiq"
|
|
else:
|
|
python = sys.executable
|
|
config.substitutions.append( ("%python", python) )
|
|
|
|
if os.getenv("PYTHONPATH"):
|
|
config.environment["PYTHONPATH"] = os.getenv("PYTHONPATH")
|
|
|
|
not_ = "{} {}".format(sys.executable, os.path.join(root, "lit", "not.py"))
|
|
config.substitutions.append( ("%not", not_) )
|
|
|
|
if os.name == "posix":
|
|
config.environment["LIBARTIQ_SUPPORT"] = os.getenv("LIBARTIQ_SUPPORT")
|
|
config.environment["RUST_BACKTRACE"] = "1"
|
|
|
|
config.available_features.add("exceptions")
|
|
config.available_features.add("time")
|