diff options
author | Daniel Richard G <oss@teragram.com> | 2012-08-10 09:59:08 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2012-08-10 10:15:01 -0700 |
commit | a9bd433c7fbee09beb71f14f7fb0b49e6466a3dc (patch) | |
tree | 03075929e86301e0bf8915969762ae477ea9e6fc /tests/trig | |
parent | 97198ca0d8ea3c1872ecb18f45d0665e6dbf5975 (diff) | |
download | raptor-a9bd433c7fbee09beb71f14f7fb0b49e6466a3dc.tar.gz |
CMake build framework for Raptor - win32
This commit is based on the email with patch that Daniel Richard G.
sent to redland-dev on 5th July 2012
http://lists.librdf.org/pipermail/redland-dev/2012-July/002502.html
I lightly edited the email to fit into 80 chars and make more it
markdowny and turn it into win32/README.md
-- Dave Beckett
Diffstat (limited to 'tests/trig')
-rw-r--r-- | tests/trig/CMakeLists.txt | 37 | ||||
-rw-r--r-- | tests/trig/Makefile.am | 8 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tests/trig/CMakeLists.txt b/tests/trig/CMakeLists.txt new file mode 100644 index 00000000..b85d90d4 --- /dev/null +++ b/tests/trig/CMakeLists.txt @@ -0,0 +1,37 @@ +# raptor/tests/trig/CMakeLists.txt +# +# Original listfile by Daniel Richard G. <skunk@iSKUNK.ORG> +# This file is in the public domain. +# + +RAPPER_TEST(trig.example1 + "${RAPPER} -q -i trig -o nquads ${CMAKE_CURRENT_SOURCE_DIR}/example1.trig http://example.librdf.org/example1.trig" + example1.res + ${CMAKE_CURRENT_SOURCE_DIR}/example1.out +) + +RAPPER_TEST(trig.example2 + "${RAPPER} -q -i trig -o nquads ${CMAKE_CURRENT_SOURCE_DIR}/example2.trig http://example.librdf.org/example2.trig" + example2.res + ${CMAKE_CURRENT_SOURCE_DIR}/example2.out +) + +RAPPER_TEST(trig.example3 + "${RAPPER} -q -i trig -o nquads ${CMAKE_CURRENT_SOURCE_DIR}/example3.trig http://example.librdf.org/example3.trig" + example3.res + ${CMAKE_CURRENT_SOURCE_DIR}/example3.out +) + +RAPPER_TEST(trig.bug370 + "${RAPPER} -q -i trig -o nquads ${CMAKE_CURRENT_SOURCE_DIR}/bug370.trig http://example.librdf.org/bug370.trig" + bug370.res + ${CMAKE_CURRENT_SOURCE_DIR}/bug370.out +) + +RAPPER_TEST(trig.bug451 + "${RAPPER} -q -i trig -o nquads ${CMAKE_CURRENT_SOURCE_DIR}/bug451.trig http://example.librdf.org/bug451.trig" + bug451.res + ${CMAKE_CURRENT_SOURCE_DIR}/bug451.out +) + +# end raptor/tests/trig/CMakeLists.txt diff --git a/tests/trig/Makefile.am b/tests/trig/Makefile.am index 6e52b08a..e1d4c0d7 100644 --- a/tests/trig/Makefile.am +++ b/tests/trig/Makefile.am @@ -30,11 +30,14 @@ example1.out example2.out example3.out bug370.out bug451.out BASE_URI=http://example.librdf.org/ EXTRA_DIST = \ + CMakeLists.txt \ $(TEST_FILES) \ $(TEST_OUT_FILES) RAPPER = $(top_builddir)/utils/rapper +CLEANFILES = CMakeTests.txt + build-rapper: @(cd $(top_builddir)/utils ; $(MAKE) rapper$(EXEEXT)) @@ -66,5 +69,10 @@ check-trig: build-rapper $(check_trig_deps) diff $(srcdir)/$$name.out $$name.res; result=1; \ fi; \ rm -f $$name.res $$name.err; \ + printf 'RAPPER_TEST(%s\n\t"%s"\n\t%s\n\t%s\n)\n\n' \ + trig.$$name \ + "\$${RAPPER} -q -i trig -o nquads \$${CMAKE_CURRENT_SOURCE_DIR}/$$test $$baseuri" \ + $$name.res \ + "\$${CMAKE_CURRENT_SOURCE_DIR}/$$name.out" >>CMakeTests.txt; \ done; \ exit $$result |