3 AT_SETUP([vlog - Python])
4 AT_SKIP_IF([test $HAVE_PYTHON = no])
5 AT_CHECK([$PYTHON $srcdir/test-vlog.py --log-file log_file \
6 -v ANY:ANY:dbg module_1:ANY:info module_2:ANY:warn ANY:syslog:off \
8 AT_CAPTURE_FILE([log_file])
9 AT_CAPTURE_FILE([stderr_log])
11 AT_CHECK([diff log_file stderr_log])
13 AT_CHECK([sed -e 's/.* .* ..:..:..|//' \
14 -e 's/File "[[^"]]*", line [[0-9]][[0-9]]*,/File <name>, line <number>,/' \
15 stderr_log], [0], [dnl
16 0|module_0|EMER|emergency
18 2|module_0|WARN|warning
19 3|module_0|INFO|information
21 5|module_0|EMER|emergency exception
22 Traceback (most recent call last):
23 File <name>, line <number>, in main
26 6|module_0|ERR|error exception
27 Traceback (most recent call last):
28 File <name>, line <number>, in main
31 7|module_0|WARN|warn exception
32 Traceback (most recent call last):
33 File <name>, line <number>, in main
36 8|module_0|INFO|information exception
37 Traceback (most recent call last):
38 File <name>, line <number>, in main
41 9|module_0|DBG|debug exception
42 Traceback (most recent call last):
43 File <name>, line <number>, in main
46 10|module_0|ERR|exception
47 Traceback (most recent call last):
48 File <name>, line <number>, in main
51 11|module_1|EMER|emergency
53 13|module_1|WARN|warning
54 14|module_1|INFO|information
55 16|module_1|EMER|emergency exception
56 Traceback (most recent call last):
57 File <name>, line <number>, in main
60 17|module_1|ERR|error exception
61 Traceback (most recent call last):
62 File <name>, line <number>, in main
65 18|module_1|WARN|warn exception
66 Traceback (most recent call last):
67 File <name>, line <number>, in main
70 19|module_1|INFO|information exception
71 Traceback (most recent call last):
72 File <name>, line <number>, in main
75 21|module_1|ERR|exception
76 Traceback (most recent call last):
77 File <name>, line <number>, in main
80 22|module_2|EMER|emergency
82 24|module_2|WARN|warning
83 27|module_2|EMER|emergency exception
84 Traceback (most recent call last):
85 File <name>, line <number>, in main
88 28|module_2|ERR|error exception
89 Traceback (most recent call last):
90 File <name>, line <number>, in main
93 29|module_2|WARN|warn exception
94 Traceback (most recent call last):
95 File <name>, line <number>, in main
98 32|module_2|ERR|exception
99 Traceback (most recent call last):
100 File <name>, line <number>, in main