File: test.py

package info (click to toggle)
libaws 20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,656 kB
  • sloc: ada: 95,505; python: 2,270; ansic: 1,017; makefile: 829; xml: 235; javascript: 202; java: 112; sh: 106
file content (18 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from test_support import *
import os

#  Create the resources

f=open('text.txt', 'w')
f.write('@@IF@@ @_FILE_EXISTS:NAME_@\n')
f.write('   OK embedded file "@_NAME_@" exists\n')
f.write('@@ELSE@@\n')
f.write('   NOK embedded file "@_NAME_@" not found\n')
f.write('@@END_IF@@')
f.close()

exec_cmd('awsres', ['-q', 'text.txt'])

os.remove("text.txt")

build_and_run('bug');