1234567891011121314151617181920212223242526 |
- # tests for krb5-1.20.1-h143b758_1 (this is a generated file);
- print('===== testing package: krb5-1.20.1-h143b758_1 =====');
- print('running run_test.py');
- # --- run_test.py (begin) ---
- # just load libfreexl using ctypes
- import os
- import sys
- import ctypes
- import platform
- bits, linkage = platform.architecture()
- bits = bits[:2]
- if sys.platform == 'win32':
- libfreexl = ctypes.CDLL('krb5_%s.dll' % bits)
- elif sys.platform == 'darwin':
- # LD_LIBRARY_PATH not set on OSX or Linux
- path = os.path.expandvars('$PREFIX/lib/libkrb5.dylib')
- libfreexl = ctypes.CDLL(path)
- else:
- path = os.path.expandvars('$PREFIX/lib/libkrb5.so')
- libfreexl = ctypes.CDLL(path)
- # --- run_test.py (end) ---
- print('===== krb5-1.20.1-h143b758_1 OK =====');
|