# Test suite for Local_to_global. # Copyright (C) 1998-1999, 2001-2003 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 report bugs at http://bugzilla.lysator.liu.se/. # Ensure that the copy operation actually copies all relevant state. l2g_start l2g_send "I0" l2g_send "a0 10 1010" l2g_send "a0 11 1011" l2g_send "a0 12 1012" l2g_send "a0 13 1013" l2g_send "a0 14 1014" l2g_send "a0 15 1015" l2g_send "a0 16 1016" l2g_send "a0 17 1017" l2g_send "a0 18 1018" l2g_send "a0 19 1019" l2g_send "a0 25 1025" l2g_send "a0 43 1043" l2g_send "a0 98 1098" l2g_send "I1" l2g_send "C1 0" l2g_send "u0" simple_expect "Number of blocks: 2" "test 1" simple_expect "First unused: 99" "test 2" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 3" simple_expect "1: 3 7 25 \\(sparse\\) \\\[25:1025 43:1043 98:1098 \\\]" "test 4" l2g_send "u1" simple_expect "Number of blocks: 2" "test 5" simple_expect "First unused: 99" "test 6" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 7" simple_expect "1: 3 7 25 \\(sparse\\) \\\[25:1025 43:1043 98:1098 \\\]" "test 8" l2g_send "d0 98" l2g_send "D1" l2g_send "I1" l2g_send "C1 0" l2g_send "u0" simple_expect "Number of blocks: 2" "test 9" simple_expect "First unused: 99" "test 10" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 11" simple_expect "1: 3 8 25 \\(sparse\\) \\\[25:1025 43:1043 98:0 \\\]" "test 12" l2g_send "u1" simple_expect "Number of blocks: 2" "test 13" simple_expect "First unused: 99" "test 14" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 15" simple_expect "1: 2 8 25 \\(sparse\\) \\\[25:1025 43:1043 \\\]" "test 16" l2g_send "w0" simple_expect "\\\[99 10:1010,1011,1012,1013,1014,1015,1016,1017,1018,1019 25:1025 43:1043\\\]" "test 17" # FIXME (bug 217): Build something where the last entry has been deleted, l2g_send "w1" simple_expect "\\\[99 10:1010,1011,1012,1013,1014,1015,1016,1017,1018,1019 25:1025 43:1043\\\]" "test 18" l2g_send "d0 25" l2g_send "d0 43" l2g_send "C1" l2g_send "C1 0" l2g_send "u0" simple_expect "Number of blocks: 1" "test 19" simple_expect "First unused: 99" "test 20" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 21" l2g_send "u1" simple_expect "Number of blocks: 1" "test 22" simple_expect "First unused: 99" "test 23" simple_expect "0: 10 0 10 \\(dense\\) \\\[1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 \\\]" "test 24" l2g_send "w0" simple_expect "\\\[99 10:1010,1011,1012,1013,1014,1015,1016,1017,1018,1019\\\]" "test 25" l2g_send "w1" simple_expect "\\\[99 10:1010,1011,1012,1013,1014,1015,1016,1017,1018,1019\\\]" "test 26" l2g_send "I2" l2g_send "r2" send "\[118 10:1010,1011,1012,0,1014,1015,1016,1017,1018,1019 25:1025 43:1043\]\n" l2g_send "u2" simple_expect "Number of blocks: 2" "test 27" simple_expect "First unused: 118" "test 28" simple_expect "0: 10 1 10 \\(dense\\) \\\[1010 1011 1012 0 1014 1015 1016 1017 1018 1019 \\\]" "test 29" simple_expect "1: 2 8 25 \\(sparse\\) \\\[25:1025 43:1043 \\\]" "test 30" l2g_send "D0" l2g_send "D1" l2g_send "D2" l2g_stop