80_sockets.py 331 B

123456789101112131415
  1. #!/usr/bin/python
  2. import os, sys, mmap
  3. from regression import Regression
  4. loader = sys.argv[1]
  5. # Running getsockopt
  6. regression = Regression(loader, "getsockopt", None)
  7. regression.add_check(name="getsockopt",
  8. check=lambda res: "getsockopt: Got socket type OK" in res[0].out)
  9. rv = regression.run_checks()
  10. if rv: sys.exit(rv)