1 AT_BANNER([OVSDB -- interface description language (IDL)])
3 # OVSDB_CHECK_IDL_C(TITLE, [PRE-IDL-TXN], TRANSACTIONS, OUTPUT, [KEYWORDS],
6 # Creates a database with a schema derived from idltest.ovsidl, runs
7 # each PRE-IDL-TXN (if any), starts an ovsdb-server on that database,
8 # and runs "test-ovsdb idl" passing each of the TRANSACTIONS along.
10 # Checks that the overall output is OUTPUT. Before comparison, the
11 # output is sorted (using "sort") and UUIDs in the output are replaced
12 # by markers of the form <N> where N is a number. The first unique
13 # UUID is replaced by <0>, the next by <1>, and so on. If a given
14 # UUID appears more than once it is always replaced by the same
15 # marker. If FILTER is supplied then the output is also filtered
16 # through the specified program.
18 # TITLE is provided to AT_SETUP and KEYWORDS to AT_KEYWORDS.
19 m4_define([OVSDB_CHECK_IDL_C],
21 AT_KEYWORDS([ovsdb server idl positive $5])
22 AT_CHECK([ovsdb-tool create db $abs_srcdir/idltest.ovsschema],
23 [0], [stdout], [ignore])
24 AT_CHECK([ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --no-chdir --pidfile="`pwd`"/pid --remote=punix:socket --unixctl="`pwd`"/unixctl db], [0], [ignore], [ignore])
26 [AT_CHECK([ovsdb-client transact unix:socket $2], [0], [ignore], [ignore], [kill `cat pid`])])
27 AT_CHECK([test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket $3],
28 [0], [stdout], [ignore], [kill `cat pid`])
29 AT_CHECK([sort stdout | ${PERL} $srcdir/uuidfilt.pl]m4_if([$6],,, [[| $6]]),
30 [0], [$4], [], [kill `cat pid`])
34 # same as OVSDB_CHECK_IDL but uses the Python IDL implementation.
35 m4_define([OVSDB_CHECK_IDL_PY],
36 [AT_SETUP([$1 - Python])
37 AT_SKIP_IF([test $HAVE_PYTHON = no])
38 AT_KEYWORDS([ovsdb server idl positive Python $5])
39 AT_CHECK([ovsdb-tool create db $abs_srcdir/idltest.ovsschema],
40 [0], [stdout], [ignore])
41 AT_CHECK([ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --no-chdir --pidfile="`pwd`"/pid --remote=punix:socket --unixctl="`pwd`"/unixctl db], [0], [ignore], [ignore])
43 [AT_CHECK([ovsdb-client transact unix:socket $2], [0], [ignore], [ignore], [kill `cat pid`])])
44 AT_CHECK([$PYTHON $srcdir/test-ovsdb.py -t10 idl $srcdir/idltest.ovsschema unix:socket $3],
45 [0], [stdout], [ignore], [kill `cat pid`])
46 AT_CHECK([sort stdout | ${PERL} $srcdir/uuidfilt.pl]m4_if([$6],,, [[| $6]]),
47 [0], [$4], [], [kill `cat pid`])
51 # same as OVSDB_CHECK_IDL but uses the Python IDL implementation with tcp
52 m4_define([OVSDB_CHECK_IDL_TCP_PY],
53 [AT_SETUP([$1 - Python tcp])
54 AT_SKIP_IF([test $HAVE_PYTHON = no])
55 AT_KEYWORDS([ovsdb server idl positive Python with tcp socket $5])
56 AT_CHECK([ovsdb-tool create db $abs_srcdir/idltest.ovsschema],
57 [0], [stdout], [ignore])
58 AT_CHECK([ovsdb-server --log-file '-vPATTERN:console:ovsdb-server|%c|%m' --detach --no-chdir --pidfile="`pwd`"/pid --remote=punix:socket --remote=ptcp:0:127.0.0.1 --unixctl="`pwd`"/unixctl db], [0], [ignore], [ignore])
59 TCP_PORT=`parse_listening_port < ovsdb-server.log`
62 [AT_CHECK([ovsdb-client transact tcp:127.0.0.1:$TCP_PORT $2], [0], [ignore], [ignore], [kill `cat pid`])])
63 AT_CHECK([$PYTHON $srcdir/test-ovsdb.py -t10 idl $srcdir/idltest.ovsschema tcp:127.0.0.1:$TCP_PORT $3],
64 [0], [stdout], [ignore], [kill `cat pid`])
65 AT_CHECK([sort stdout | ${PERL} $srcdir/uuidfilt.pl]m4_if([$6],,, [[| $6]]),
66 [0], [$4], [], [kill `cat pid`])
70 # same as OVSDB_CHECK_IDL but uses the Python IDL implementation with tcp6
71 m4_define([OVSDB_CHECK_IDL_TCP6_PY],
72 [AT_SETUP([$1 - Python tcp6])
73 AT_SKIP_IF([test $HAVE_PYTHON = no])
74 AT_SKIP_IF([test $HAVE_IPV6 = no])
75 AT_KEYWORDS([ovsdb server idl positive Python with tcp6 socket $5])
76 AT_CHECK([ovsdb-tool create db $abs_srcdir/idltest.ovsschema],
77 [0], [stdout], [ignore])
78 AT_CHECK([ovsdb-server --log-file '-vPATTERN:console:ovsdb-server|%c|%m' --detach --no-chdir --pidfile="`pwd`"/pid --remote=ptcp:0:[[::1]] --unixctl="`pwd`"/unixctl db], [0], [ignore], [ignore])
79 TCP_PORT=`parse_listening_port < ovsdb-server.log`
80 echo "TCP_PORT=$TCP_PORT"
83 [AT_CHECK([ovsdb-client transact "tcp:[[::1]]:$TCP_PORT" $2], [0], [ignore], [ignore], [kill `cat pid`])])
84 AT_CHECK([$PYTHON $srcdir/test-ovsdb.py -t10 idl $srcdir/idltest.ovsschema tcp:[[::1]]:$TCP_PORT $3],
85 [0], [stdout], [ignore], [kill `cat pid`])
86 AT_CHECK([sort stdout | ${PERL} $srcdir/uuidfilt.pl]m4_if([$6],,, [[| $6]]),
87 [0], [$4], [], [kill `cat pid`])
91 m4_define([OVSDB_CHECK_IDL],
92 [OVSDB_CHECK_IDL_C($@)
93 OVSDB_CHECK_IDL_PY($@)
94 OVSDB_CHECK_IDL_TCP_PY($@)
95 OVSDB_CHECK_IDL_TCP6_PY($@)])
97 OVSDB_CHECK_IDL([simple idl, initially empty, no ops],
104 OVSDB_CHECK_IDL([simple idl, initially empty, various ops],
113 "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
114 "ia": ["set", [1, 2, 3]],
115 "ra": ["set", [-0.5]],
116 "ba": ["set", [true]],
117 "sa": ["set", ["abc", "def"]],
118 "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
119 ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
127 "row": {"b": true}}]' \
132 "row": {"r": 123.5}}]' \
141 "ra": ["set", [1.5]],
142 "ba": ["set", [false]],
144 "ua": ["set", []]}}]' \
148 "where": [["i", "<", 1]],
149 "row": {"s": "newstring"}}]' \
153 "where": [["i", "==", 0]]}]' \
156 001: {"error":null,"result":[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]}]}
157 002: i=0 r=0 b=false s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
158 002: i=1 r=2 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
159 003: {"error":null,"result":[{"count":2}]}
160 004: i=0 r=0 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
161 004: i=1 r=2 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
162 005: {"error":null,"result":[{"count":2}]}
163 006: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
164 006: i=1 r=123.5 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
165 007: {"error":null,"result":[{"uuid":["uuid","<6>"]}]}
166 008: i=-1 r=125 b=false s= u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
167 008: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
168 008: i=1 r=123.5 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
169 009: {"error":null,"result":[{"count":2}]}
170 010: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
171 010: i=0 r=123.5 b=true s=newstring u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
172 010: i=1 r=123.5 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
173 011: {"error":null,"result":[{"count":1}]}
174 012: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
175 012: i=1 r=123.5 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
177 014: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
178 014: i=1 r=123.5 b=true s=mystring u=<3> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<4> <5>] uuid=<0>
182 OVSDB_CHECK_IDL([simple idl, initially populated],
190 "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
191 "ia": ["set", [1, 2, 3]],
192 "ra": ["set", [-0.5]],
193 "ba": ["set", [true]],
194 "sa": ["set", ["abc", "def"]],
195 "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
196 ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
204 "row": {"b": true}}]']],
205 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
206 000: i=1 r=2 b=true s=mystring u=<2> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<3> <4>] uuid=<5>
207 001: {"error":null,"result":[{"count":2}]}
208 002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
209 002: i=1 r=2 b=true s=mystring u=<2> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<3> <4>] uuid=<5>
213 OVSDB_CHECK_IDL([simple idl, writing via IDL],
221 "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
222 "ia": ["set", [1, 2, 3]],
223 "ra": ["set", [-0.5]],
224 "ba": ["set", [true]],
225 "sa": ["set", ["abc", "def"]],
226 "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
227 ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
231 [['verify 0 b, verify 1 r, set 0 b 1, set 1 r 3.5' \
232 'insert 2, verify 2 i, verify 1 b, delete 1']],
233 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
234 000: i=1 r=2 b=true s=mystring u=<2> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<3> <4>] uuid=<5>
235 001: commit, status=success
236 002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
237 002: i=1 r=3.5 b=true s=mystring u=<2> ia=[1 2 3] ra=[-0.5] ba=[true] sa=[abc def] ua=[<3> <4>] uuid=<5>
238 003: commit, status=success
239 004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
240 004: i=2 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<6>
244 OVSDB_CHECK_IDL([simple idl, handling verification failure],
257 "where": [["i", "==", 1]],
258 "row": {"r": 5.0}}]' \
259 '+verify 1 r, set 1 r 3' \
260 'verify 1 r, set 1 r 3' \
262 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
263 000: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
264 001: commit, status=success
265 002: {"error":null,"result":[{"count":1}]}
266 003: commit, status=try again
267 004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
268 004: i=1 r=5 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
269 005: commit, status=success
270 006: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
271 006: i=1 r=3 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
275 OVSDB_CHECK_IDL([simple idl, increment operation],
280 [['set 0 r 2.0, increment 0']],
281 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
282 001: commit, status=success, increment=1
283 002: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
287 OVSDB_CHECK_IDL([simple idl, aborting],
292 [['set 0 r 2.0, abort' \
294 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
295 001: commit, status=aborted
296 002: commit, status=success
297 003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
301 OVSDB_CHECK_IDL([simple idl, destroy without commit or abort],
306 [['set 0 r 2.0, destroy' \
308 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
310 002: commit, status=success
311 003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
315 OVSDB_CHECK_IDL([self-linking idl, consistent ops],
320 "row": {"i": 0, "k": ["named-uuid", "self"]},
321 "uuid-name": "self"}]' \
325 "row": {"i": 1, "k": ["named-uuid", "row2"]},
326 "uuid-name": "row1"},
329 "row": {"i": 2, "k": ["named-uuid", "row1"]},
330 "uuid-name": "row2"}]' \
334 "where": [["i", "==", 1]],
335 "row": {"k": ["uuid", "#1#"]}}]' \
340 "row": {"k": ["uuid", "#0#"]}}]']],
342 001: {"error":null,"result":[{"uuid":["uuid","<0>"]}]}
343 002: i=0 k=0 ka=[] l2= uuid=<0>
344 003: {"error":null,"result":[{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]}]}
345 004: i=0 k=0 ka=[] l2= uuid=<0>
346 004: i=1 k=2 ka=[] l2= uuid=<1>
347 004: i=2 k=1 ka=[] l2= uuid=<2>
348 005: {"error":null,"result":[{"count":1}]}
349 006: i=0 k=0 ka=[] l2= uuid=<0>
350 006: i=1 k=1 ka=[] l2= uuid=<1>
351 006: i=2 k=1 ka=[] l2= uuid=<2>
352 007: {"error":null,"result":[{"count":3}]}
353 008: i=0 k=0 ka=[] l2= uuid=<0>
354 008: i=1 k=0 ka=[] l2= uuid=<1>
355 008: i=2 k=0 ka=[] l2= uuid=<2>
359 OVSDB_CHECK_IDL([self-linking idl, inconsistent ops],
364 "row": {"i": 0, "k": ["uuid", "cf197cc5-c8c9-42f5-82d5-c71a9f2cb96b"]}}]' \
369 "row": {"i": 1, "k": ["named-uuid", "one"]}},
372 "row": {"i": 2, "k": ["named-uuid", "one"]}}]' \
377 "row": {"k": ["uuid", "c2fca39a-e69a-42a4-9c56-5eca85839ce9"]}}]' \
381 "where": [["_uuid", "==", ["uuid", "#1#"]]]}]' \
385 "where": [["_uuid", "==", ["uuid", "#2#"]]]}]' \
392 001: {"error":null,"result":[{"uuid":["uuid","<0>"]},{"details":"Table link1 column k row <0> references nonexistent row <1> in table link1.","error":"referential integrity violation"}]}
393 002: {"error":null,"result":[{"uuid":["uuid","<2>"]},{"uuid":["uuid","<3>"]}]}
394 003: i=1 k=1 ka=[] l2= uuid=<2>
395 003: i=2 k=1 ka=[] l2= uuid=<3>
396 004: {"error":null,"result":[{"count":2},{"details":"Table link1 column k row <x> references nonexistent row <4> in table link1.","error":"referential integrity violation"}]}
397 005: {"error":null,"result":[{"count":1},{"details":"cannot delete link1 row <2> because of 1 remaining reference(s)","error":"referential integrity violation"}]}
398 006: {"error":null,"result":[{"count":1}]}
399 007: i=1 k=1 ka=[] l2= uuid=<2>
400 008: {"error":null,"result":[{"count":1}]}
405 [[sed -e '/004:/s/row <[23]> references/row <x> references/']])
407 OVSDB_CHECK_IDL([self-linking idl, sets],
412 "row": {"i": 0, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i0"]]]},
416 "row": {"i": 1, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i1"]]]},
420 "row": {"i": 2, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i2"]]]},
424 "row": {"i": 3, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i3"]]]},
425 "uuid-name": "i3"}]' \
430 "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "#1#"], ["uuid", "#2#"], ["uuid", "#3#"]]]}}]' \
434 "where": [["i", "==", 2]],
435 "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "88702e78-845b-4a6e-ad08-cf68922ae84a"], ["uuid", "#2#"]]]}}]' \
441 001: {"error":null,"result":[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]},{"uuid":["uuid","<3>"]}]}
442 002: i=0 k=0 ka=[0] l2= uuid=<0>
443 002: i=1 k=0 ka=[1] l2= uuid=<1>
444 002: i=2 k=0 ka=[2] l2= uuid=<2>
445 002: i=3 k=0 ka=[3] l2= uuid=<3>
446 003: {"error":null,"result":[{"count":4}]}
447 004: i=0 k=0 ka=[0 1 2 3] l2= uuid=<0>
448 004: i=1 k=0 ka=[0 1 2 3] l2= uuid=<1>
449 004: i=2 k=0 ka=[0 1 2 3] l2= uuid=<2>
450 004: i=3 k=0 ka=[0 1 2 3] l2= uuid=<3>
451 005: {"error":null,"result":[{"count":1},{"details":"Table link1 column ka row <2> references nonexistent row <4> in table link1.","error":"referential integrity violation"}]}
452 006: {"error":null,"result":[{"count":4}]}
457 OVSDB_CHECK_IDL([external-linking idl, consistent ops],
463 "uuid-name": "row0"},
466 "row": {"i": 1, "k": ["named-uuid", "row1"], "l2": ["set", [["named-uuid", "row0"]]]},
467 "uuid-name": "row1"}]']],
469 001: {"error":null,"result":[{"uuid":["uuid","<0>"]},{"uuid":["uuid","<1>"]}]}
470 002: i=0 l1= uuid=<0>
471 002: i=1 k=1 ka=[] l2=0 uuid=<1>
475 OVSDB_CHECK_IDL_PY([external-linking idl, insert ops],
479 001: commit, status=success
480 002: i=1 k=1 ka=[1] l2= uuid=<0>
481 002: i=2 k=1 ka=[1 2] l2= uuid=<1>
485 OVSDB_CHECK_IDL_PY([getattr idl, insert ops],
489 001: commit, status=success
490 002: i=2 k=2 ka=[] l2= uuid=<0>
494 OVSDB_CHECK_IDL_PY([row-from-json idl, whats this],
502 [['notifytest insert 2, notifytest set 1 b 1, notifytest delete 0']],
503 [[000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
504 000: i=1 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
505 001: commit, status=success, events=create|2|None, delete|0|None, update|1|b
506 002: i=1 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
507 002: i=2 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<3>
511 AT_SETUP([idl handling of missing tables and columns - C])
512 AT_KEYWORDS([ovsdb server idl positive])
514 # idltest2.ovsschema is the same as idltest.ovsschema, except that
515 # table link2 and column l2 have been deleted. But the IDL still
516 # expects them to be there, so this test checks that it properly
517 # tolerates them being missing.
518 AT_CHECK([ovsdb-tool create db $abs_srcdir/idltest2.ovsschema],
519 [0], [stdout], [ignore])
520 AT_CHECK([ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --no-chdir --pidfile="`pwd`"/pid --remote=punix:socket --unixctl="`pwd`"/unixctl db], [0], [ignore], [ignore])
521 AT_CHECK([test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket ['["idltest",
524 "row": {"i": 0, "k": ["named-uuid", "self"]},
525 "uuid-name": "self"}]' \
529 "row": {"i": 1, "k": ["named-uuid", "row2"]},
530 "uuid-name": "row1"},
533 "row": {"i": 2, "k": ["named-uuid", "row1"]},
534 "uuid-name": "row2"}]' \
538 "where": [["i", "==", 1]],
539 "row": {"k": ["uuid", "#1#"]}}]' \
544 "row": {"k": ["uuid", "#0#"]}}]']],
545 [0], [stdout], [stderr], [kill `cat pid`])
546 AT_CHECK([sort stdout | ${PERL} $srcdir/uuidfilt.pl], [0],
548 001: {"error":null,"result":[{"uuid":["uuid","<0>"]}]}
549 002: i=0 k=0 ka=[] l2= uuid=<0>
550 003: {"error":null,"result":[{"uuid":["uuid","<1>"]},{"uuid":["uuid","<2>"]}]}
551 004: i=0 k=0 ka=[] l2= uuid=<0>
552 004: i=1 k=2 ka=[] l2= uuid=<1>
553 004: i=2 k=1 ka=[] l2= uuid=<2>
554 005: {"error":null,"result":[{"count":1}]}
555 006: i=0 k=0 ka=[] l2= uuid=<0>
556 006: i=1 k=1 ka=[] l2= uuid=<1>
557 006: i=2 k=1 ka=[] l2= uuid=<2>
558 007: {"error":null,"result":[{"count":3}]}
559 008: i=0 k=0 ka=[] l2= uuid=<0>
560 008: i=1 k=0 ka=[] l2= uuid=<1>
561 008: i=2 k=0 ka=[] l2= uuid=<2>
563 ]], [], [kill `cat pid`])
565 # Check that ovsdb-idl figured out that table link2 and column l2 are missing.
566 AT_CHECK([grep ovsdb_idl stderr | sort], [0], [dnl
567 test-ovsdb|ovsdb_idl|idltest database lacks link2 table (database needs upgrade?)
568 test-ovsdb|ovsdb_idl|link1 table in idltest database lacks l2 column (database needs upgrade?)
571 # Check that ovsdb-idl sent on "monitor" request and that it didn't
572 # mention that table or column, and (for paranoia) that it did mention another
574 AT_CHECK([grep -c '"monitor"' stderr], [0], [1
576 AT_CHECK([grep '"monitor"' stderr | grep link2], [1])
577 AT_CHECK([grep '"monitor"' stderr | grep l2], [1])
578 AT_CHECK([grep '"monitor"' stderr | grep -c '"link1"'], [0], [1
580 AT_CHECK([grep '"monitor"' stderr | grep -c '"ua"'], [0], [1
582 OVSDB_SERVER_SHUTDOWN