File: travis-tests.sh

package info (click to toggle)
ssshtest 0.0%2Bgit20220105.0d6df3d-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 224 kB
  • sloc: sh: 496; makefile: 3
file content (35 lines) | stat: -rwxr-xr-x 1,022 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
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

source ssshtest

set -o nounset

STOP_ON_FAIL=0

run test_in_stdout python3 -c "print('example assert_in_stdout success')"
assert_in_stdout "example"

run test_in_stderr python3 -c "import sys; sys.stderr.write('example assert_in_stdout failure')"
assert_in_stderr "example"

run test_in_stderr python3 -c "import sys; sys.stderr.write('example assert_in_stderr success')"
assert_in_stderr "example" 


run test_stdout python3 -c "print('example assert_stdout success')"
assert_stdout 

run test_stderr python3 -c "import sys; sys.stderr.write('example assert_stderr success')"
assert_stderr 

run test_no_stdout python3 -c "import sys; sys.stderr.write('example assert_no_stdout success')"
assert_no_stdout 

run test_no_stdout python3 -c "import sys; sys.stderr.write('example')"
assert_no_stdout 

run test_no_stderr python3 -c "print('example assert_no_stderr success')"
assert_no_stderr 

run test_no_stderr python3 -c "import sys; sys.stdout.write('example assert_no_stderr failure')"
assert_no_stderr