/usr/src/openvswitch-1.4.0/tests/vlog.at is in openvswitch-datapath-dkms 1.4.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | AT_BANNER([vlog])
AT_SETUP([vlog - Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
AT_CHECK([$PYTHON $srcdir/test-vlog.py --log-file log_file \
-v ANY:ANY:dbg module_1:ANY:info module_2:ANY:warn ANY:syslog:off \
2>stderr_log])
AT_CAPTURE_FILE([log_file])
AT_CAPTURE_FILE([stderr_log])
AT_CHECK([diff log_file stderr_log])
AT_CHECK([sed -e 's/.* .* ..:..:..|//' \
-e 's/File "[[^"]]*", line [[0-9]][[0-9]]*,/File <name>, line <number>,/' \
stderr_log], [0], [dnl
0|module_0|EMER|emergency
1|module_0|ERR|error
2|module_0|WARN|warning
3|module_0|INFO|information
4|module_0|DBG|debug
5|module_0|EMER|emergency exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
6|module_0|ERR|error exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
7|module_0|WARN|warn exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
8|module_0|INFO|information exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
9|module_0|DBG|debug exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
10|module_0|ERR|exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
11|module_1|EMER|emergency
12|module_1|ERR|error
13|module_1|WARN|warning
14|module_1|INFO|information
16|module_1|EMER|emergency exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
17|module_1|ERR|error exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
18|module_1|WARN|warn exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
19|module_1|INFO|information exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
21|module_1|ERR|exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
22|module_2|EMER|emergency
23|module_2|ERR|error
24|module_2|WARN|warning
27|module_2|EMER|emergency exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
28|module_2|ERR|error exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
29|module_2|WARN|warn exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
32|module_2|ERR|exception
Traceback (most recent call last):
File <name>, line <number>, in main
assert fail
AssertionError
])
AT_CLEANUP
|