Skip to content

Commit

Permalink
tests: do not make assumptions about build directory layout
Browse files Browse the repository at this point in the history
The tests would only work if the build directory was named `build/`, and
if it was a subdirectory of the source tree.

Bug: #389
Fixes: 41a11e4 pam UPDATE auth using Linux PAM
  • Loading branch information
jktjkt authored and michalvasko committed Jul 26, 2022
1 parent e56611b commit 1f50231
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ if(LIBPAM_HAVE_CONFDIR)
#generate PAM configuration file
file(WRITE ${CMAKE_SOURCE_DIR}/tests/pam/netconf.conf
"#%PAM-1.4\n"
"auth required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
"account required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
"password required ${CMAKE_SOURCE_DIR}/build/tests/pam_netconf.so\n"
"auth required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
"account required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
"password required ${CMAKE_CURRENT_BINARY_DIR}/pam_netconf.so\n"
)

endif()

0 comments on commit 1f50231

Please sign in to comment.