Commit 7e040fc4 authored by Per Cederqvist's avatar Per Cederqvist

Changing the recipient type.

parent c4fe1d95
# Test suite for lyskomd.
# Copyright (C) 1999 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
#
# LysKOM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# LysKOM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with LysKOM; see the file COPYING. If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
# Test that the correct persons can change between
# recpt, cc-rectp and bcc-recpt.
# Start a server and set up a minmal environment:
# person 6 "Author"
# text 1 Written by author, conference 1 as recipient.
lyskomd_start
client_start 0
talk_to client 0
send "A7Hfoo bar\n"
simple_expect "LysKOM" "connected"
send "1000 89 [holl "Author"] [holl "Writer"] 00000000 0 { }\n"
simple_expect "=1000 6"
send "1001 62 6 [holl "Writer"] 1\n"
simple_expect "=1001"
send "1002 86 [holl "Text 1"] 1 { 0 1 } 0 { }\n"
simple_expect "=1002 1"
send "1003 86 [holl "Text 2"] 1 { 1 1 } 0 { }\n"
simple_expect "=1003 2"
send "1004 86 [holl "Text 3"] 1 { 15 1 } 0 { }\n"
simple_expect "=1004 3"
send "1005 30 1 1 1\n"
simple_expect "=1005"
send "1006 30 2 1 15\n"
simple_expect "=1006"
send "1007 30 3 1 0\n"
simple_expect "=1007"
send "1008 1\n"
simple_expect "=1008"
# Create a new person and attempt to move the texts some more.
send "1009 89 [holl "Mover"] [holl "mwm"] 00000000 0 { }\n"
simple_expect "=1009 7"
send "1010 62 7 [holl "mwm"] 1\n"
simple_expect "=1010"
send "1011 30 1 1 15\n"
simple_expect "%1011 12 1"
send "1012 30 2 1 0\n"
simple_expect "%1012 12 1"
send "1013 30 3 1 1\n"
simple_expect "%1013 12 1"
# Add one of the texts to a new conference, and then try to change the type.
send "1014 30 1 2 0\n"
simple_expect "=1014"
send "1015 30 1 2 1\n"
simple_expect "%1015 12 2"
setup_xfail "*"
fail "The sender of a recpt failed to convert it to a bcc-recpt"
send "1016 62 5 [holl "gazonk"] 1\n"
simple_expect "=1016"
send "1017 42 255\n"
simple_expect "=1017"
send "1018 44 0\n"
simple_expect "=1018"
client_death 0
lyskomd_death
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment