run_test.py 754 B

1234567891011121314151617181920212223242526
  1. # tests for krb5-1.20.1-h143b758_1 (this is a generated file);
  2. print('===== testing package: krb5-1.20.1-h143b758_1 =====');
  3. print('running run_test.py');
  4. # --- run_test.py (begin) ---
  5. # just load libfreexl using ctypes
  6. import os
  7. import sys
  8. import ctypes
  9. import platform
  10. bits, linkage = platform.architecture()
  11. bits = bits[:2]
  12. if sys.platform == 'win32':
  13. libfreexl = ctypes.CDLL('krb5_%s.dll' % bits)
  14. elif sys.platform == 'darwin':
  15. # LD_LIBRARY_PATH not set on OSX or Linux
  16. path = os.path.expandvars('$PREFIX/lib/libkrb5.dylib')
  17. libfreexl = ctypes.CDLL(path)
  18. else:
  19. path = os.path.expandvars('$PREFIX/lib/libkrb5.so')
  20. libfreexl = ctypes.CDLL(path)
  21. # --- run_test.py (end) ---
  22. print('===== krb5-1.20.1-h143b758_1 OK =====');