setup-env   [plain text]


#!/bin/sh

hh="/System/Library/PrivateFrameworks/Heimdal.framework/Helpers"
tt="/usr/local/libexec/heimdal/bin"
testbase="/usr/local/libexec/heimdal/tests"
EGREP="/usr/bin/grep -E"

# Meant to be sourced (source or .) by the tester application, offers
# most commands in heimdal as variables

# regular apps
hxtool="${TESTS_ENVIRONMENT} ${hh}/hxtool${asan}"
iprop_log="${TESTS_ENVIRONMENT} ${hh}/iprop-log${asan}"
ipropd_master="${TESTS_ENVIRONMENT} ${hh}/ipropd-master${asan}"
ipropd_slave="${TESTS_ENVIRONMENT} ${hh}/ipropd-slave${asan}"
kadmin="${TESTS_ENVIRONMENT} /usr/sbin/kadmin${asan}"
kadmind="${TESTS_ENVIRONMENT} ${hh}/kadmind${asan}"
kdc="${TESTS_ENVIRONMENT} ${hh}/kdc${asan} --no-sandbox"
kdestroy="${TESTS_ENVIRONMENT} /usr/bin/kdestroy${asan}"
kdigest="${TESTS_ENVIRONMENT} ${hh}/kdigest${asan}"
kgetcred="${TESTS_ENVIRONMENT} /usr/bin/kgetcred${asan}"
kimpersonate="${TESTS_ENVIRONMENT} ${hh}/kimpersonate${asan}"
kinit="${TESTS_ENVIRONMENT} /usr/bin/kinit${asan}"
kcc_binary="/usr/bin/kcc${asan}"
klist="${TESTS_ENVIRONMENT} ${kcc_binary} list"
kpasswd="${TESTS_ENVIRONMENT} /usr/bin/kpasswd${asan}"
kpasswdd="${TESTS_ENVIRONMENT} ${hh}/kpasswdd${asan}"
kswitch="${TESTS_ENVIRONMENT} ${kcc_binary} kswitch"
ktutil="${TESTS_ENVIRONMENT} /usr/sbin/ktutil${asan}"
hodadmin="${TESTS_ENVIRONMENT} ${hh}/hod-admin${asan}"
gsstool="${TESTS_ENVIRONMENT} ${hh}/gsstool${asan}"

# regression test tools
test_ap_req="${TESTS_ENVIRONMENT} ${tt}/test_ap-req${asan}"
test_gic="${TESTS_ENVIRONMENT} ${tt}/test_gic${asan}"
test_renew="${TESTS_ENVIRONMENT} ${tt}/test_renew${asan}"
test_ntlm="${TESTS_ENVIRONMENT} ${tt}/test_ntlm${asan}"
test_gssntlm="${TESTS_ENVIRONMENT} ${tt}/test_gssntlm${asan}"
test_gssscram="${TESTS_ENVIRONMENT} ${tt}/test_gssscram${asan}"
test_context="${TESTS_ENVIRONMENT} ${tt}/test_context${asan}"
test_gss_fuzzer="${TESTS_ENVIRONMENT} ${tt}/test_gss_fuzzer${asan}"
test_acquire_cred="${TESTS_ENVIRONMENT} ${tt}/test_acquire_cred${asan}"
test_kcred="${TESTS_ENVIRONMENT} ${tt}/test_kcred${asan}"
rkpty="${TESTS_ENVIRONMENT} ${tt}/rkpty${asan}"
test_commonauth="${TESTS_ENVIRONMENT} ${tt}/test_commonauth${asan}"
test_scram="${TESTS_ENVIRONMENT} ${tt}/test_scram${asan}"
test_sendto="${TESTS_ENVIRONMENT} ${tt}/test_sendto${asan}"
http_client="${TESTS_ENVIRONMENT} ${tt}/http_client${asan}"
winmount="${TESTS_ENVIRONMENT} ${tt}/heimdal-win-mount.py"
test_gsscf="${TESTS_ENVIRONMENT} ${tt}/test_gsscf${asan}"

# misc apps
have_db="${testbase}/db/have-db"
leaks_kill="${tt}/leaks-kill.sh"
wait_kdc="${testbase}/kdc/wait-kdc.sh"

# data
hx509_data="/usr/local/libexec/heimdal/certs"

# malloc debug
HEIM_MALLOC_DEBUG="MallocStackLoggingNoCompact=1 MallocErrorAbort=1 MallocLogFile=/tmp/heim-malloc-log"