Debian Codegraph @

testsuite/lint.00-init/006-procs.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: lint.00-init/%M%
6 # Revision: %I%
7 # First Edition: 2022/08/27
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Test procedures
13 # Command:
14 # Sub-Command:
15 #
16 # Comment: %C{
17 # Defines the testprocedures for probing the outputs
18 # on stdout and stderr of the test target
19 # }C%
20 #
21 ##############################################################################
22
23
24 #
25 # Test subprocedures
26 #
27
28 proc _test_sub {linter filepath {input noinput} {launcher {}}} {
29 set ::comp_output {}
30 set ::comp_error {}
31 set ::comp_exit {}
32
33 set ::shell $linter
34 lint_test_xxx_ $filepath
35
36 if {$::verbose > 1} {
37 set ol [string length $::comp_output]
38 set oe [string length $::comp_error]
39 send_user "OUT\[$ol\]: '$::comp_output'#>\n"
40 send_user "ERR\[$oe\]: '$::comp_error'#>\n"
41 send_user "EXIT: '$::comp_exit'#>\n"
42 }
43 }
44
45 # vim:set tabstop=3 shiftwidth=3 expandtab autoindent: