Spaces:
Running
Running
File size: 754 Bytes
1d777c4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# 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 =====');
|