File: testme.py

package info (click to toggle)
cde 0.1%2Bgit9-g551e54d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,176 kB
  • sloc: ansic: 75,885; sh: 4,282; python: 1,006; perl: 438; makefile: 297; lisp: 44; java: 5
file content (13 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
sys.path.insert(0, '..')
from cde_test_common import *

cde_log_golden = '''cd 'cde-root/home/pgbovine/CDE/tests/argv_test'
'./python.cde' 'print_argv.py' 'one' 'two three' 'four' '5 6'
'''

def checker_func():
  log_contents = open('cde-package/cde.log').read()
  assert log_contents == cde_log_golden

generic_test_runner(["python", "print_argv.py", "one", "two three", "four", "5 6"], checker_func)