$(top_srcdir)/src/file.c \
$(top_srcdir)/src/hashmap.c \
$(top_srcdir)/src/torrent/add.c \
- $(top_srcdir)/src/torrent/file.c \
$(top_srcdir)/src/torrent/free.c \
$(top_srcdir)/src/torrent/init.c \
+ $(top_srcdir)/src/torrent/info.c \
$(top_srcdir)/src/torrent/infohash.c \
$(top_srcdir)/src/torrent/magnet.c \
- $(top_srcdir)/src/torrent/path.c \
$(top_srcdir)/src/torrent/piece.c \
$(top_srcdir)/src/torrent/remove.c \
$(top_srcdir)/src/tree.c
$(top_srcdir)/src/rss/footer.c \
$(top_srcdir)/src/rss/header.c \
$(top_srcdir)/src/rss/info.c \
- $(top_srcdir)/src/rss/init.c
+ $(top_srcdir)/src/rss/init.c \
+ $(top_srcdir)/src/torrent/file.c \
+ $(top_srcdir)/src/torrent/path.c
+# feed/gen.c requires overwriting of FEED_DIRECTORY for testing
+# feed/path.c requires overwriting of FEED_DIRECTORY for testing
feed_tests_CPPFLAGS = $(AM_CPPFLAGS) \
-DFEED_GEN_SRC_FILE="$(top_srcdir)/src/feed/gen.c" \
- -DFEED_PATH_SRC_FILE="$(top_srcdir)/src/feed/path.c" \
- -DTORRENT_INFO_SRC_FILE="$(top_srcdir)/src/torrent/info.c"
+ -DFEED_PATH_SRC_FILE="$(top_srcdir)/src/feed/path.c"
file_tests_SOURCES = \
$(common_SOURCES) \
$(top_srcdir)/src/rss/free.c \
$(top_srcdir)/src/rss/init.c
+# src/meta.c requires strptime dummy function defined in meta.tests.c
meta_tests_CPPFLAGS = $(AM_CPPFLAGS) \
-DMETA_SRC_FILE="$(top_srcdir)/src/meta.c"
$(top_srcdir)/src/opt/worker.c \
$(top_srcdir)/src/session.c
-opt_tests_CPPFLAGS = $(AM_CPPFLAGS) \
- -DTORRENT_INFO_SRC_FILE="$(top_srcdir)/src/torrent/info.c"
-
rss_tests_SOURCES = \
$(common_SOURCES) \
rss.tests.c \
$(top_srcdir)/src/hash.c \
$(top_srcdir)/src/session.c
-session_tests_CPPFLAGS = $(AM_CPPFLAGS) \
- -DTORRENT_INFO_SRC_FILE="$(top_srcdir)/src/torrent/info.c"
-
torrent_tests_SOURCES = \
$(common_SOURCES) \
$(torrent_SOURCES) \
$(top_srcdir)/src/fs/dir.c \
$(top_srcdir)/src/hash.c
+# src/torrent/file.c requires TORRENT_FILE_DIRECTORY to be overwritten for testing
+# src/torrent/path.c requires TORRENT_FILE_DIRECTORY to be overwritten for testing
torrent_tests_CPPFLAGS = $(AM_CPPFLAGS) \
- -DTORRENT_INFO_SRC_FILE="$(top_srcdir)/src/torrent/info.c"
+ -DTORRENT_FILE_SRC_FILE="$(top_srcdir)/src/torrent/file.c" \
+ -DTORRENT_PATH_SRC_FILE="$(top_srcdir)/src/torrent/path.c"
tree_tests_SOURCES = \
$(common_SOURCES) \