Skip to content

Commit

Permalink
test data set reogranisation
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1104 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Jul 22, 2011
1 parent 2f6d19c commit e74ce4a
Show file tree
Hide file tree
Showing 95 changed files with 61 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion topics/recovery/hunter/tests/0-simple.src
@@ -1,4 +1,3 @@
foo : bar
bar : wez
wez : foo

3 changes: 3 additions & 0 deletions topics/recovery/hunter/tests/1-camel-except-nopp.src
@@ -0,0 +1,3 @@
foo:BAR WEZ FOO
Bar:wez foo bar
WEZ:Foo Bar Wez
3 changes: 0 additions & 3 deletions topics/recovery/hunter/tests/1-camel-except.src

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions topics/recovery/hunter/tests/2-start-end-nopp.bgf
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<terminal>x y z</terminal>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>bar</nonterminal>
<bgf:expression>
<nonterminal>x y z</nonterminal>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>wez</nonterminal>
<bgf:expression>
<terminal>foo</terminal>
</bgf:expression>
</bgf:production>
</bgf:grammar>
9 changes: 9 additions & 0 deletions topics/recovery/hunter/tests/2-start-end-nopp.edd
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<edd:config xmlns:edd="http://planet-sl.org/edd">
<defining-symbol>:</defining-symbol>
<terminator-symbol>\n</terminator-symbol>
<start-terminal-symbol>“</start-terminal-symbol>
<end-terminal-symbol>”</end-terminal-symbol>
<start-nonterminal-symbol>(</start-nonterminal-symbol>
<end-nonterminal-symbol>)</end-nonterminal-symbol>
</edd:config>
3 changes: 3 additions & 0 deletions topics/recovery/hunter/tests/2-start-end-nopp.src
@@ -0,0 +1,3 @@
(foo) : “x y z”
(bar) : (x y z)
(wez) : “foo”
6 changes: 3 additions & 3 deletions topics/recovery/hunter/tests/2-start-end.src
@@ -1,3 +1,3 @@
(foo) : “x y z”
(bar) : (x y z)
(wez) : “foo”
foo : “x y z”
bar : (x y z)
wez : “foo”
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion topics/recovery/hunter/tests/5-no-glue.src
@@ -1,4 +1,3 @@
foo : . / ? ( )
bar : wez
wez : foo

6 changes: 6 additions & 0 deletions topics/recovery/hunter/tests/Makefile
@@ -1,5 +1,11 @@
test:
echo 'Run make test-hunter to test Grammar Hunter or make test-edd to test EDD pretty-printer.'

test-hunter:
ls -1 *.src | xargs -n1 -I _ basename _ .src | xargs -n1 ./testperform

test-edd:
ls -1 *.src | grep -v 'nopp' | xargs -n1 -I _ basename _ .src | xargs -n1 ./testperformedd

clean:
rm -f *.out *.log *.gdt
6 changes: 6 additions & 0 deletions topics/recovery/hunter/tests/testperformedd
@@ -0,0 +1,6 @@
#!/bin/sh

echo [Test EDD PP] $1
rm -f $1.log
../../../../shared/tools/bgf0edd2bnf $1.bgf $1.edd $1.out || exit -1
diff $1.src $1.out || exit -1
6 changes: 6 additions & 0 deletions topics/recovery/hunter/tests/testrenamesvn
@@ -0,0 +1,6 @@
#!/bin/sh

svn mv $1.src $2.src
svn mv $1.edd $2.edd
svn mv $1.bgf $2.bgf
rm -f $1.out $1.log
4 changes: 4 additions & 0 deletions topics/recovery/hunter/tests/testsaveedd
@@ -0,0 +1,4 @@
#!/bin/sh

./testperformedd $1
mv $1.out $1.src

0 comments on commit e74ce4a

Please sign in to comment.