Debian Codegraph @

src/tests/README

raw
1
2 Available tests:
3 ================
4
5 * long_message:
6 Tests the ability of Speech Dispatcher to handle long messages
7 and special characters (the second message is a source code).
8 (it uses libspeechd.c)
9
10 * multiple_messages:
11 Tests how fast can Speech Dispatcher handles messages coming
12 in short intervals for all 3 priorities. It also tests
13 how the priorities influence each other.
14 (it uses libspeechd.c)
15
16 * run_test (and *.test files)
17 Invoking: run_test {testfile} [fast] [> logfile]
18
19 A simple program that reads the given script-file (*.test)
20 and executes the SSIP commands inside it. It also outputs
21 the comments from the file on the screen and waits where
22 requested. If an additional parameter "fast" is specified, that
23 means execute everything without the specified delays.
24
25 You may find it convenient to redirect the output to some
26 logfile.
27
28 The script files have the following simple syntax:
29 * Every command begins in the first column and "lasts" till
30 the end of the line is reached.
31 * @ introduces a comentary on the given line
32 * ! denotes an SSIP command that follows without any spaces
33 * $ run_test will wait for the specified time (in seconds)
34 * ^ run_test will wait for the specified time (in microseconds)
35 * ~ sets the indentation (in spaces from left border), it can
36 be used multiple times in different places
37 * + wait for response string. Note, you cannot use this to wait
38 for synchronous replies to commands. Generally,
39 you will use this to wait for notification events
40 (SET SELF NOTIFICATION ALL ON). It will wait for
41 any reply containing the string that follows "+".
42 * ? waits until the user presses a key
43 * * clear screen
44 * Blank lines in the script produce blank lines in the output.
45 * # introduce a comment, completely ignored.
46
47 In the output, SSIP communication is shifted to the right with
48 respect to the comments. The commands and data the script sends
49 to Speech Dispatcher begin with ">> ", the responses from Speech Dispatcher
50 are introduced by "< ".
51
52 See basic.test or general.test for an example.
53
54
55 yo.wav is
56 Copyright (C) 2006 Gary Cramblitt <[email protected]>
57
58 this file is
59
60 Copyright (C) 2003 Brailcom, o.p.s
61 Copyright (C) 2006 Gary Cramblitt <[email protected]>
62
63 they are licensed under the following terms:
64
65 This program is free software; you can redistribute it and/or modify it under
66 the terms of the GNU General Public License as published by the Free Software
67 Foundation; either version 2 of the License, or (at your option) any later
68 version.
69
70 This program is distributed in the hope that it will be useful, but WITHOUT ANY
71 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
72 PARTICULAR PURPOSE. See the GNU General Public License for more details (file
73 COPYING in the root directory).
74
75 You should have received a copy of the GNU General Public License
76 along with this program. If not, see <https://www.gnu.org/licenses/>.
77