Files
aws/regtests/0053_eres/test.py
Olivier Ramonat da1314ad62 Use gnatpython.testdriver, remove local copy of gnatpython modules
Now that gnatpython is published, remove the local copy.
Add a README explaining how to run the testsuite and write a new test

Part of J413-007
2010-05-06 09:00:39 +00:00

39 lines
750 B
Python

from test_support import *
# Create the resources
f=open('filea.txt', 'w')
f.write('content of filea.txt')
f.close()
f=open('fileb.txt', 'w')
f.write('content of fileb.txt')
f.close()
f=open('filec.txt', 'w')
f.write('content of filec.txt')
f.close()
f=open('file1.txt', 'w')
f.write('line1, file 1')
f.write('line2, file 1')
f.close()
f=open('file2.txt', 'w')
f.write('line1, file 2')
f.write('line2, file 2')
f.write('line3, file 2')
f.close()
f=open('filez.tmplt', 'w')
f.write('Number @_ONE_@ following by @_TWO_@.')
f.close()
exec_cmd('gzip', ['-2', 'fileb.txt'])
exec_cmd('gzip', ['-9', 'filec.txt'])
exec_cmd('awsres',
['-q', '-r', 'zresres', 'file1.txt',
'-z', 'file2.txt', 'filez.tmplt'])
build_and_run('eres');