2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License, Version 1.0 only
2N/A# (the "License"). You may not use this file except in compliance
2N/A# with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A#
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A#
2N/A
2N/AThese are sample DIAGCODE dictionary files, used only when the
2N/A make test
2N/Atarget is built in the libdiagcode source area. These files have
2N/Aspecial comments embedded in them that the test driver (tstdiagcode.c)
2N/Auses to tell it what tests to run against each dictionary. These
2N/Atests can be used to regression test libdiagcode after a bug fix.
2N/AIf you add a feature to libdiagcode, you should add the appropriate
2N/Aunit tests here.
2N/A
2N/ASince DIAGCODE dictionaries allow comments with the '#' character,
2N/Athe test driver looks for directives in the comments. The directive
2N/Acomments start with:
2N/A
2N/A #TEST:
2N/A
2N/Aand then have a colon-separated list of arguments. The first argument
2N/Ais the function the test driver should call: open, close, codelen, maxkey,
2N/Akey2code, code2key, or getprop. The second argument is the errno expected
2N/Aon return, or zero if no errno is expected. The next two arguments specify
2N/Ainput and output parameters to the function, and are in formats specific
2N/Ato each function. For example:
2N/A
2N/A #TEST:key2code:0:fault.one fault.two:SAMPLE0-8000-5V
2N/A
2N/AThe above line tells the test driver to call fm_dc_key2code() with the key[]
2N/Aarray set to "fault.one" and "fault.two" (in that order) and expect
2N/Aa non-error return, with the code SAMPLE0-8000-5V filled in.