script to generate DB for web testing
Tara L Andrews [Sun, 2 Sep 2012 21:10:52 +0000 (23:10 +0200)]
script/maketestdb.sh [new file with mode: 0755]
t/data/florilegium_graphml.xml

diff --git a/script/maketestdb.sh b/script/maketestdb.sh
new file mode 100755 (executable)
index 0000000..744c563
--- /dev/null
@@ -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'
+
index 441eb9b..f5ddc1d 100644 (file)
@@ -5,6 +5,7 @@
   <key attr.name="baselabel" attr.type="string" for="graph" id="dg2"/>
   <key attr.name="linear" attr.type="string" for="graph" id="dg3"/>
   <key attr.name="ac_label" attr.type="string" for="graph" id="dg4"/>
+  <key attr.name="public" attr.type="boolean" for="graph" id="dg5"/>
   <key attr.name="text" attr.type="string" for="node" id="dn0"/>
   <key attr.name="is_end" attr.type="boolean" for="node" id="dn1"/>
   <key attr.name="is_start" attr.type="boolean" for="node" id="dn2"/>
@@ -24,6 +25,7 @@
     <data key="dg2">base text</data>
     <data key="dg3">1</data>
     <data key="dg4"> (a.c.)</data>
+    <data key="dg5">1</data>
     <node id="n0">
       <data key="dn0">#END#</data>
       <data key="dn1">1</data>