Stefano Bonicatti
12/24/2019, 5:56 PMJoão Godinho
12/26/2019, 1:28 PMwtmp
is empty, it doesn’t seem to trigger events. I’m a little lost in here on how to proceed from here. You were suggesting providing a dummy wtmp
file to the container?Stefano Bonicatti
12/26/2019, 1:37 PMJoão Godinho
12/26/2019, 1:40 PMStefano Bonicatti
12/26/2019, 1:44 PMJoão Godinho
12/26/2019, 1:50 PMStefano Bonicatti
12/26/2019, 1:50 PMJoão Godinho
12/26/2019, 2:25 PM_PATH_WTMP
instead of hard-coding it?Stefano Bonicatti
12/26/2019, 2:41 PM_PATH_UTMP
João Godinho
12/26/2019, 10:19 PM_PATH_WTMP
(btw the default for it is already /var/log/wtmp
) via cmake, which I tried but my experience with cmake is 0, so couldn’t make it work yet.
the other option is to create tests like the ones for shell_history
, the problem is identical and they create some tmp dirs and test the functions directly (not the output of a query)Stefano Bonicatti
12/27/2019, 1:07 PMRow
resultsJoão Godinho
12/27/2019, 1:34 PMJoão Godinho
12/27/2019, 2:23 PMStefano Bonicatti
12/27/2019, 2:27 PM