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