1 # Copyright 2013-2015, The Tor Project, Inc
2 # See LICENSE for licensing information
7 This file tests the output from test-bt-cl to make sure it's as expected.
11 $ ./src/test/test-bt-cl crash | ./src/test/bt_test.py
13 $ ./src/test/test-bt-cl assert | ./src/test/bt_test.py
21 def matches(lines
, funcs
):
22 if len(lines
) < len(funcs
):
25 for l
, f
in zip(lines
, funcs
):
32 FUNCNAMES
= "crash oh_what a_tangled_web we_weave main".split()
34 LINES
= sys
.stdin
.readlines()
36 for I
in range(len(LINES
)):
37 if matches(LINES
[I
:], FUNCNAMES
):