2017-06-06 00:41:13 +00:00
|
|
|
srcdir="$(atf_get_srcdir)"
|
|
|
|
export PATH="$srcdir/..:${PATH}"
|
|
|
|
|
|
|
|
#--- begin windows kludge ---
|
|
|
|
# When building with Visual Studio, binaries are in a subdirectory named after the configration...
|
|
|
|
# and the configuration is not known unless you're in the IDE, or something.
|
|
|
|
# So just guess. This won't work well if you build more than one configuration.
|
|
|
|
the_configuration=""
|
|
|
|
for configuration in Debug Release RelWithDebInfo
|
|
|
|
do
|
|
|
|
if test -d "$srcdir/../$configuration"
|
|
|
|
then
|
|
|
|
if test "$the_configuration" != ""
|
|
|
|
then
|
|
|
|
echo "test_env.sh: FAIL: more than one configuration found"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
the_configuration=$configuration
|
|
|
|
export PATH="$srcdir/../${configuration}:${PATH}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
#--- end kludge ---
|
|
|
|
|
2016-09-18 20:48:13 +00:00
|
|
|
selfdir="@abs_top_srcdir@/tests"
|
2018-04-03 05:46:35 +00:00
|
|
|
LIBRARY_PATH_ENV="LIBRARY_PATH"
|
2016-09-18 20:48:13 +00:00
|
|
|
PATH_SEP=":"
|
2021-06-23 12:09:05 +00:00
|
|
|
SYSROOT_DIR="${selfdir}"
|
2017-06-06 00:41:13 +00:00
|
|
|
case "$(uname -s)" in
|
2018-04-03 05:46:35 +00:00
|
|
|
Haiku) LIBRARY_PATH_ENV="BELIBRARIES";;
|
2017-06-06 00:41:13 +00:00
|
|
|
esac
|
2016-09-18 20:48:13 +00:00
|
|
|
|
2019-07-12 13:23:36 +00:00
|
|
|
prefix="@prefix@"
|
|
|
|
exec_prefix="@exec_prefix@"
|
|
|
|
datarootdir="@datarootdir@"
|
2017-06-24 17:45:44 +00:00
|
|
|
pcpath="@PKG_DEFAULT_PATH@"
|
2017-01-23 05:21:51 +00:00
|
|
|
|
2016-09-18 20:48:13 +00:00
|
|
|
tests_init()
|
|
|
|
{
|
|
|
|
TESTS="$@"
|
|
|
|
export TESTS
|
|
|
|
for t ; do
|
|
|
|
atf_test_case $t
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
atf_init_test_cases() {
|
|
|
|
for t in ${TESTS}; do
|
|
|
|
atf_add_test_case $t
|
|
|
|
done
|
|
|
|
}
|