Skip to content

Commit

Permalink
LCI 1.71: test cases are being parsed AND diffed
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@166 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Aug 15, 2008
1 parent e6d2268 commit 8aeef9e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions topics/convergence/lci/lci.py
Expand Up @@ -388,6 +388,11 @@ def runtestset():
run = expanduni(implementations[program][0]+' '+testcase[0]+' '+testcase[0]+'.parsed',{})
logwrite(run)
results[program]=os.system(run+shutup)
if not results[program]:
# parsed successfully, let's check the result
run = 'diff '+testcase[0]+' '+testcase[0]+'.parsed'
logwrite(run)
results[program]=os.system(run+shutup)
print 'Test case',testcase[0],
if results.values()==[0]*len(implementations):
# all zeros
Expand All @@ -396,7 +401,7 @@ def runtestset():
print 'failed'
for r in results.keys():
if results[r]!=0:
print r,'could not parse it'
print r,'did not parse it correctly'

def checkconsistency():
# some simple assertions
Expand All @@ -415,7 +420,7 @@ def checkconsistency():
#sysexit(8)

if __name__ == "__main__":
print 'Language Covergence Infrastructure v1.7'
print 'Language Covergence Infrastructure v1.71'
if len(sys.argv) == 3:
log = open(sys.argv[1].split('.')[0]+'.log','w')
readxmlconfig(sys.argv[1])
Expand Down

0 comments on commit 8aeef9e

Please sign in to comment.