]> git.ipfire.org Git - thirdparty/util-linux.git/blob - tests/ts/liblastlog2/dlopen
lastlog2 - Y2038 safe version of lastlog
[thirdparty/util-linux.git] / tests / ts / liblastlog2 / dlopen
1 #!/bin/bash
2
3 TS_TOPDIR="${0%/*}/../.."
4 TS_DESC="dlopen"
5
6 . "$TS_TOPDIR"/functions.sh
7 ts_init "$*"
8
9 # incorrect warning: top_builddir is referenced but not assigned.
10 # shellcheck disable=SC2154
11 if [ -e "$top_builddir/meson.conf" ]; then
12 #meson build
13 libpath=${top_builddir}/liblastlog2
14 else
15 #automake/autoconf build
16 libpath=${top_builddir}/.libs
17 fi
18
19 ts_check_test_command $TS_HELPER_LIBLASTLOG2_DLOPEN
20
21 $TS_HELPER_LIBLASTLOG2_DLOPEN ${libpath}/liblastlog2.so >/dev/null || ts_failed "returned an error"
22
23 ts_finalize