1# $OpenBSD: Makefile,v 1.9 2021/08/29 15:15:45 martijn Exp $
2
3.if ! exists(/usr/local/sbin/snmpd)
4regress:
5	@printf "Install net-snmp package to run this regress.\n"
6	@printf "SKIPPED\n"
7.endif
8
9PROG=			agentx
10SRCS=			main.c log.c
11CFLAGS+=		-Wall
12NOMAN=			yes
13LDADD=			-lagentx -levent
14
15REGRESS_SETUP_ONCE=	start
16REGRESS_TARGETS=
17REGRESS_CLEANUP=	stop
18CLEANFILES=
19
20SNMPD_CMD=		/usr/local/sbin/snmpd -r -C -c snmpd.conf -Le
21UID!!=			id -u
22.if ${UID} == 0
23SNMPD_CMD+=		-u _netsnmp
24.endif
25
26NOOBJECT=		No Such Object available on this agent at this OID
27NOINSTANCE=		No Such Instance currently exists at this OID
28
29CLEANFILES+=		snmpd.conf
30snmpd.conf: Makefile
31	@printf "agentaddress udp:127.0.0.1:6161\n" > snmpd.conf
32	@printf "rwcommunity public\n" >> snmpd.conf
33	@printf "master agentx\n" >> snmpd.conf
34	@printf "agentXSocket agentx.sock\n" >> snmpd.conf
35
36CLEANFILES+=		agentx.sock
37start: stop snmpd.conf agentx
38	${SNMPD_CMD}
39	# XXX Race in net-snmpd, socket exists before data is available.
40	sleep 1
41	./agentx agentx.sock
42
43stop:
44	-pkill -xf "${SNMPD_CMD}"
45
46REGRESS_TARGETS+=	walk
47CLEANFILES+=		walk.run.out walk.run.err
48walk:
49	snmp walk -v2c -cpublic 127.0.0.1:6161 openbsd.100 > walk.run.out 2> walk.run.err || true
50	diff -up ${.CURDIR}/walk.out walk.run.out
51	diff -up ${.CURDIR}/walk.err walk.run.err
52
53REGRESS_TARGETS+=	get_nosuchobject
54get_nosuchobject:
55	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.0)" = "${NOOBJECT}" ]
56
57REGRESS_TARGETS+=	get_nosuchobject_0
58get_nosuchobject_0:
59	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.0.0)" = "${NOOBJECT}" ]
60
61REGRESS_TARGETS+=	get_nosuchobject_tail
62get_nosuchobject_tail:
63	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.0.0.1)" = "${NOOBJECT}" ]
64
65REGRESS_TARGETS+=	get_nosuchobject_index
66get_nosuchobject_index:
67	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.0.1)" = "${NOOBJECT}" ]
68
69REGRESS_TARGETS+=	get_nosuchobject_parent
70get_nosuchobject_parent:
71	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100)" = "${NOOBJECT}" ]
72
73REGRESS_TARGETS+=	get_scalarinteger
74get_scalarinteger:
75	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.1)" = "${NOINSTANCE}" ]
76
77REGRESS_TARGETS+=	get_scalarinteger_0
78get_scalarinteger_0:
79	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.1.0)" = "INTEGER: 1" ]
80
81REGRESS_TARGETS+=	get_scalarinteger_tail
82get_scalarinteger_tail:
83	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.1.0.1)" = "${NOINSTANCE}" ]
84
85REGRESS_TARGETS+=	get_scalarinteger_index
86get_scalarinteger_index:
87	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.1.1)" = "${NOINSTANCE}" ]
88
89REGRESS_TARGETS+=	get_scalarstring
90get_scalarstring:
91	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.2)" = "${NOINSTANCE}" ]
92
93REGRESS_TARGETS+=	get_scalarstring_0
94get_scalarstring_0:
95	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.2.0)" = "STRING: scalar-string" ]
96
97REGRESS_TARGETS+=	get_scalarstring_tail
98get_scalarstring_tail:
99	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.2.0.1)" = "${NOINSTANCE}" ]
100
101REGRESS_TARGETS+=	get_scalarstring_index
102get_scalarstring_index:
103	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.2.1)" = "${NOINSTANCE}" ]
104
105REGRESS_TARGETS+=	get_scalaroid
106get_scalaroid:
107	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.4)" = "${NOINSTANCE}" ]
108
109REGRESS_TARGETS+=	get_scalaroid_0
110get_scalaroid_0:
111	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.4.0)" = "OID: openBSD" ]
112
113REGRESS_TARGETS+=	get_scalaroid_tail
114get_scalaroid_tail:
115	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.4.0.1)" = "${NOINSTANCE}" ]
116
117REGRESS_TARGETS+=	get_scalaroid_index
118get_scalaroid_index:
119	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.4.1)" = "${NOINSTANCE}" ]
120
121REGRESS_TARGETS+=	get_scalaripaddress
122get_scalaripaddress:
123	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.5)" = "${NOINSTANCE}" ]
124
125REGRESS_TARGETS+=	get_scalaripaddress_0
126get_scalaripaddress_0:
127	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.5.0)" = "IpAddress: 127.0.0.1" ]
128
129REGRESS_TARGETS+=	get_scalaripaddress_0
130get_scalaripaddress_0:
131	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.5.0)" = "IpAddress: 127.0.0.1" ]
132
133REGRESS_TARGETS+=	get_scalaripaddress_tail
134get_scalaripaddress_tail:
135	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.5.0.1)" = "${NOINSTANCE}" ]
136
137REGRESS_TARGETS+=	get_scalaripaddress_index
138get_scalaripaddress_index:
139	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.5.1)" = "${NOINSTANCE}" ]
140
141REGRESS_TARGETS+=	get_scalarcounter32
142get_scalarcounter32:
143	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.6)" = "${NOINSTANCE}" ]
144
145REGRESS_TARGETS+=	get_scalarcounter32_0
146get_scalarcounter32_0:
147	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.6.0)" = "Counter32: 1" ]
148
149REGRESS_TARGETS+=	get_scalarcounter32_tail
150get_scalarcounter32_tail:
151	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.6.0.1)" = "${NOINSTANCE}" ]
152
153REGRESS_TARGETS+=	get_scalarcounter32_index
154get_scalarcounter32_index:
155	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.6.1)" = "${NOINSTANCE}" ]
156
157REGRESS_TARGETS+=	get_scalargauge32
158get_scalargauge32:
159	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.7)" = "${NOINSTANCE}" ]
160
161REGRESS_TARGETS+=	get_scalargauge32_0
162get_scalargauge32_0:
163	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.7.0)" = "Gauge32: 1" ]
164
165REGRESS_TARGETS+=	get_scalargauge32_tail
166get_scalargauge32_tail:
167	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.7.0.1)" = "${NOINSTANCE}" ]
168
169REGRESS_TARGETS+=	get_scalargauge32_index
170get_scalargauge32_index:
171	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.7.1)" = "${NOINSTANCE}" ]
172
173REGRESS_TARGETS+=	get_scalartimeticks
174get_scalartimeticks:
175	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.8)" = "${NOINSTANCE}" ]
176
177REGRESS_TARGETS+=	get_scalartimeticks
178get_scalartimeticks:
179	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.8)" = "${NOINSTANCE}" ]
180
181REGRESS_TARGETS+=	get_scalartimeticks_0
182get_scalartimeticks_0:
183	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.8.0)" = "Timeticks: (1) 0:00:00.01" ]
184
185REGRESS_TARGETS+=	get_scalartimeticks_tail
186get_scalartimeticks_tail:
187	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.8.0.1)" = "${NOINSTANCE}" ]
188
189REGRESS_TARGETS+=	get_scalartimeticks_index
190get_scalartimeticks_index:
191	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.8.1)" = "${NOINSTANCE}" ]
192
193REGRESS_TARGETS+=	get_scalaropaque
194get_scalaropaque:
195	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.9)" = "${NOINSTANCE}" ]
196
197REGRESS_TARGETS+=	get_scalaropaque_0
198get_scalaropaque_0:
199	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.9.0)" = "Opaque: 6382179" ]
200
201REGRESS_TARGETS+=	get_scalaropaque_tail
202get_scalaropaque_tail:
203	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.9.0.1)" = "${NOINSTANCE}" ]
204
205REGRESS_TARGETS+=	get_scalaropaque_index
206get_scalaropaque_index:
207	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.9.1)" = "${NOINSTANCE}" ]
208
209REGRESS_TARGETS+=	get_scalarcounter64
210get_scalarcounter64:
211	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.10)" = "${NOINSTANCE}" ]
212
213REGRESS_TARGETS+=	get_scalarcounter64_0
214get_scalarcounter64_0:
215	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.10.0)" = "Counter64: 1" ]
216
217REGRESS_TARGETS+=	get_scalarcounter64_tail
218get_scalarcounter64_tail:
219	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.10.0.1)" = "${NOINSTANCE}" ]
220
221REGRESS_TARGETS+=	get_scalarcounter64_index
222get_scalarcounter64_index:
223	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.10.1)" = "${NOINSTANCE}" ]
224
225REGRESS_TARGETS+=	get_indexint_table
226get_indexint_table:
227	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11)" = "${NOOBJECT}" ]
228
229REGRESS_TARGETS+=	get_indexint_entry
230get_indexint_entry:
231	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1)" = "${NOOBJECT}" ]
232
233REGRESS_TARGETS+=	get_indexint_object
234get_indexint_object:
235	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1)" = "${NOINSTANCE}" ]
236
237REGRESS_TARGETS+=	get_indexint_0
238get_indexint_0:
239	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1.0)" = "${NOINSTANCE}" ]
240
241REGRESS_TARGETS+=	get_indexint_1
242get_indexint_1:
243	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1.1)" = "INTEGER: 1" ]
244
245REGRESS_TARGETS+=	get_indexint_1_tail
246get_indexint_1_tail:
247	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1.1.1)" = "${NOINSTANCE}" ]
248
249REGRESS_TARGETS+=	get_indexint_16
250get_indexint_16:
251	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1.16)" = "${NOINSTANCE}" ]
252
253REGRESS_TARGETS+=	get_indexint_16_tail
254get_indexint_16_tail:
255	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.11.1.1.16.1)" = "${NOINSTANCE}" ]
256
257REGRESS_TARGETS+=	get_indexint2_table
258get_indexint2_table:
259	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12)" = "${NOOBJECT}" ]
260
261REGRESS_TARGETS+=	get_indexint2_entry
262get_indexint2_entry:
263	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1)" = "${NOOBJECT}" ]
264
265REGRESS_TARGETS+=	get_indexint2_object
266get_indexint2_object:
267	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1)" = "${NOINSTANCE}" ]
268
269REGRESS_TARGETS+=	get_indexint2_0
270get_indexint2_0:
271	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.0)" = "${NOINSTANCE}" ]
272
273REGRESS_TARGETS+=	get_indexint2_0_0
274get_indexint2_0_0:
275	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.0.0)" = "INTEGER: 0" ]
276
277REGRESS_TARGETS+=	get_indexint2_0_0_tail
278get_indexint2_0_0_tail:
279	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.0.0.1)" = "${NOINSTANCE}" ]
280
281REGRESS_TARGETS+=	get_indexint2_0_1
282get_indexint2_0_1:
283	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.0.1)" = "INTEGER: 1" ]
284
285REGRESS_TARGETS+=	get_indexint2_0_2
286get_indexint2_0_2:
287	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.0.2)" = "${NOINSTANCE}" ]
288
289REGRESS_TARGETS+=	get_indexint2_1_0
290get_indexint2_1_0:
291	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.1.0)" = "INTEGER: 2" ]
292
293REGRESS_TARGETS+=	get_indexint2_1_0_tail
294get_indexint2_1_0_tail:
295	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.1.0.1)" = "${NOINSTANCE}" ]
296
297REGRESS_TARGETS+=	get_indexint2_8_1
298get_indexint2_8_1:
299	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.8.1)" = "INTEGER: 17" ]
300
301REGRESS_TARGETS+=	get_indexint2_9_0
302get_indexint2_9_0:
303	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.12.1.1.9.0)" = "${NOINSTANCE}" ]
304
305REGRESS_TARGETS+=	get_indexstr_table
306get_indexstr_table:
307	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13)" = "${NOOBJECT}" ]
308
309REGRESS_TARGETS+=	get_indexstr_entry
310get_indexstr_entry:
311	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1)" = "${NOOBJECT}" ]
312
313REGRESS_TARGETS+=	get_indexstr_object
314get_indexstr_object:
315	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1)" = "${NOINSTANCE}" ]
316
317REGRESS_TARGETS+=	get_indexstr_0
318get_indexstr_0:
319	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.0)" = "${NOINSTANCE}" ]
320
321REGRESS_TARGETS+=	get_indexstr_1
322get_indexstr_1:
323	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.1)" = "${NOINSTANCE}" ]
324
325REGRESS_TARGETS+=	get_indexstr_1_96
326get_indexstr_1_96:
327	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.1.96)" = "${NOINSTANCE}" ]
328
329REGRESS_TARGETS+=	get_indexstr_1_97
330get_indexstr_1_97:
331	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.1.97)" = "STRING: a" ]
332
333REGRESS_TARGETS+=	get_indexstr_1_97_tail
334get_indexstr_1_97_tail:
335	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.1.97.1)" = "${NOINSTANCE}" ]
336
337REGRESS_TARGETS+=	get_indexstr_2_97
338get_indexstr_2_97:
339	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.13.1.1.2.97)" = "${NOINSTANCE}" ]
340
341REGRESS_TARGETS+=	get_indeximplstr_table
342get_indeximplstr_table:
343	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14)" = "${NOOBJECT}" ]
344
345REGRESS_TARGETS+=	get_indeximplstr_entry
346get_indeximplstr_entry:
347	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1)" = "${NOOBJECT}" ]
348
349REGRESS_TARGETS+=	get_indeximplstr_object
350get_indeximplstr_object:
351	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1.1)" = "${NOINSTANCE}" ]
352
353REGRESS_TARGETS+=	get_indeximplstr_96
354get_indeximplstr_96:
355	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1.1.96)" = "${NOINSTANCE}" ]
356
357REGRESS_TARGETS+=	get_indeximplstr_97
358get_indeximplstr_97:
359	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1.1.97)" = "STRING: a" ]
360
361REGRESS_TARGETS+=	get_indeximplstr_97_97
362get_indeximplstr_97_97:
363	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1.1.97.97)" = "${NOINSTANCE}" ]
364
365REGRESS_TARGETS+=	get_indeximplstr_100
366get_indeximplstr_100:
367	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.14.1.1.100)" = "${NOINSTANCE}" ]
368
369REGRESS_TARGETS+=	get_indexstr2_table
370get_indexstr2_table:
371	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15)" = "${NOOBJECT}" ]
372
373REGRESS_TARGETS+=	get_indexstr2_entry
374get_indexstr2_entry:
375	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1)" = "${NOOBJECT}" ]
376
377REGRESS_TARGETS+=	get_indexstr2_object
378get_indexstr2_object:
379	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1)" = "${NOINSTANCE}" ]
380
381REGRESS_TARGETS+=	get_indexstr2_1_97_1_97
382get_indexstr2_1_97_1_97:
383	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.97)" = "${NOINSTANCE}" ]
384
385REGRESS_TARGETS+=	get_indexstr2_1_97_1_98
386get_indexstr2_1_97_1_98:
387	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.98)" = "STRING: a - b" ]
388
389REGRESS_TARGETS+=	get_indexstr2_1_97_1_98_tail
390get_indexstr2_1_97_1_98_tail:
391	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.98.1)" = "${NOINSTANCE}" ]
392
393REGRESS_TARGETS+=	get_indexstr2_1_97_2_98
394get_indexstr2_1_97_2_98:
395	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.98)" = "${NOINSTANCE}" ]
396
397REGRESS_TARGETS+=	get_indexstr2_1_97_2_98_98
398get_indexstr2_1_97_2_98_98:
399	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.98.98)" = "STRING: a - bb" ]
400
401REGRESS_TARGETS+=	get_indexstr2_1_97_2_98_98_tail
402get_indexstr2_1_97_2_98_98_tail:
403	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.98.98.1)" = "${NOINSTANCE}" ]
404
405REGRESS_TARGETS+=	get_indexstr2_1_99_2_98_98
406get_indexstr2_1_99_2_98_98:
407	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.99.2.98.98)" = "STRING: c - bb" ]
408
409REGRESS_TARGETS+=	get_indexstr2_1_99_2_98_98_tail
410get_indexstr2_1_99_2_98_98_tail:
411	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.99.2.98.98.1)" = "${NOINSTANCE}" ]
412
413REGRESS_TARGETS+=	get_indexstr2_1_100_2_98_98
414get_indexstr2_1_100_2_98_98:
415	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.100.2.98.98)" = "${NOINSTANCE}" ]
416
417REGRESS_TARGETS+=	get_indexstr2_1_99_2_98_99
418get_indexstr2_1_99_2_98_99:
419	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.15.1.1.1.99.2.98.99)" = "${NOINSTANCE}" ]
420
421REGRESS_TARGETS+=	get_indeximploid_table
422get_indeximploid_table:
423	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16)" = "${NOOBJECT}" ]
424
425REGRESS_TARGETS+=	get_indeximploid_entry
426get_indeximploid_entry:
427	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1)" = "${NOOBJECT}" ]
428
429REGRESS_TARGETS+=	get_indeximploid_object
430get_indeximploid_object:
431	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1)" = "${NOINSTANCE}" ]
432
433REGRESS_TARGETS+=	get_indeximploid_1
434get_indeximploid_1:
435	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1)" = "${NOINSTANCE}" ]
436
437REGRESS_TARGETS+=	get_indeximploid_openbsd
438get_indeximploid_openbsd:
439	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155)" = "${NOINSTANCE}" ]
440
441REGRESS_TARGETS+=	get_indeximploid_openbsd_100_1
442get_indeximploid_openbsd_100_1:
443	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.1)" = "OID: openBSD.100.1" ]
444
445REGRESS_TARGETS+=	get_indeximploid_openbsd_100_1_tail
446get_indeximploid_openbsd_100_1_tail:
447	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.1.1)" = "${NOINSTANCE}" ]
448
449REGRESS_TARGETS+=	get_indeximploid_openbsd_100_1_tail
450get_indeximploid_openbsd_100_1_tail:
451	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.1.1)" = "${NOINSTANCE}" ]
452
453REGRESS_TARGETS+=	get_indeximploid_openbsd_100_20_1_2
454get_indeximploid_openbsd_100_20_1_2:
455	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.20.1.2)" = "OID: openBSD.100.20.1.2" ]
456
457REGRESS_TARGETS+=	get_indeximploid_openbsd_100_20_1_2_tail
458get_indeximploid_openbsd_100_20_1_2_tail:
459	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.20.1.2.1)" = "${NOINSTANCE}" ]
460
461REGRESS_TARGETS+=	get_indeximploid_openbsd_100_4294967294
462get_indeximploid_openbsd_100_4294967294:
463	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.4294967294)" = "${NOINSTANCE}" ]
464
465REGRESS_TARGETS+=	get_indeximploid_openbsd_100_4294967296
466get_indeximploid_openbsd_100_4294967296:
467	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.4294967294)" = "${NOINSTANCE}" ]
468
469REGRESS_TARGETS+=	get_indexipaddress_table
470get_indexipaddress_table:
471	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17)" = "${NOOBJECT}" ]
472
473REGRESS_TARGETS+=	get_indexipaddress_entry
474get_indexipaddress_entry:
475	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1)" = "${NOOBJECT}" ]
476
477REGRESS_TARGETS+=	get_indexipaddress_object
478get_indexipaddress_object:
479	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1)" = "${NOINSTANCE}" ]
480
481REGRESS_TARGETS+=	get_indexipaddress_10
482get_indexipaddress_10:
483	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.10)" = "${NOINSTANCE}" ]
484
485REGRESS_TARGETS+=	get_indexipaddress_10_0
486get_indexipaddress_10_0:
487	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.10.0)" = "${NOINSTANCE}" ]
488
489REGRESS_TARGETS+=	get_indexipaddress_10_0_0
490get_indexipaddress_10_0_0:
491	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0)" = "${NOINSTANCE}" ]
492
493REGRESS_TARGETS+=	get_indexipaddress_10_0_0_0
494get_indexipaddress_10_0_0_0:
495	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0.0)" = "IpAddress: 10.0.0.0" ]
496
497REGRESS_TARGETS+=	get_indexipaddress_10_0_0_0_tail
498get_indexipaddress_10_0_0_0_tail:
499	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0.0.1)" = "${NOINSTANCE}" ]
500
501REGRESS_TARGETS+=	get_indexipaddress_192_168_0_0
502get_indexipaddress_192_168_0_0:
503	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.192.168.0.0)" = "IpAddress: 192.168.0.0" ]
504
505REGRESS_TARGETS+=	get_indexipaddress_192_168_0_0_tail
506get_indexipaddress_192_168_0_0_tail:
507	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.192.168.0.0.1)" = "${NOINSTANCE}" ]
508
509REGRESS_TARGETS+=	get_indexipaddress_193_168_0_0
510get_indexipaddress_193_168_0_0:
511	[ "$$(snmp get -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100.17.1.1.193.168.0.0)" = "${NOINSTANCE}" ]
512
513REGRESS_TARGETS+=	getnext_region
514getnext_region:
515	[ "$$(snmp getnext -v2c -cpublic -Ov 127.0.0.1:6161 openbsd.100)" = "INTEGER: 1" ]
516
517REGRESS_TARGETS+=	getnext_region
518getnext_region:
519	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100)" = "openBSD.100.1.0 = INTEGER: 1" ]
520
521REGRESS_TARGETS+=	getnext_scalarinteger
522getnext_scalarinteger:
523	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.1)" = "openBSD.100.1.0 = INTEGER: 1" ]
524
525REGRESS_TARGETS+=	getnext_scalarinteger_0
526getnext_scalarinteger_0:
527	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.1.0)" = "openBSD.100.2.0 = STRING: scalar-string" ]
528
529REGRESS_TARGETS+=	getnext_scalarinteger_0_tail
530getnext_scalarinteger_0_tail:
531	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.1.0.1)" = "openBSD.100.2.0 = STRING: scalar-string" ]
532
533REGRESS_TARGETS+=	getnext_scalarinteger_index
534getnext_scalarinteger_index:
535	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.1.1)" = "openBSD.100.2.0 = STRING: scalar-string" ]
536
537REGRESS_TARGETS+=	getnext_scalarstring
538getnext_scalarstring:
539	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.2)" = "openBSD.100.2.0 = STRING: scalar-string" ]
540
541REGRESS_TARGETS+=	getnext_scalarstring_0
542getnext_scalarstring_0:
543	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.2.0)" = "openBSD.100.4.0 = OID: openBSD" ]
544
545REGRESS_TARGETS+=	getnext_scalarstring_0_tail
546getnext_scalarstring_0_tail:
547	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.2.0.1)" = "openBSD.100.4.0 = OID: openBSD" ]
548
549REGRESS_TARGETS+=	getnext_scalarstring_index
550getnext_scalarstring_index:
551	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.2.1)" = "openBSD.100.4.0 = OID: openBSD" ]
552
553REGRESS_TARGETS+=	getnext_gap
554getnext_gap:
555	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.3)" = "openBSD.100.4.0 = OID: openBSD" ]
556
557REGRESS_TARGETS+=	getnext_scalaroid
558getnext_scalaroid:
559	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.4)" = "openBSD.100.4.0 = OID: openBSD" ]
560
561REGRESS_TARGETS+=	getnext_scalaroid_0
562getnext_scalaroid_0:
563	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.4.0)" = "openBSD.100.5.0 = IpAddress: 127.0.0.1" ]
564
565REGRESS_TARGETS+=	getnext_scalarcounter64_0
566getnext_scalarcounter64_0:
567	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.10.0)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
568
569REGRESS_TARGETS+=	getnext_indexint_table
570getnext_indexint_table:
571	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
572
573REGRESS_TARGETS+=	getnext_indexint_entry
574getnext_indexint_entry:
575	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
576
577REGRESS_TARGETS+=	getnext_indexint_object
578getnext_indexint_object:
579	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
580
581REGRESS_TARGETS+=	getnext_indexint_object_0
582getnext_indexint_object_0:
583	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.0)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
584
585REGRESS_TARGETS+=	getnext_indexint_object_0_tail
586getnext_indexint_object_0_tail:
587	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.0.1)" = "openBSD.100.11.1.1.1 = INTEGER: 1" ]
588
589REGRESS_TARGETS+=	getnext_indexint_object_1
590getnext_indexint_object_1:
591	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.1)" = "openBSD.100.11.1.1.2 = INTEGER: 2" ]
592
593REGRESS_TARGETS+=	getnext_indexint_object_1_tail
594getnext_indexint_object_1_tail:
595	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.1.1)" = "openBSD.100.11.1.1.2 = INTEGER: 2" ]
596
597REGRESS_TARGETS+=	getnext_indexint_object_15
598getnext_indexint_object_15:
599	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.15)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
600
601REGRESS_TARGETS+=	getnext_indexint_object_15_tail
602getnext_indexint_object_15_tail:
603	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.11.1.1.15.1)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
604
605REGRESS_TARGETS+=	getnext_indexint2_table
606getnext_indexint2_table:
607	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
608
609REGRESS_TARGETS+=	getnext_indexint2_entry
610getnext_indexint2_entry:
611	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
612
613REGRESS_TARGETS+=	getnext_indexint2_object
614getnext_indexint2_object:
615	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
616
617REGRESS_TARGETS+=	getnext_indexint2_0
618getnext_indexint2_0:
619	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0)" = "openBSD.100.12.1.1.0.0 = INTEGER: 0" ]
620
621REGRESS_TARGETS+=	getnext_indexint2_0_0
622getnext_indexint2_0_0:
623	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.0)" = "openBSD.100.12.1.1.0.1 = INTEGER: 1" ]
624
625REGRESS_TARGETS+=	getnext_indexint2_0_0_tail
626getnext_indexint2_0_0_tail:
627	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.0.1)" = "openBSD.100.12.1.1.0.1 = INTEGER: 1" ]
628
629REGRESS_TARGETS+=	getnext_indexint2_0_1
630getnext_indexint2_0_1:
631	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.1)" = "openBSD.100.12.1.1.1.0 = INTEGER: 2" ]
632
633REGRESS_TARGETS+=	getnext_indexint2_0_1_tail
634getnext_indexint2_0_1_tail:
635	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.1.1)" = "openBSD.100.12.1.1.1.0 = INTEGER: 2" ]
636
637REGRESS_TARGETS+=	getnext_indexint2_0_2
638getnext_indexint2_0_2:
639	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.2)" = "openBSD.100.12.1.1.1.0 = INTEGER: 2" ]
640
641REGRESS_TARGETS+=	getnext_indexint2_0_2_tail
642getnext_indexint2_0_2_tail:
643	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.0.2.1)" = "openBSD.100.12.1.1.1.0 = INTEGER: 2" ]
644
645REGRESS_TARGETS+=	getnext_indexint2_1
646getnext_indexint2_1:
647	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.1)" = "openBSD.100.12.1.1.1.0 = INTEGER: 2" ]
648
649REGRESS_TARGETS+=	getnext_indexint2_1_0
650getnext_indexint2_1_0:
651	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.1.0)" = "openBSD.100.12.1.1.1.1 = INTEGER: 3" ]
652
653REGRESS_TARGETS+=	getnext_indexint2_1_0_tail
654getnext_indexint2_1_0_tail:
655	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.1.0.1)" = "openBSD.100.12.1.1.1.1 = INTEGER: 3" ]
656
657REGRESS_TARGETS+=	getnext_indexint2_8_1
658getnext_indexint2_8_1:
659	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.8.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
660
661REGRESS_TARGETS+=	getnext_indexint2_8_1_tail
662getnext_indexint2_8_1_tail:
663	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.8.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
664
665REGRESS_TARGETS+=	getnext_indexint2_9
666getnext_indexint2_9:
667	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.12.1.1.9)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
668
669REGRESS_TARGETS+=	getnext_indexstr_table
670getnext_indexstr_table:
671	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
672
673REGRESS_TARGETS+=	getnext_indexstr_entry
674getnext_indexstr_entry:
675	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
676
677REGRESS_TARGETS+=	getnext_indexstr_object
678getnext_indexstr_object:
679	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
680
681REGRESS_TARGETS+=	getnext_indexstr_object
682getnext_indexstr_object:
683	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
684
685REGRESS_TARGETS+=	getnext_indexstr_0
686getnext_indexstr_0:
687	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.0)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
688
689REGRESS_TARGETS+=	getnext_indexstr_1
690getnext_indexstr_1:
691	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
692
693REGRESS_TARGETS+=	getnext_indexstr_1_1
694getnext_indexstr_1_1:
695	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
696
697REGRESS_TARGETS+=	getnext_indexstr_1_1_tail
698getnext_indexstr_1_1_tail:
699	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.1.1)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
700
701REGRESS_TARGETS+=	getnext_indexstr_1_96
702getnext_indexstr_1_96:
703	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.96)" = "openBSD.100.13.1.1.1.97 = STRING: a" ]
704
705REGRESS_TARGETS+=	getnext_indexstr_1_97
706getnext_indexstr_1_97:
707	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.97)" = "openBSD.100.13.1.1.1.98 = STRING: b" ]
708
709REGRESS_TARGETS+=	getnext_indexstr_1_97_tail
710getnext_indexstr_1_97_tail:
711	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.97.1)" = "openBSD.100.13.1.1.1.98 = STRING: b" ]
712
713REGRESS_TARGETS+=	getnext_indexstr_1_99
714getnext_indexstr_1_99:
715	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.99)" = "openBSD.100.14.1.1.97 = STRING: a" ]
716
717REGRESS_TARGETS+=	getnext_indexstr_1_99_tail
718getnext_indexstr_1_99_tail:
719	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.99.1)" = "openBSD.100.14.1.1.97 = STRING: a" ]
720
721REGRESS_TARGETS+=	getnext_indexstr_1_999
722getnext_indexstr_1_999:
723	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.1.999)" = "openBSD.100.14.1.1.97 = STRING: a" ]
724
725REGRESS_TARGETS+=	getnext_indexstr_2
726getnext_indexstr_2:
727	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.2)" = "openBSD.100.14.1.1.97 = STRING: a" ]
728
729REGRESS_TARGETS+=	getnext_indexstr_999
730getnext_indexstr_999:
731	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.13.1.1.999)" = "openBSD.100.14.1.1.97 = STRING: a" ]
732
733REGRESS_TARGETS+=	getnext_indeximplstr_table
734getnext_indeximplstr_table:
735	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14)" = "openBSD.100.14.1.1.97 = STRING: a" ]
736
737REGRESS_TARGETS+=	getnext_indeximplstr_entry
738getnext_indeximplstr_entry:
739	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1)" = "openBSD.100.14.1.1.97 = STRING: a" ]
740
741REGRESS_TARGETS+=	getnext_indeximplstr_object
742getnext_indeximplstr_object:
743	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1)" = "openBSD.100.14.1.1.97 = STRING: a" ]
744
745REGRESS_TARGETS+=	getnext_indeximplstr_0
746getnext_indeximplstr_0:
747	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.0)" = "openBSD.100.14.1.1.97 = STRING: a" ]
748
749REGRESS_TARGETS+=	getnext_indeximplstr_0_tail
750getnext_indeximplstr_0_tail:
751	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.0.1)" = "openBSD.100.14.1.1.97 = STRING: a" ]
752
753REGRESS_TARGETS+=	getnext_indeximplstr_96
754getnext_indeximplstr_96:
755	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.96)" = "openBSD.100.14.1.1.97 = STRING: a" ]
756
757REGRESS_TARGETS+=	getnext_indeximplstr_96_tail
758getnext_indeximplstr_96_tail:
759	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.96.1)" = "openBSD.100.14.1.1.97 = STRING: a" ]
760
761REGRESS_TARGETS+=	getnext_indeximplstr_97
762getnext_indeximplstr_97:
763	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.97)" = "openBSD.100.14.1.1.98 = STRING: b" ]
764
765REGRESS_TARGETS+=	getnext_indeximplstr_97_tail
766getnext_indeximplstr_97_tail:
767	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.97.1)" = "openBSD.100.14.1.1.98 = STRING: b" ]
768
769REGRESS_TARGETS+=	getnext_indeximplstr_97_tail
770getnext_indeximplstr_97_tail:
771	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.97.1)" = "openBSD.100.14.1.1.98 = STRING: b" ]
772
773REGRESS_TARGETS+=	getnext_indeximplstr_99
774getnext_indeximplstr_99:
775	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.99)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
776
777REGRESS_TARGETS+=	getnext_indeximplstr_99_tail
778getnext_indeximplstr_99_tail:
779	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.99.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
780
781REGRESS_TARGETS+=	getnext_indeximplstr_100
782getnext_indeximplstr_100:
783	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.100)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
784
785REGRESS_TARGETS+=	getnext_indeximplstr_999
786getnext_indeximplstr_999:
787	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.999)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
788
789REGRESS_TARGETS+=	getnext_indeximplstr_999
790getnext_indeximplstr_999:
791	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.14.1.1.999)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
792
793REGRESS_TARGETS+=	getnext_indexstr2_table
794getnext_indexstr2_table:
795	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
796
797REGRESS_TARGETS+=	getnext_indexstr2_entry
798getnext_indexstr2_entry:
799	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
800
801REGRESS_TARGETS+=	getnext_indexstr2_object
802getnext_indexstr2_object:
803	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
804
805REGRESS_TARGETS+=	getnext_indexstr2_0
806getnext_indexstr2_0:
807	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.0)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
808
809REGRESS_TARGETS+=	getnext_indexstr2_1
810getnext_indexstr2_1:
811	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
812
813REGRESS_TARGETS+=	getnext_indexstr2_1_1
814getnext_indexstr2_1_1:
815	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
816
817REGRESS_TARGETS+=	getnext_indexstr2_1_96
818getnext_indexstr2_1_96:
819	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.96)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
820
821REGRESS_TARGETS+=	getnext_indexstr2_1_97
822getnext_indexstr2_1_97:
823	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
824
825REGRESS_TARGETS+=	getnext_indexstr2_1_97_0
826getnext_indexstr2_1_97_0:
827	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.0)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
828
829REGRESS_TARGETS+=	getnext_indexstr2_1_97_1
830getnext_indexstr2_1_97_1:
831	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
832
833REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_1
834getnext_indexstr2_1_97_1_1:
835	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
836
837REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_1_tail
838getnext_indexstr2_1_97_1_1_tail:
839	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.1.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
840
841REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_97
842getnext_indexstr2_1_97_1_97:
843	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.97)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
844
845REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_97_tail
846getnext_indexstr2_1_97_1_97_tail:
847	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.97.1)" = "openBSD.100.15.1.1.1.97.1.98 = STRING: a - b" ]
848
849REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_98
850getnext_indexstr2_1_97_1_98:
851	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.98)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
852
853REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_98_1
854getnext_indexstr2_1_97_1_98_1:
855	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.98.1)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
856
857REGRESS_TARGETS+=	getnext_indexstr2_1_97_1_98_1
858getnext_indexstr2_1_97_1_98_1:
859	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.1.98.1)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
860
861REGRESS_TARGETS+=	getnext_indexstr2_1_97_2
862getnext_indexstr2_1_97_2:
863	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
864
865REGRESS_TARGETS+=	getnext_indexstr2_1_97_2
866getnext_indexstr2_1_97_2:
867	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
868
869REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_1
870getnext_indexstr2_1_97_2_1:
871	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.1)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
872
873REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_1_1
874getnext_indexstr2_1_97_2_1_1:
875	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.1.1)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
876
877REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_1_1_tail
878getnext_indexstr2_1_97_2_1_1_tail:
879	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.1.1.1)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
880
881REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_97
882getnext_indexstr2_1_97_2_97:
883	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.97)" = "openBSD.100.15.1.1.1.97.2.97.97 = STRING: a - aa" ]
884
885REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_97_97
886getnext_indexstr2_1_97_2_97_97:
887	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.97.97)" = "openBSD.100.15.1.1.1.97.2.98.98 = STRING: a - bb" ]
888
889REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_97_97_tail
890getnext_indexstr2_1_97_2_97_97_tail:
891	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.97.97.1)" = "openBSD.100.15.1.1.1.97.2.98.98 = STRING: a - bb" ]
892
893REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_97_98
894getnext_indexstr2_1_97_2_97_98:
895	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.97.98)" = "openBSD.100.15.1.1.1.97.2.98.98 = STRING: a - bb" ]
896
897REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_98_97
898getnext_indexstr2_1_97_2_98_97:
899	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.98.97)" = "openBSD.100.15.1.1.1.97.2.98.98 = STRING: a - bb" ]
900
901REGRESS_TARGETS+=	getnext_indexstr2_1_97_2_98_97_tail
902getnext_indexstr2_1_97_2_98_97_tail:
903	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.2.98.97.1)" = "openBSD.100.15.1.1.1.97.2.98.98 = STRING: a - bb" ]
904
905REGRESS_TARGETS+=	getnext_indexstr2_1_97_3
906getnext_indexstr2_1_97_3:
907	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.3)" = "openBSD.100.15.1.1.1.98.1.98 = STRING: b - b" ]
908
909REGRESS_TARGETS+=	getnext_indexstr2_1_97_3
910getnext_indexstr2_1_97_3:
911	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.3)" = "openBSD.100.15.1.1.1.98.1.98 = STRING: b - b" ]
912
913REGRESS_TARGETS+=	getnext_indexstr2_1_97_3
914getnext_indexstr2_1_97_3:
915	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.97.3)" = "openBSD.100.15.1.1.1.98.1.98 = STRING: b - b" ]
916
917REGRESS_TARGETS+=	getnext_indexstr2_1_99_2_98_98
918getnext_indexstr2_1_99_2_98_98:
919	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.99.2.98.98)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
920
921REGRESS_TARGETS+=	getnext_indexstr2_1_99_2_98_98
922getnext_indexstr2_1_99_2_98_98:
923	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.15.1.1.1.99.2.98.98)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
924
925REGRESS_TARGETS+=	getnext_indexoid_table
926getnext_indexoid_table:
927	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
928
929REGRESS_TARGETS+=	getnext_indexoid_entry
930getnext_indexoid_entry:
931	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
932
933REGRESS_TARGETS+=	getnext_indexoid_object
934getnext_indexoid_object:
935	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
936
937REGRESS_TARGETS+=	getnext_indexoid_0
938getnext_indexoid_0:
939	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.0)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
940
941REGRESS_TARGETS+=	getnext_indexoid_1
942getnext_indexoid_1:
943	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
944
945REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_0
946getnext_indexoid_1_3_6_1_4_1_30155_100_0:
947	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.0)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
948
949REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_0_tail
950getnext_indexoid_1_3_6_1_4_1_30155_100_0_tail:
951	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.0.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.1 = OID: openBSD.100.1" ]
952
953REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_1
954getnext_indexoid_1_3_6_1_4_1_30155_100_1:
955	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.2 = OID: openBSD.100.2" ]
956
957REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_1_tail
958getnext_indexoid_1_3_6_1_4_1_30155_100_1_tail:
959	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.1.1)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.2 = OID: openBSD.100.2" ]
960
961REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_4294967294
962getnext_indexoid_1_3_6_1_4_1_30155_100_4294967294:
963	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.4294967294)" = "openBSD.100.16.1.1.1.3.6.1.4.1.30155.100.4294967295 = OID: openBSD.100.4294967295" ]
964
965REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_4294967295
966getnext_indexoid_1_3_6_1_4_1_30155_100_4294967295:
967	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.4294967295)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
968
969REGRESS_TARGETS+=	getnext_indexoid_1_3_6_1_4_1_30155_100_4294967295_tail
970getnext_indexoid_1_3_6_1_4_1_30155_100_4294967295_tail:
971	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.16.1.1.1.3.6.1.4.1.30155.100.4294967295.1)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
972
973REGRESS_TARGETS+=	getnext_indexipaddress_table
974getnext_indexipaddress_table:
975	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
976
977REGRESS_TARGETS+=	getnext_indexipaddress_entry
978getnext_indexipaddress_entry:
979	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
980
981REGRESS_TARGETS+=	getnext_indexipaddress_object
982getnext_indexipaddress_object:
983	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
984
985REGRESS_TARGETS+=	getnext_indexipaddress_0
986getnext_indexipaddress_0:
987	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.0)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
988
989REGRESS_TARGETS+=	getnext_indexipaddress_10
990getnext_indexipaddress_10:
991	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
992
993REGRESS_TARGETS+=	getnext_indexipaddress_10_0
994getnext_indexipaddress_10_0:
995	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.0)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
996
997REGRESS_TARGETS+=	getnext_indexipaddress_10_0_0
998getnext_indexipaddress_10_0_0:
999	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0)" = "openBSD.100.17.1.1.10.0.0.0 = IpAddress: 10.0.0.0" ]
1000
1001REGRESS_TARGETS+=	getnext_indexipaddress_10_0_0_0
1002getnext_indexipaddress_10_0_0_0:
1003	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0.0)" = "openBSD.100.17.1.1.127.0.0.1 = IpAddress: 127.0.0.1" ]
1004
1005REGRESS_TARGETS+=	getnext_indexipaddress_10_0_0_1
1006getnext_indexipaddress_10_0_0_1:
1007	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.0.0.1)" = "openBSD.100.17.1.1.127.0.0.1 = IpAddress: 127.0.0.1" ]
1008
1009REGRESS_TARGETS+=	getnext_indexipaddress_10_0_1
1010getnext_indexipaddress_10_0_1:
1011	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.0.1)" = "openBSD.100.17.1.1.127.0.0.1 = IpAddress: 127.0.0.1" ]
1012
1013REGRESS_TARGETS+=	getnext_indexipaddress_10_1
1014getnext_indexipaddress_10_1:
1015	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.10.1)" = "openBSD.100.17.1.1.127.0.0.1 = IpAddress: 127.0.0.1" ]
1016
1017REGRESS_TARGETS+=	getnext_indexipaddress_192_168
1018getnext_indexipaddress_192_168:
1019	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.192.168)" = "openBSD.100.17.1.1.192.168.0.0 = IpAddress: 192.168.0.0" ]
1020
1021REGRESS_TARGETS+=	getnext_indexipaddress_192_168_0_0
1022getnext_indexipaddress_192_168_0_0:
1023	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.17.1.1.192.168.0.0)" = "openBSD.100.18.1.1.5 = INTEGER: 5" ]
1024
1025REGRESS_TARGETS+=	getnext_indexintvalue_table
1026getnext_indexintvalue_table:
1027	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18)" = "openBSD.100.18.1.1.5 = INTEGER: 5" ]
1028
1029REGRESS_TARGETS+=	getnext_indexintvalue_entry
1030getnext_indexintvalue_entry:
1031	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1)" = "openBSD.100.18.1.1.5 = INTEGER: 5" ]
1032
1033REGRESS_TARGETS+=	getnext_indexintvalue_int
1034getnext_indexintvalue_int:
1035	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.1)" = "openBSD.100.18.1.1.5 = INTEGER: 5" ]
1036
1037REGRESS_TARGETS+=	getnext_indexintvalue_int_0
1038getnext_indexintvalue_int_0:
1039	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.1.0)" = "openBSD.100.18.1.1.5 = INTEGER: 5" ]
1040
1041REGRESS_TARGETS+=	getnext_indexintvalue_int_5
1042getnext_indexintvalue_int_5:
1043	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.1.5)" = "openBSD.100.18.1.2.5 = STRING: 5" ]
1044
1045REGRESS_TARGETS+=	getnext_indexintvalue_int_5_tail
1046getnext_indexintvalue_int_5_tail:
1047	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.1.5.1)" = "openBSD.100.18.1.2.5 = STRING: 5" ]
1048
1049REGRESS_TARGETS+=	getnext_indexintvalue_int_6
1050getnext_indexintvalue_int_6:
1051	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.1.6)" = "openBSD.100.18.1.2.5 = STRING: 5" ]
1052
1053REGRESS_TARGETS+=	getnext_indexintvalue_string_5
1054getnext_indexintvalue_string_5:
1055	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.2.5)" = "openBSD.100.19.1.1.1 = INTEGER: 1" ]
1056
1057REGRESS_TARGETS+=	getnext_indexintvalue_string_5
1058getnext_indexintvalue_string_5:
1059	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.18.1.2.5)" = "openBSD.100.19.1.1.1 = INTEGER: 1" ]
1060
1061REGRESS_TARGETS+=	getnext_indexintany_int
1062getnext_indexintany_int:
1063	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.1)" = "openBSD.100.19.1.1.1 = INTEGER: 1" ]
1064
1065REGRESS_TARGETS+=	getnext_indexintany_int_0
1066getnext_indexintany_int_0:
1067	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.1.0)" = "openBSD.100.19.1.1.1 = INTEGER: 1" ]
1068
1069REGRESS_TARGETS+=	getnext_indexintany_int_0_tail
1070getnext_indexintany_int_0_tail:
1071	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.1.0.1)" = "openBSD.100.19.1.1.1 = INTEGER: 1" ]
1072
1073REGRESS_TARGETS+=	getnext_indexintany_int_1
1074getnext_indexintany_int_1:
1075	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.1.1)" = "openBSD.100.19.1.2.1 = STRING: 1" ]
1076
1077REGRESS_TARGETS+=	getnext_indexintany_int_1_tail
1078getnext_indexintany_int_1_tail:
1079	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.1.1.1)" = "openBSD.100.19.1.2.1 = STRING: 1" ]
1080
1081REGRESS_TARGETS+=	getnext_indexintany_string_1
1082getnext_indexintany_string_1:
1083	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.19.1.2.1)" = "openBSD.100.20.1.1.1 = INTEGER: 1" ]
1084
1085REGRESS_TARGETS+=	getnext_indexintnew_int
1086getnext_indexintnew_int:
1087	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.20.1.1)" = "openBSD.100.20.1.1.1 = INTEGER: 1" ]
1088
1089REGRESS_TARGETS+=	getnext_indexintnew_int_0
1090getnext_indexintnew_int_0:
1091	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.20.1.1.0)" = "openBSD.100.20.1.1.1 = INTEGER: 1" ]
1092
1093REGRESS_TARGETS+=	getnext_indexintnew_int_1
1094getnext_indexintnew_int_1:
1095	[ "$$(snmp getnext -v2c -cpublic 127.0.0.1:6161 openbsd.100.20.1.1.1)" = "openBSD.100.20.1.2.1 = STRING: 1" ]
1096
1097.include <bsd.regress.mk>
1098