File: testfunc.test

package info (click to toggle)
atheist 0.20100717-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 900 kB
  • ctags: 558
  • sloc: python: 2,922; xml: 578; makefile: 111; sh: 5
file content (24 lines) | stat: -rw-r--r-- 682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- mode:python; coding:utf-8 -*-

hello = FileContains("T1:out| hello!!")
bye   = FileContains("T1:err| bye??")

t1 = Test("$atheist test/testfunc_out.mtest",
         desc="TestFunc stdout not stderr are not shown")
t1.post += Not(hello)
t1.post += Not(bye)

t2 = Test("$atheist -o test/testfunc_out.mtest",
         desc="unless explicitly solicited (-o for stdout)")
t2.post += hello
t2.post += Not(bye)

t3 = Test("$atheist -e test/testfunc_out.mtest",
         desc="unless explicitly solicited (-e for stderr)")
t3.post += bye
t3.post += Not(hello)

t4 = Test("$atheist -o -e test/testfunc_out.mtest",
         desc="both of them  (-o -e)")
t4.post += hello
t4.post += bye