mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
18 lines
433 B
Python
18 lines
433 B
Python
#!/usr/bin/env python3
|
|
|
|
import unittest
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
import os
|
|
if not hasattr(unittest.defaultTestLoader, "discover"):
|
|
print("Python unittest discovery missing. Requires Python 3.0 or newer.") # noqa
|
|
sys.exit(0)
|
|
|
|
os.chdir("..")
|
|
suite = unittest.defaultTestLoader.discover(
|
|
start_dir=".",
|
|
pattern="*.py"
|
|
)
|
|
unittest.TextTestRunner().run(suite)
|