| 1 |
# This file builds and runs the unit tests |
| 2 |
|
| 3 |
libdl = cc.find_library('dl') |
| 4 |
|
| 5 |
|
| 6 |
tst_dlopen_exe = executable('tst-dlopen', 'tst-dlopen.c', dependencies : libdl, |
| 7 |
include_directories : inc) |
| 8 |
test('tst-dlopen', tst_dlopen_exe, args : ['pam_wtmpdb.so']) |
| 9 |
|
| 10 |
tst_y2038_64bit_time_t = executable('tst-y2038-64bit-time_t', 'tst-y2038-64bit-time_t.c') |
| 11 |
test('tst-y2038-64bit-time_t', tst_y2038_64bit_time_t) |
| 12 |
|
| 13 |
tst_logwtmpdb = executable ('tst-logwtmpdb', 'tst-logwtmpdb.c', |
| 14 |
include_directories : inc, |
| 15 |
link_with : libwtmpdb) |
| 16 |
test('tst-logwtmpdb', tst_logwtmpdb) |
| 17 |
|
| 18 |
tst_login_logout = executable ('tst-login-logout', 'tst-login-logout.c', |
| 19 |
include_directories : inc, |
| 20 |
link_with : libwtmpdb) |
| 21 |
test('tst-login-logout', tst_login_logout) |
| 22 |
|
| 23 |
tst_get_id = executable ('tst-get_id', 'tst-get_id.c', |
| 24 |
include_directories : inc, |
| 25 |
link_with : libwtmpdb) |
| 26 |
test('tst-get_id', tst_get_id) |
| 27 |
|
| 28 |
tst_varlink = executable ('tst-varlink', 'tst-varlink.c', |
| 29 |
include_directories : inc, |
| 30 |
link_with : libwtmpdb) |
| 31 |
test('tst-varlink', tst_varlink) |
| 32 |
|