From: Tara L Andrews Date: Sun, 2 Sep 2012 21:10:52 +0000 (+0200) Subject: script to generate DB for web testing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c55e1da6b296cad40c8e99df96a72a8d27c51f5;p=scpubgit%2Fstemmatology.git script to generate DB for web testing --- diff --git a/script/maketestdb.sh b/script/maketestdb.sh new file mode 100755 index 0000000..744c563 --- /dev/null +++ b/script/maketestdb.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +( cd stemmaweb/db && rm -f traditions.db.test && rm -f traditions.db && ln -s traditions.db.test traditions.db ) +script/make_tradition.pl -i self -o db -s t/data/florilegium.dot t/data/florilegium_graphml.xml +script/make_tradition.pl -i self -o db --dbid 'tradition:notre_besoin' -s t/data/besoin.dot t/data/besoin.xml +script/admin_users.pl -u 'admin@example.org' -p 'AdminPass' -r 'admin' +script/admin_users.pl -u 'user@example.org' -p 'UserPass' +script/admin_users.pl -c modify -u 'user@example.org' -t 'tradition:notre_besoin' + diff --git a/t/data/florilegium_graphml.xml b/t/data/florilegium_graphml.xml index 441eb9b..f5ddc1d 100644 --- a/t/data/florilegium_graphml.xml +++ b/t/data/florilegium_graphml.xml @@ -5,6 +5,7 @@ + @@ -24,6 +25,7 @@ base text 1 (a.c.) + 1 #END# 1