mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
9da2466609
- It also provides typing info (close #650) - Enhance the test suite - Remove deprecated PE functions
30 lines
656 B
Python
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()
|