#!/bin/sh
#
# Test results last captured at "Fri Nov 14 12:42:11 PST 2003"
#
# This is an IBIS icm test program
#
# It is a self-contained package of all of the 
# files and data required to run an icm parser test.
#
# Usage:  ./test_005  <arg>
#
# <nothing>               = Run the test silently in GNU check mode
# "Brief"                 = Run the test.
#                           If there is no error, produce a one line summary
#                           Otherwise, produce a full test report.
# "Full"                  = Run the test and always produce a full test report
# "Capture"               = Capture test results and REWRITE the test program
# "Extract"               = Extract the .icm and .out files
#

Test=`basename $0`
Version="1.0"
Synopsis="<TAB> Characters causes warnings"
ExitStatus="0"
Counters="ERRORS: 0 WARNINGS: 1"
ExtraFiles="test_model_1.jpg"
GNUCheck="Yes"

Description=`cat <<'EOF'
This file contains 6 tab characters.

This must result in 6 warnings.
EOF`

Output=`cat <<'EOF'
IBIS ICM Parser, version 1.0.0
WARNING (Line 7/Col 1) One or more TAB characters were found. The use of TABs is discouraged.
Finished. ERRORS: 0 WARNINGS: 1
EOF`

ICM=`cat <<'EOF'

What follows is a bunch of illegal characters.  They are illegal anytime
even before the [Begin Header]

Some characters below <space>.  There are 3 errors here.

	<---------- tab
----->	<---------- tab
------->	<---tab


|**********************************************************************
[Begin Header]
[ICM Ver]             1.0
[File Name]           test_005.icm
[File Rev]            0.1
[Date]                October 8, 2003
[Source]              Kelly C. Green

[Notes]               Test Illegal character handling

[Disclaimer]          No license, express or implied, by estoppel or 
                      otherwise, to any intellectual property rights is 
                      granted by this document. 
--->	<--- tab
                      No warranty of any kind.  No support of any kind.
                      Use this file entirely at your own risk.

[Copyright]           None - public domain
[Support]             http://www.vhdl.org/pub/ibis/
[Redistribution]      Yes    
[Redistribution Text] You may do anything you wish to this file.
[End Header]

|
|--->	<--- tab

|**********************************************************************
|
[Comment Char] |_char
|
|**********************************************************************

[Begin ICM Family]        Template test file
[Manufacturer]            None
[ICM Family Description]  This file is a template from which most 
                          subsequent test files will be derived.

|**********************************************************************
[ICM Model List] 
|  Name             Mating   Min_Slew_Time   Image
|
   TestModel1       Mated    100ps           test_model_1.jpg
|
|          SectA
| Port1 >---------< Port2
|
|**********************************************************************
[Begin ICM Model] TestModel1
ICM_model_type SLM_general
SGR 1:1
|
[Tree Path Description]
  Model_pinmap Port1
  Section Mult=1 SectA
  Model_pinmap Port2
|
[End ICM Model]
|
|**********************************************************************
[ICM Pin Map] Port1
Pin_order Row_ordered
Num_of_rows	= 1     | tab before '='
Num_of_columns = 2
Pin_list
|Pin Name
A1 SIG1_IN
A2 SIG2_IN

[ICM Pin Map] Port2
Pin_order Row_ordered
Num_of_rows = 1
Num_of_columns = 2
Pin_list
|Pin Name
B1 SIG1_OUT
B2 SIG2_OUT

[End ICM Family]
|
|**********************************************************************
[Begin ICM Section] SectA
[Derivation Method] Lumped
[Resistance Matrix] Diagonal_matrix
1.0mohm
1.0e-3
[Inductance Matrix] Diagonal_matrix
4.0nh
4.0e-9
[Capacitance Matrix] Diagonal_matrix
2.0pf
2.0e-12
[End ICM Section] SectA

|**********************************************************************
[End]
|**********************************************************************
EOF`

if [ -z "${srcdir}" ]
then
    srcdir="."
fi

export srcdir Test Version Synopsis ExitStatus Counters ExtraFiles GNUCheck Description Output ICM

exec ${srcdir}/run_test "$@"
