grim/gplate

Parents 83492ab5a9d7
Children 376ae2c01e0f
got the include function tests working again, but they're not passing, looks like white space issues
--- a/tests/CMakeLists.txt Wed Sep 05 01:02:36 2012 -0500
+++ b/tests/CMakeLists.txt Wed Sep 05 01:08:32 2012 -0500
@@ -1,5 +1,5 @@
add_definitions(
- -DBUILD_DIR="\\"${CMAKE_CURRENT_BUILD_DIR}\\""
+ -DTEST_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
)
add_subdirectory(functions)
--- a/tests/functions/test-gplate-include-function.c Wed Sep 05 01:02:36 2012 -0500
+++ b/tests/functions/test-gplate-include-function.c Wed Sep 05 01:08:32 2012 -0500
@@ -72,7 +72,7 @@
fixture->expected = "including\nincluded!\ndone";
- path = g_build_path(BUILD_DIR, "templates", "simple.gplate", NULL);
+ path = g_build_filename(TEST_DIR, "templates", "simple.gplate", NULL);
fixture->actual = gplate_template_render_file(fixture->template,
path,
&fixture->error);
@@ -99,7 +99,7 @@
</body>\
</html>";
- path = g_build_path(BUILD_DIR, "templates", "html.gplate", NULL);
+ path = g_build_filename(TEST_DIR, "templates", "html.gplate", NULL);
fixture->actual = gplate_template_render_file(fixture->template,
path,
&fixture->error);