1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
# expect/tcl code to test the dds parser and scanner
# jhrg
#
# $Log: test.13.exp,v $
# Revision 1.1 2003/08/11 20:50:10 ndp
# Initial revision
#
# Revision 1.2 2002/05/23 01:43:33 jimg
# Added/Updated using stuff from C++.
#
# Revision 1.9 2002/05/23 01:29:05 jimg
# Updated using code from C++.
#
# Revision 1.8 2000/10/03 22:18:04 jimg
# Fixes to the tests to accomodate debugging fixes in DDS.cc
#
# Revision 1.7 2000/09/22 02:52:59 jimg
# Fixes to the tests to recognize some of the new error messages. Also,
# the test drivers were modified to catch the exceptions now thrown by
# some of the parsers.
#
# Revision 1.6 2000/06/16 18:15:01 jimg
# Merged with 3.1.7
#
# Revision 1.5.22.1 2000/06/15 02:24:57 jimg
# Fixed the tests: problems with PATH, etc. broke the tests on my new machine
#
# Revision 1.5 1998/08/13 22:09:36 jimg
# Fixed test after fixing misspelled error message.
#
# Revision 1.4 1997/03/27 18:20:08 jimg
# Update for version 2.13
#
# Revision 1.3 1996/08/13 16:38:16 jimg
# Fixed tests so that they match the output of the parser.
#
# Revision 1.2 1996/05/14 15:41:37 jimg
# These changes have already been checked in once before. However, I
# corrupted the source repository and restored it from a 5/9/96 backup
# tape. The previous version's log entry should cover the changes.
#
# Revision 1.1 1994/12/21 17:01:29 jimg
# Added these to the testsuite.
#
global comp_output # contains output from dds-test_start
global verbose # this and srcdir are set by runtest.exp
global srcdir
# The variable `test_name' is the name of the das input file for this test.
set test_name test.13
# The variable `test_out' is a string that contains the text that should be
# stored in comp_output by das-test_start. The two strings should match
# exactly.
set test_out "Error parsing the text on line 5 at or near: 10
In the dataset descriptor object:
Expected an array subscript.
"
dds-test_start p $srcdir/$test_name
if ![string compare $test_out $comp_output] { # check comp_output
pass "$test_name"
} else {
xfail "$test_name"
}
|