Create a custom date view for todo.sh tests -- the time is set in TODO_TEST_TIME as seconds since the Unix epoch and a custom wrapper in the testing directory is put at the front of the path to intercept todo.sh calls to date for date formatting. This will only work as long as todo.sh calls $(date) for date formatting. It also assumes a date command that supports the -d flag (such as the one in GNU coreutils.) Add a test for TODOTXT_DATE_ON_ADD to exercise this functionality. Signed-off-by: Emil Sit <sit@emilsit.net>
1.4 KiB
Executable File
1.4 KiB
Executable File