-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtravis-tests.sh
executable file
·37 lines (23 loc) · 1.08 KB
/
travis-tests.sh
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
36
37
#!/bin/bash
test -e ssshtest || wget -q https://raw.githubusercontent.com/ryanlayer/ssshtest/master/ssshtest
source ssshtest
set -o nounset
STOP_ON_FAIL=0
run test_in_stdout python -c "print 'example assert_in_stdout success'"
assert_in_stdout "example"
run test_in_stderr python -c "import sys; sys.stderr.write('example assert_in_stdout failure')"
assert_in_stderr "example"
run test_in_stderr python -c "import sys; sys.stderr.write('example assert_in_stderr success')"
assert_in_stderr "example"
run test_stdout python -c "print 'example assert_stdout success'"
assert_stdout
run test_stderr python -c "import sys; sys.stderr.write('example assert_stderr success')"
assert_stderr
run test_no_stdout python -c "import sys; sys.stderr.write('example assert_no_stdout success')"
assert_no_stdout
run test_no_stdout python -c "import sys; sys.stderr.write('example')"
assert_no_stdout
run test_no_stderr python -c "print 'example assert_no_stderr success'"
assert_no_stderr
run test_no_stderr python -c "import sys; sys.stdout.write('example assert_no_stderr failure')"
assert_no_stderr