mirror of
https://github.com/AdaCore/aws.git
synced 2026-02-12 12:29:46 -08:00
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
39 lines
750 B
Python
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');
|