Hey gang,
I like testing things. I figure that one of the obvious things to try
soon is an httpd setup with mod_sparql in the front, redland in the
back, and then libb way in the back as the backend store for redland.
We know from some of Andrea's testing that we're likely to run into a
variety of subtle and not so subtle bugs, so I've been thinking about
a convenient way to write tests to exercise this chain.
Obviously we want to use SPARQL for all the data fetching, but we
also need to put the stuff in there to fetch, otherwise how can we
test properly? :-)
I came up with these bits last night. What do you guys think?
Note RDFStore also comes with quite a few tests (mostly RDQL not
SPARQL)...
http://rdfstore.cvs.sourceforge.net/rdfstore/rdfstore/t/
and there's old RDQL stuff
http://www.w3.org/2003/03/rdfqr-tests/test/rdfquery-
tests-2003-05.zip
and then jena has a version of a lot of tests
http://jena.cvs.sourceforge.net/jena/jena2/testing/
(also holds the DAWG tests
http://www.w3.org/2001/sw/DataAccess/tests/
).
cheers!
- Leo
Begin forwarded message:
> incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> incubator/triplesoup/code/trunk/tests/01-basic-self-test/create-
> drop-load.tsql
> incubator/triplesoup/code/trunk/tests/01-basic-self-test/foaf.n3
> incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> run.sh (with props)
...
> Added: incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> create-drop-load.tsql
> URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/
> tests/01-basic-self-test/create-drop-load.tsql?view=auto&rev=509187
> ======================================================================
> ========
> --- incubator/triplesoup/code/trunk/tests/01-basic-self-test/create-
> drop-load.tsql (added)
> +++ incubator/triplesoup/code/trunk/tests/01-basic-self-test/create-
> drop-load.tsql Mon Feb 19 05:01:11 2007
> @@ -0,0 +1,6 @@
> +SET debug_level = 3;
> +SET rdf_format = "rdf/n3";
> +
> +CREATE RDF DATABASE "basicselftest01";
> +LOAD DATA INFILE "foaf.n3" INTO DATABASE "basicselftest01";
> +DROP RDF DATABASE "basicselftest01";
>
> Added: incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> foaf.n3
> URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/
> tests/01-basic-self-test/foaf.n3?view=auto&rev=509187
> ======================================================================
> ========
> --- incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> foaf.n3 (added)
> +++ incubator/triplesoup/code/trunk/tests/01-basic-self-test/
> foaf.n3 Mon Feb 19 05:01:11 2007
> @@ -0,0 +1,17 @@
> +@keywords a.
> +@prefix : <http://xmlns.com/foaf/0.1/>.
> +@prefix dc: <http://purl.org/dc/elements/1.1/>.
> +@prefix h: <#>.
> +
> +h:this a PersonalProfileDocument;
> + maker h:me;
> + primaryTopic h:me.
> +
> +h:me a Person;
> + homepage <http://www.leosimons.com/>;
> + mbox_sha1sum "61b90cc881bde4eaec17ff510c5bbef16ea7bfed";
> + name "Leo Simons";
> + gender "male";
> + title "Mr";
> + givenname "Leo";
> + family_name "Simons".
>
> Added: incubator/triplesoup/code/trunk/tests/01-basic-self-test/run.sh
> URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/
> tests/01-basic-self-test/run.sh?view=auto&rev=509187
> ======================================================================
> ========
> --- incubator/triplesoup/code/trunk/tests/01-basic-self-test/run.sh
> (added)
> +++ incubator/triplesoup/code/trunk/tests/01-basic-self-test/run.sh
> Mon Feb 19 05:01:11 2007
...
> +PYTHONPATH=`pwd`/../../modules/pysoup
> +PYTHONPATH=$PYTHONPATH python $PYTHONPATH/pysoup/client.py create-
> drop-load.tsql || exit 1
...
> Added: incubator/triplesoup/code/trunk/tests/run.sh
> URL: http://svn.apache.org/viewvc/incubator/triplesoup/code/trunk/
> tests/run.sh?view=auto&rev=509187
> ======================================================================
> ========
> --- incubator/triplesoup/code/trunk/tests/run.sh (added)
> +++ incubator/triplesoup/code/trunk/tests/run.sh Mon Feb 19
> 05:01:11 2007
> @@ -0,0 +1,69 @@
> +#!/usr/bin/env bash
...
> +cat <<END
> +
> +
> +Test report
> +-----------------------------------------------------$log
> +
> +Test summary
> +-----------------------------------------------------
> +Successes: `printf %02d $success`
> +Failures: `printf %02d $failed`
> +No results: `printf %02d $noresult`
> + --
> + Total: `printf %02d $total`
> +-----------------------------------------------------
> +END
|