xref: /titanic_52/usr/src/lib/fm/libdiagcode/common/tests/SAMPLE0.dict (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate#
5*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
6*7c478bd9Sstevel@tonic-gate#
7*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
8*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
9*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
10*7c478bd9Sstevel@tonic-gate# with the License.
11*7c478bd9Sstevel@tonic-gate#
12*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
14*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
15*7c478bd9Sstevel@tonic-gate# and limitations under the License.
16*7c478bd9Sstevel@tonic-gate#
17*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
18*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
20*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
21*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
24*7c478bd9Sstevel@tonic-gate#
25*7c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
26*7c478bd9Sstevel@tonic-gate#
27*7c478bd9Sstevel@tonic-gate#
28*7c478bd9Sstevel@tonic-gate# SAMPLE0 diagcode dictionary -- used by "make test" target only
29*7c478bd9Sstevel@tonic-gate#
30*7c478bd9Sstevel@tonic-gate# this sample dictionary tests code type 0, the smallest type,
31*7c478bd9Sstevel@tonic-gate# since the bits required to hold the value is less than 22.
32*7c478bd9Sstevel@tonic-gate#
33*7c478bd9Sstevel@tonic-gateFMDICT: name=SAMPLE0 idname=Hello version=1 maxkey=5
34*7c478bd9Sstevel@tonic-gate#
35*7c478bd9Sstevel@tonic-gate# here's a worked by hand example for key: "fault.one fault.two"
36*7c478bd9Sstevel@tonic-gate#
37*7c478bd9Sstevel@tonic-gate#   Dictname: "SAMPLE0"
38*7c478bd9Sstevel@tonic-gate#    Dictval: 5: below 2^21-1
39*7c478bd9Sstevel@tonic-gate#   Format 0: DICT-XXXX-XX
40*7c478bd9Sstevel@tonic-gate#              2 bits code type
41*7c478bd9Sstevel@tonic-gate#              2 bits size
42*7c478bd9Sstevel@tonic-gate#             21 bits dictval
43*7c478bd9Sstevel@tonic-gate#              8 bits checksum
44*7c478bd9Sstevel@tonic-gate#  Code type: 01
45*7c478bd9Sstevel@tonic-gate#  Code size: 00
46*7c478bd9Sstevel@tonic-gate#    Dictval: 000000000000000000101
47*7c478bd9Sstevel@tonic-gate#   Checksum: 11100
48*7c478bd9Sstevel@tonic-gate#  Converted:
49*7c478bd9Sstevel@tonic-gate#             01000 = 8
50*7c478bd9Sstevel@tonic-gate#             00000 = 0
51*7c478bd9Sstevel@tonic-gate#             00000 = 0
52*7c478bd9Sstevel@tonic-gate#             00000 = 0
53*7c478bd9Sstevel@tonic-gate#             00101 = 5
54*7c478bd9Sstevel@tonic-gate#             11100 = V
55*7c478bd9Sstevel@tonic-gate#SUNW-MSG-ID: SAMPLE0-8000-5V
56*7c478bd9Sstevel@tonic-gate#
57*7c478bd9Sstevel@tonic-gate# test of minor versioning: the string below should be ignored
58*7c478bd9Sstevel@tonic-gatefault.one fault.three fault.two=2 "this is all three faults"
59*7c478bd9Sstevel@tonic-gatefault.one fault.three=1
60*7c478bd9Sstevel@tonic-gatefault.one=7
61*7c478bd9Sstevel@tonic-gatefault.two=6
62*7c478bd9Sstevel@tonic-gatefault.one fault.two=5
63*7c478bd9Sstevel@tonic-gatefault.three=4
64*7c478bd9Sstevel@tonic-gatefault.three fault.two=3
65*7c478bd9Sstevel@tonic-gate#
66*7c478bd9Sstevel@tonic-gate#TEST:open:0
67*7c478bd9Sstevel@tonic-gate#TEST:codelen:0:32
68*7c478bd9Sstevel@tonic-gate#TEST:getprop:0:name:SAMPLE0
69*7c478bd9Sstevel@tonic-gate#TEST:getprop:0:version:1
70*7c478bd9Sstevel@tonic-gate#TEST:getprop:0:maxkey:5
71*7c478bd9Sstevel@tonic-gate#TEST:getprop:0:idname:Hello
72*7c478bd9Sstevel@tonic-gate#TEST:key2code:0:fault.two fault.one:SAMPLE0-8000-5V
73*7c478bd9Sstevel@tonic-gate#TEST:key2code:0:fault.one fault.two:SAMPLE0-8000-5V
74*7c478bd9Sstevel@tonic-gate#TEST:key2code:0:fault.one fault.two fault.one:SAMPLE0-8000-5V
75*7c478bd9Sstevel@tonic-gate#TEST:key2code:0:fault.one fault.two fault.one fault.one fault.two:SAMPLE0-8000-5V
76*7c478bd9Sstevel@tonic-gate#TEST:key2code:ENOMSG:fault.one fault.poop
77*7c478bd9Sstevel@tonic-gate#TEST:close
78*7c478bd9Sstevel@tonic-gate#TEST:open:0
79*7c478bd9Sstevel@tonic-gate#TEST:maxkey:0:6
80*7c478bd9Sstevel@tonic-gate#TEST:code2key:EINVAL:SAMPLE0-7000-5S:fault.one fault.two
81*7c478bd9Sstevel@tonic-gate#TEST:code2key:EINVAL:SAMPLE0-8010-5S:fault.one fault.two
82*7c478bd9Sstevel@tonic-gate#TEST:code2key:EINVAL:SAMPLE0-8000-5T:fault.one fault.two
83*7c478bd9Sstevel@tonic-gate#TEST:code2key:EINVAL:SAMPLE0-8000-S5:fault.one fault.two
84*7c478bd9Sstevel@tonic-gate#TEST:code2key:EINVAL:SAMPLE0-0800-5S:fault.one fault.two
85*7c478bd9Sstevel@tonic-gate#TEST:code2key:0:SAMPLE0-8000-5V:fault.one fault.two
86*7c478bd9Sstevel@tonic-gate#TEST:close
87*7c478bd9Sstevel@tonic-gate#
88