1srcdir="$(atf_get_srcdir)" 2export PATH="$srcdir/..:${PATH}" 3 4#--- begin windows kludge --- 5# When building with Visual Studio, binaries are in a subdirectory named after the configration... 6# and the configuration is not known unless you're in the IDE, or something. 7# So just guess. This won't work well if you build more than one configuration. 8the_configuration="" 9for configuration in Debug Release RelWithDebInfo 10do 11 if test -d "$srcdir/../$configuration" 12 then 13 if test "$the_configuration" != "" 14 then 15 echo "test_env.sh: FAIL: more than one configuration found" 16 exit 1 17 fi 18 the_configuration=$configuration 19 export PATH="$srcdir/../${configuration}:${PATH}" 20 fi 21done 22#--- end kludge --- 23 24selfdir="@abs_top_srcdir@/tests" 25LIBRARY_PATH_ENV="LIBRARY_PATH" 26PATH_SEP=":" 27SYSROOT_DIR="${selfdir}" 28case "$(uname -s)" in 29Haiku) LIBRARY_PATH_ENV="BELIBRARIES";; 30esac 31 32prefix="@prefix@" 33exec_prefix="@exec_prefix@" 34datarootdir="@datarootdir@" 35pcpath="@PKG_DEFAULT_PATH@" 36 37tests_init() 38{ 39 TESTS="$@" 40 export TESTS 41 for t ; do 42 atf_test_case $t 43 done 44} 45 46atf_init_test_cases() { 47 for t in ${TESTS}; do 48 atf_add_test_case $t 49 done 50} 51