Skip to content

Commit

Permalink
test set representation massaging
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@235 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Sep 3, 2008
1 parent 7880de1 commit 9a75ce9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion shared/tools/buildtestsetxml
Expand Up @@ -18,6 +18,6 @@ fi

cp ${SLPS}/topics/fl/shared/factorial.xml $1/factorial.src
cp ${SLPS}/topics/fl/shared/fac5.xml $1/fac5.run
cp ${SLPS}/topics/fl/shared/factorial.xml $1/fac5.src
cp ${SLPS}/topics/fl/shared/factorial.xml $1/fac5.ctx
echo 120 > $1/factorial.val

6 changes: 3 additions & 3 deletions topics/convergence/lci/lci.py
Expand Up @@ -465,7 +465,7 @@ def runtestset():
results={}
for program in evaluator.keys():
if testset in tester[program]:
run = evaluator[program]+' '+testcase.replace('.run','.src')+' '+testcase+' '+testcase.replace('.run','.val')
run = evaluator[program]+' '+testcase.replace('.run','.ctx')+' '+testcase+' '+testcase.replace('.run','.val')
logwrite(run)
results[program]=os.system(run+shutup)
print 'Test case',testcase,
Expand Down Expand Up @@ -504,10 +504,10 @@ def checkconsistency():
if tools.has_key('validation'):
validateall()
buildtargets()
print '>>> Grammar convergence phase finished.'
print '----- Grammar convergence phase finished. -----'
if testsets:
runtestset()
print '>>> Tree convergence phase finished.'
print '----- Tree convergence phase finished. -----'
else:
print 'No testing performed.'
dumpgraph(sys.argv[2])
Expand Down
2 changes: 1 addition & 1 deletion topics/extraction/ldf2set/ldf2set.py
Expand Up @@ -41,7 +41,7 @@ def unpacksamples(where,dir):
print "No context found for sample",name,'('+xmlnode.findtext('context')+'), test case not used'
continue
else:
con = open (dir+'/'+name+'.src','w')
con = open (dir+'/'+name+'.ctx','w')
for line in library[xmlnode.findtext('context')].split('\n'):
if line.strip()!='':
con.write(line.strip()+'\n')
Expand Down

0 comments on commit 9a75ce9

Please sign in to comment.