incubator-triplesoup-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Reid <da...@jetnet.co.uk>
Subject Re: testing stuff over HTTP
Date Mon, 19 Feb 2007 14:42:30 GMT
Leo Simons wrote:
> 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.

:-)

Of course for this setup we'd need an apache httpd process.

> 
> 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.

Sounds like a good plan.

> 
> 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? :-)

Well, how about having an sqllite database (single file) that we can
populate and then store in SVN?

As for httpd, we could have a config file that set it up specifically
for the tests, again stored in SVN. Part of the configure step could be
to find the httpd executable (and check the version I guess). In fact
mod_sparql currently uses apxs, so this will probably be required anyways.

I'm trying to figure out an automated test for another project so will
be watching with interest :-)

> 
> 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
> 


Mime
View raw message