meta.tests.c \
$(top_srcdir)/src/fs/concat.c \
$(top_srcdir)/src/fs/dir.c \
- $(top_srcdir)/src/meta.c \
$(top_srcdir)/src/rss/free.c \
$(top_srcdir)/src/rss/init.c
+meta_tests_CPPFLAGS = $(AM_CPPFLAGS) \
+ -DMETA_SRC_FILE="$(top_srcdir)/src/meta.c"
+
rss_tests_SOURCES = \
$(common_SOURCES) \
rss.tests.c \
#include<test_utils.h>
-#include<meta.h>
+char *strptime(const char *s, const char *format, struct tm *tm) {
+ return (char*)s;
+}
+
+#include INCLUDE(META_SRC_FILE)
int main();
static void meta_entry_basic_test();
#include<setup.h>
#include<shutdown.h>
+#define __include(x) #x
+#define _include(x) __include(x)
+#define INCLUDE(x) _include(x)
+
#define TEST_DIRECTORY PREFIX
#define TEST_FILE_1 PREFIX "/test"
#define TEST_FILE_1_CONTENTS "asldfkjaslkdfjalskdjf"