Commit a40c154b a40c154bee7cc87611f924468c3ce47014036034 by Sergey Poznyakoff

New test case

1 parent 1e649209
1 # -*- tcl -*-
2 # This file is part of Mailutils testsuite.
3 # Copyright (C) 2002, 2005, Free Software Foundation
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 # 02110-1301 USA.
19
20 mu_prepare_spools
21
22 mu_exec -message "Read mode on TTY" \
23 -arg "--nosum" -arg "--file=%mbox1" -arg "< ${srcdir}/if.mail" \
24 "Begin test" \
25 "Not a send mode" \
26 "Read mode" \
27 "On TTY" \
28 "End test" \
29 "" \
30 "Held 5 messages in $MU_SPOOL_DIR/mbox1"
31
32 mu_exec -message "Read mode not on TTY" \
33 -arg "--nosum" -arg "--file=%mbox1" -arg "< ${srcdir}/if.mail" \
34 -arg "> $MU_FOLDER_DIR/if.out"
35
36 mu_test_file "$MU_FOLDER_DIR/if.out" \
37 "Begin test" \
38 "Not a send mode" \
39 "Read mode" \
40 "Not on TTY" \
41 "End test" \
42 "" \
43 "Held 5 messages in $MU_SPOOL_DIR/mbox1"
44
45 mu_exec -message "Send mode on TTY" \
46 -arg "--exec='set mode=send'" \
47 -arg "--exec='source ${srcdir}/if.mail'" \
48 -arg "--exec=quit" \
49 "Begin test" \
50 "Send mode" \
51 "End test"
52
53 mu_exec -message "Send mode not on TTY" \
54 -arg "--exec='set mode=send'" \
55 -arg "--exec='source ${srcdir}/if.mail'" \
56 -arg "--exec=quit" \
57 -arg "> $MU_FOLDER_DIR/if.out"
58
59 mu_test_file "$MU_FOLDER_DIR/if.out" \
60 "Begin test" \
61 "Send mode" \
62 "End test"
63
64 mu_exec -message "Nomode on TTY" \
65 -arg "--exec='set mode=nomode'" \
66 -arg "--exec='source ${srcdir}/if.mail'" \
67 -arg "--exec=quit" \
68 "Begin test" \
69 "Not a send mode" \
70 "End test"
71
72 mu_exec -message "Nomode not on TTY" \
73 -arg "--exec='set mode=nomode'" \
74 -arg "--exec='source ${srcdir}/if.mail'" \
75 -arg "--exec=quit" \
76 -arg "> $MU_FOLDER_DIR/if.out"
77
78 mu_test_file "$MU_FOLDER_DIR/if.out" \
79 "Begin test" \
80 "Not a send mode" \
81 "End test"
82
83 # End of if.exp
84
85
86