Files
lief-project-LIEF/tests/run_tools_check.py
T
Romain Thomas 9da2466609 Improve the LIEF Python build system by using pyproject.toml
- It also provides typing info (close #650)
- Enhance the test suite
- Remove deprecated PE functions
2023-02-19 20:19:03 +01:00

30 lines
656 B
Python

import pytest
import os
import argparse
from pathlib import Path
CWD = Path(__file__).parent
def main():
parser = argparse.ArgumentParser()
parser.add_argument("build_dir")
args = parser.parse_args()
os.environ.setdefault("LIEF_BUILD_DIR", args.build_dir)
pytest.main([
CWD / "elf" / "check_bin_examples.py",
CWD / "elf" / "check_python_examples.py",
CWD / "macho" / "check_bin_examples.py",
CWD / "macho" / "check_python_examples.py",
CWD / "pe" / "check_bin_examples.py",
CWD / "pe" / "check_python_examples.py",
"--verbose"
])
if __name__ == "__main__":
main()